]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selinux: Implement dentry_create_files_as() hook
authorVivek Goyal <vgoyal@redhat.com>
Wed, 13 Jul 2016 14:44:53 +0000 (10:44 -0400)
committerAnand Jain <anand.jain@oracle.com>
Thu, 26 Oct 2017 08:15:29 +0000 (16:15 +0800)
commit5d97173d2e8a1c19cab92df7937dec2055a274c2
treefb514c5a49052c78f84a1e2aa10c613ac1a57822
parentf4c45071a0602044d813dd8d49da97e7c94dac21
selinux: Implement dentry_create_files_as() hook

Calculate what would be the label of newly created file and set that
secid in the passed creds.

Context of the task which is actually creating file is retrieved from
set of creds passed in. (old->security).

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>
Orabug: 25684456

(backport upstream commit a518b0a5b0d7f3397e065acb956bca9635aa892d)

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Acked-by: James Morris <james.l.morris@oracle.com>
Reviewed-by: James Morris <james.l.morris@oracle.com>
Conflict fix:
     security/selinux/hooks.c
security/selinux/hooks.c