Commit 1f2d3ac9 authored by Vishal Goel's avatar Vishal Goel Committed by sanglipeng
Browse files

Smack:- Use overlay inode label in smack_inode_copy_up()

stable inclusion
from stable-v5.10.198
commit 14443223e08c8bf4f2bf535e9551505143ced256
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=14443223e08c8bf4f2bf535e9551505143ced256



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

[ Upstream commit 387ef964 ]

Currently in "smack_inode_copy_up()" function, process label is
changed with the label on parent inode. Due to which,
process is assigned directory label and whatever file or directory
created by the process are also getting directory label
which is wrong label.

Changes has been done to use label of overlay inode instead
of parent inode.

Signed-off-by: default avatarVishal Goel <vishal.goel@samsung.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 11ebb43d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment