Smack:- Use overlay inode label in smack_inode_copy_up()
authorVishal Goel <vishal.goel@samsung.com>
Fri, 17 Sep 2021 07:38:14 +0000 (13:08 +0530)
committerCasey Schaufler <casey@schaufler-ca.com>
Tue, 28 Sep 2021 20:29:40 +0000 (13:29 -0700)
commit387ef964460f14fe1c1ea29aba70e22731ea7cf7
treec8ac30f327637b4605dededfe9bf65b974cfabde
parent222a96b31c242d6736868da679d8c733719a3716
Smack:- Use overlay inode label in smack_inode_copy_up()

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: Vishal Goel <vishal.goel@samsung.com>
Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
security/smack/smack_lsm.c