]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
smack: Revert "smackfs: Added check catlen"
authorKonstantin Andreev <andreev@swemel.ru>
Thu, 16 Jan 2025 23:40:33 +0000 (02:40 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 May 2025 09:13:20 +0000 (11:13 +0200)
commit0df308446278b2c642cb5b4f1c8edcf4e840096c
tree5485cf8225b0b80e1e655172f50b15c25e05c431
parent3065aa2b69faf75d488e92afaeb991ce4554440e
smack: Revert "smackfs: Added check catlen"

[ Upstream commit c7fb50cecff9cad19fdac5b37337eae4e42b94c7 ]

This reverts commit ccfd889acb06eab10b98deb4b5eef0ec74157ea0

The indicated commit
* does not describe the problem that change tries to solve
* has programming issues
* introduces a bug: forever clears NETLBL_SECATTR_MLS_CAT
         in (struct smack_known *)skp->smk_netlabel.flags

Reverting the commit to reapproach original problem

Signed-off-by: Konstantin Andreev <andreev@swemel.ru>
Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
security/smack/smackfs.c