policy error

Discuss usability issues, general maintenance, and general support issues for a grsecurity-enabled system.

policy error

Postby phaceton » Sat Nov 04, 2006 5:17 pm

Hello--

I have compiled a grsecurity kernel for Ubuntu Edgy.
When i run:"gradm -E" i get the following error message:"Error on line 4 of /etc/grsec/policy. Attempt to add an object without a subject declaration.
The RBAC system will not load until this error is fixed."

This is the content of the file in question:

#sample default process acl for grsecurity

/ {
/ r
/opt rx
#/home rwx
/mnt rw
/dev
/dev/urandom r
/dev/random r
/dev/zero rw
/dev/input rw
/dev/psaux rw
/dev/null rw
/dev/tty? rw
/dev/console rw
/dev/tty rw
/dev/ttyp? rw
/dev/pts rw
/dev/ptmx rw
/dev/dsp rw
/dev/mixer rw
/dev/fd0 r
/dev/cdrom r
/dev/mem h
/dev/kmem h
/dev/port h
/bin rx
/sbin rx
/lib rx
/usr rx
/etc rx
/etc/ssh h
/proc rwx
/proc/kcore h
/proc/sys r
/root r
/tmp rw
/var rwx
/var/tmp rw
/var/log r
/boot h
/etc/grsec h

-CAP_SYS_TTY_CONFIG


etc etc

"/etc/grsec/policy" 106L, 1241C 1,1 Top

Because this is apparantly an exemple policy file i don't understand the error.
phaceton
 
Posts: 1
Joined: Sat Nov 04, 2006 5:09 pm

Postby spender » Sun Nov 05, 2006 3:43 pm

You're using a sample policy from gradm 1.x. Copy the policy file out of the gradm2 source tree into /etc/grsec.

-Brad
spender
 
Posts: 2185
Joined: Wed Feb 20, 2002 8:00 pm


Return to grsecurity support