]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selinux: Pass security pointer to determine_inode_label()
authorVivek Goyal <vgoyal@redhat.com>
Wed, 13 Jul 2016 14:44:51 +0000 (10:44 -0400)
committerAnand Jain <anand.jain@oracle.com>
Thu, 26 Oct 2017 08:15:29 +0000 (16:15 +0800)
commit4eee847875b1f98e8b7349e82f92f72b00af0f6c
tree3a69b3ca60838e23acfb2e99cb8749b177213257
parentaf4150e872da5c8550d70557c2577a6db8d7d34f
selinux: Pass security pointer to determine_inode_label()

Right now selinux_determine_inode_label() works on security pointer of
current task. Soon I need this to work on a security pointer retrieved
from a set of creds. So start passing in a pointer and caller can
decide where to fetch security pointer from.

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 c957f6df52c509ccfbb96659fd1a0f7812de333f)

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