Page 1 of 1

Syntax error in /etc/grsec/policy

PostPosted: Sun Jan 18, 2015 6:46 am
by rootlam42
Hello everybox.

I've enable grsec patch and full system learning on my arch.

I type #gradm -F -L /etc/grsec/learning.logs -O /etc/grsec/policy but there is an issue :

"subject" caused a syntax error on line 939 of /etc/grsec/policy.

I search why, and i don't understand where is exactly the problem.

Here is a copy of line 939 :

# Role: root
subject /usr/bin/dbus-launch o {
/
/boot h
/dev h
/dev/null rw
/etc h
/etc/ld.so.cache r
/etc/nsswitch.conf r
/etc/passwd r
/proc/bus h
/proc/kallsyms h
/proc/kcore h
/proc/modules h
/proc/slabinfo h
/proc/sys h
/root h
/root/.dbus
/root/.dbus/session-bus
/root/.dbus/session-bus/bfb75508f17f4376b6276ba637b40ec3-0 w
/sys h
/tmp r
/usr h
/usr/bin h
/usr/bin/dbus-daemon x
/usr/bin/dbus-launch x
/usr/lib rx
/usr/lib/modules h
/var/backups h
/var/log h
-CAP_ALL
bind disabled
connect disabled
}

Thx for ur help.

Re: Syntax error in /etc/grsec/policy

PostPosted: Wed Jan 21, 2015 8:35 pm
by spender
I would need to see the full /etc/grsec/policy. I don't see any error with what you pasted, especially if it was created entirely by the full learning system and not modified. You can email it to spender@grsecurity.net.

-Brad

Re: Syntax error in /etc/grsec/policy

PostPosted: Thu Jan 22, 2015 9:29 am
by spender
Thanks for the mail. I see the issue now -- it's that in the previous subject you have a sock_allow_family without any arguments. Did the full learning generate that line? If so I'll look into fixing it.

Thanks,
-Brad