kernel_samsung_a53x/security/smack
Roberto Sassu ed7332bdbf smack: Set SMACK64TRANSMUTE only for dirs in smack_inode_setxattr()
[ Upstream commit 9c82169208dde516510aaba6bbd8b13976690c5d ]

Since the SMACK64TRANSMUTE xattr makes sense only for directories, enforce
this restriction in smack_inode_setxattr().

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-19 09:22:14 +01:00
..
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smack.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smack_access.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smack_lsm.c smack: Set SMACK64TRANSMUTE only for dirs in smack_inode_setxattr() 2024-11-19 09:22:14 +01:00
smack_netfilter.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smackfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00