ACL file:
role default
subject / {
/ h
-CAP_ALL
connect disabled
bind disabled
}
role admin sA
role_allow_ip 192.168.0.0/32
role_allow_ip 0.0.0.0/32
subject / {
/ rwcdmxi
+CAP_ALL
}
role root uG
role_transitions admin
subject / {
/ r
/home rwxcd
/dev
/dev/grsec h
/dev/urandom r
/dev/random r
/dev/zero r
/dev/null rw
/dev/ptmx rw
/dev/initctl rw
/dev/mem h
/dev/kmem h
/dev/port h
/bin rx
/sbin rx
/lib rx
/usr r
/usr/lib rx
/usr/bin rx
/usr/sbin rx
/etc rx
/proc rx
/proc/kcore h
/root r
/tmp rwcd
/var r
/var/tmp rwcd
/var/log r
/etc/grsec h
/etc/ssh h
-CAP_ALL
connect disabled
bind disabled
}
role matthijs u
role_allow_ip 192.168.0.0/32
subject / {
/ h
/bin h
/sbin h
/etc h
/etc/grsec h
/etc/passwd h
/etc/shadow h
/etc/ssh h
/etc/lilo.conf h
/home/users/matthijs rwxc
/usr/bin rx
/usr/sbin rx
/usr/share h
/usr/share/zoneinfo r
/usr/share/doc r
/var h
/var/run rw
/proc r
/proc/kcore h
/proc/sys h
-CAP_ALL
bind disabled
connect disabled
}
subject /bin/ls o {
/bin/ls x
/lib rx
/usr h
/usr/lib rx
-CAP_ALL
bind 0.0.0.0/32:0 dgram ip
connect 192.168.0.0/32:53 stream dgram tcp udp
connect 192.168.0.0/32:389 stream dgram tcp udp
}
When i now try to enable the acl system i get this:
server:/etc/grsec# gradm -E
Default object not found for role matthijs subject /bin/ls
The RBAC system will not load until you correct this error.
I can't figure out what i am doing wrong.