]> git.pld-linux.org Git - packages/rc-scripts.git/blob - rc-scripts-selinuxfs.patch
- verbose files in common directories
[packages/rc-scripts.git] / rc-scripts-selinuxfs.patch
1 --- rc-scripts-0.4.15/rc.d/rc.sysinit.orig      2016-06-19 20:33:41.190705364 +0200
2 +++ rc-scripts-0.4.15/rc.d/rc.sysinit   2016-06-19 20:51:05.967360163 +0200
3 @@ -124,10 +124,11 @@
4         if ! grep -Fq selinuxfs /proc/filesystems; then
5                 # no support in kernel, no chance
6                 SELINUX=no
7 +               return
8         fi
9  
10 -       if ! is_fsmounted selinuxfs /selinux; then
11 -               mount -n -o gid=17 -t selinuxfs selinuxfs /selinux
12 +       if ! is_fsmounted selinuxfs $selinuxfsdir; then
13 +               mount -n -o gid=17 -t selinuxfs selinuxfs $selinuxfsdir
14         fi
15  
16         # Check SELinux status
17 @@ -424,6 +425,12 @@
18                 mount -n -o gid=17 -t securityfs securityfs /sys/kernel/security
19         fi
20  
21 +       if [ -d /sys/fs/selinux ]; then
22 +               # Linux 3.0+
23 +               selinuxfsdir=/sys/fs/selinux
24 +       else
25 +               selinuxfsdir=/selinux
26 +       fi
27         init_selinux
28  
29         # PLD Linux LiveCD support
30 @@ -695,8 +702,8 @@
31                 fi
32         fi
33  
34 -       if is_fsmounted selinuxfs /selinux; then
35 -               mount -f -t selinuxfs selinuxfs /selinux 2> /dev/null
36 +       if is_fsmounted selinuxfs $selinuxfsdir; then
37 +               mount -f -t selinuxfs selinuxfs $selinuxfsdir 2> /dev/null
38         fi
39  
40         if [ ! -f /proc/modules ]; then
This page took 0.14174 seconds and 3 git commands to generate.