diff options
author | Roberto Sassu <roberto.sassu@huawei.com> | 2023-11-16 12:01:21 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-04-03 16:32:01 +0300 |
commit | 425ab94e4bd1eaedc3cff75e63e34ad834f28990 (patch) | |
tree | 27c0b305f57fd967eb00f89b24ef0b266d262a75 /samples/kobject | |
parent | 41136c87a6cb331d217af80511a957539d6f98e5 (diff) | |
download | linux-425ab94e4bd1eaedc3cff75e63e34ad834f28990.tar.xz |
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>
Diffstat (limited to 'samples/kobject')
0 files changed, 0 insertions, 0 deletions