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)
committerCasey Schaufler <casey@schaufler-ca.com>
Thu, 11 May 2023 17:05:38 +0000 (10:05 -0700)
commit3a3d8fce31a49363cc31880dce5e3b0617c9c38b
treef4220876d96535d9b718c6e1a7c540e91aa66e3a
parentac9a78681b921877518763ba0e89202254349d1b
smack: Retrieve transmuting information in smack_inode_getsecurity()

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