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)
commit845ca30fe9691f1bab7cfbf30b6d11c944eb4abd
treeeabf2b17957c2214375f870387eaab6c43d9e931
parentcee74f47a6baba0ac457e87687fdcf0abd599f0a
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