SELinux: remove crazy contortions around proc
authorEric Paris <eparis@redhat.com>
Fri, 24 Aug 2012 19:58:45 +0000 (15:58 -0400)
committerEric Paris <eparis@redhat.com>
Thu, 25 Jul 2013 17:02:50 +0000 (13:02 -0400)
commit40d3d0b85fa22084fc3b7eeb943aca365097cea3
tree16df1dd377ea7a846a2de3541b12a7934f48406a
parentb138004ea0382bdc6d02599c39392651b4f63889
SELinux: remove crazy contortions around proc

We check if the fsname is proc and if so set the proc superblock security
struct flag.  We then check if the flag is set and use the string 'proc'
for the fsname instead of just using the fsname.  What's the point?  It's
always proc...  Get rid of the useless conditional.

Signed-off-by: Eric Paris <eparis@redhat.com>
security/selinux/hooks.c