smack: Handle SMACK64TRANSMUTE in smack_inode_setsecurity()
authorRoberto Sassu <roberto.sassu@huawei.com>
Thu, 16 Nov 2023 09:01:22 +0000 (10:01 +0100)
committerCasey Schaufler <casey@schaufler-ca.com>
Wed, 24 Jan 2024 22:06:26 +0000 (14:06 -0800)
commitac02f007d64eb2769d0bde742aac4d7a5fc6e8a5
treee4af2d28ac7fc4beb0fc5161777be3d07c283c11
parent9c82169208dde516510aaba6bbd8b13976690c5d
smack: Handle SMACK64TRANSMUTE in smack_inode_setsecurity()

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>
security/smack/smack_lsm.c