Commit 11ebb43d authored by Roberto Sassu's avatar Roberto Sassu Committed by sanglipeng
Browse files

smack: Retrieve transmuting information in smack_inode_getsecurity()

stable inclusion
from stable-v5.10.198
commit 297c51c63fe156ef75eff20ec39b6a0b6c42d758
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I987V5

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=297c51c63fe156ef75eff20ec39b6a0b6c42d758



--------------------------------

[ Upstream commit 3a3d8fce ]

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: default avatarRoberto Sassu <roberto.sassu@huawei.com>
Signed-off-by: default avatarCasey Schaufler <casey@schaufler-ca.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 21b2155b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment