]> git.baikalelectronics.ru Git - kernel.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 12:56:59 +0000 (14:56 +0200)
commita09446ac0414801bf2b3945b9bdf3ef59389710e
treeb6e4b11fdfb03ab0730942d97147c59cd6f40220
parentcbb16d0f4996a9b697de824b94a2a7287148e9d3
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