]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
smack: Handle SMACK64TRANSMUTE in smack_inode_setsecurity()
authorRoberto Sassu <roberto.sassu@huawei.com>
Thu, 16 Nov 2023 09:01:22 +0000 (10:01 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Apr 2024 13:28:16 +0000 (15:28 +0200)
commit3677d01c55bc1cdc483d24dab8b95b8e5d6d309c
treee877e15f706c12612a0981bd2b134e3042c86608
parentc6fc445954916021284766674161842017aa42e7
smack: Handle SMACK64TRANSMUTE in smack_inode_setsecurity()

[ Upstream commit ac02f007d64eb2769d0bde742aac4d7a5fc6e8a5 ]

If the SMACK64TRANSMUTE xattr is provided, and the inode is a directory,
update the in-memory inode flags by setting SMK_INODE_TRANSMUTE.

Cc: stable@vger.kernel.org
Fixes: 5c6d1125f8db ("Smack: Transmute labels on specified directories") # v2.6.38.x
Signed-off-by: Roberto Sassu <roberto.sassu@huawei.com>
Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
security/smack/smack_lsm.c