]> git.baikalelectronics.ru Git - kernel.git/commit
selinux: implement mmap on /selinux/policy
authorEric Paris <eparis@redhat.com>
Wed, 13 Oct 2010 21:50:31 +0000 (17:50 -0400)
committerJames Morris <jmorris@namei.org>
Wed, 20 Oct 2010 23:12:59 +0000 (10:12 +1100)
commite46a6ef7d481d0a016faefe143b2e7c1a90cf8ae
treeeabf2b17957c2214375f870387eaab6c43d9e931
parent72a0f21dfa55fe5fb1f624b69a2b1a839789fe4e
selinux: implement mmap on /selinux/policy

/selinux/policy allows a user to copy the policy back out of the kernel.
This patch allows userspace to actually mmap that file and use it directly.

Signed-off-by: Eric Paris <eparis@redhat.com>
Signed-off-by: James Morris <jmorris@namei.org>
security/selinux/selinuxfs.c
security/selinux/ss/services.c