]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selinux: Create a common helper to determine an inode label [ver #3]
authorDavid Howells <dhowells@redhat.com>
Fri, 10 Jul 2015 21:19:58 +0000 (17:19 -0400)
committerAnand Jain <anand.jain@oracle.com>
Thu, 26 Oct 2017 08:15:29 +0000 (16:15 +0800)
commit3b9689a50bd3e8934c10194eb9898f5124ea7873
treef7a1116f8fbca892f685694069081ac2b3659d48
parent41935aff7a06972f8d4b345b1d143f548b35aeb6
selinux: Create a common helper to determine an inode label [ver #3]

Create a common helper function to determine the label for a new inode.
This is then used by:

- may_create()
- selinux_dentry_init_security()
- selinux_inode_init_security()

This will change the behaviour of the functions slightly, bringing them
all into line.

Suggested-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: Paul Moore <pmoore@redhat.com>
Orabug: 25684456

(backport upstream commit c3c188b2c3ed29effe8693672ee1c84184103b4e)

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>
security/selinux/hooks.c