]> git.hungrycats.org Git - linux/commit
[PATCH] SELinux: add null device node to selinuxfs, remove open_devnull
authorStephen D. Smalley <sds@epoch.ncsc.mil>
Tue, 24 Aug 2004 04:39:52 +0000 (21:39 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 24 Aug 2004 04:39:52 +0000 (21:39 -0700)
commit0b70160d1c0416f9d8fc22d0f3e46da0a3ad84e1
treef52f4b1142a090f51717d1554d198ce9f21934a2
parent603a2af3e9651f618ec13a1618d4a15a5cd2e6e0
[PATCH] SELinux: add null device node to selinuxfs, remove open_devnull

This patch adds a null device node to selinuxfs and replaces the SELinux
open_devnull() code by simply acquiring a reference to this node each time,
based on a comment by Al Viro on lkml (see
http://marc.theaimsgroup.com/?l=linux-kernel&m=108664922032035&w=2).

Signed-off-by: Stephen Smalley <sds@epoch.ncsc.mil>
Signed-off-by: James Morris <jmorris@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
security/selinux/hooks.c
security/selinux/selinuxfs.c