]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
smack: Retrieve transmuting information in smack_inode_getsecurity()
authorRoberto Sassu <roberto.sassu@huawei.com>
Mon, 8 May 2023 17:02:33 +0000 (19:02 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Oct 2023 11:18:20 +0000 (13:18 +0200)
commit0e3450487f9969ef619690d3aed2dc149bfc51d4
tree20df577b7831844da117e6433e4fe79f9c2e8096
parent3586b3feed1b855add6fb5bd8033e5abd89aa2ed
smack: Retrieve transmuting information in smack_inode_getsecurity()

[ Upstream commit 3a3d8fce31a49363cc31880dce5e3b0617c9c38b ]

Enhance smack_inode_getsecurity() to retrieve the value for
SMACK64TRANSMUTE from the inode security blob, similarly to SMACK64.

This helps to display accurate values in the situation where the security
labels come from mount options and not from xattrs.

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