]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit - security/selinux/hooks.c
selinux: Implementation for inode_copy_up_xattr() hook
authorVivek Goyal <vgoyal@redhat.com>
Wed, 13 Jul 2016 14:44:50 +0000 (10:44 -0400)
committerPaul Moore <paul@paul-moore.com>
Tue, 9 Aug 2016 00:43:59 +0000 (20:43 -0400)
commit19472b69d639d58415866bf127d5f9005038c105
treede7f757f15275283bc3153bb368cb305d8081993
parent121ab822ef21914adac2fa3730efeeb8fd762473
selinux: Implementation for inode_copy_up_xattr() hook

When a file is copied up in overlay, we have already created file on
upper/ with right label and there is no need to copy up selinux
label/xattr from lower file to upper file. In fact in case of context
mount, we don't want to copy up label as newly created file got its label
from context= option.

Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/hooks.c