kernel 2.6.14.2-grsec and gradm v2.1.7

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

kernel 2.6.14.2-grsec and gradm v2.1.7

Postby osa » Mon Dec 19, 2005 5:48 am

dmesg log
grsec: (root:U:/usr/bin/prelude-lml) denied access to hidden file /var/log/messages by /usr/bin/prelude-lml[prelude-lml:22219] uid/euid:0/0 gid/egid:0/0, parent /sbin/init[init:1] uid/euid:0/0 gid/egid:0/0
grsec: (root:U:/usr/bin/prelude-lml) denied access to hidden file /var/log/auth.log by /usr/bin/prelude-lml[prelude-lml:22219] uid/euid:0/0 gid/egid:0/0, parent /sbin/init[init:1] uid/euid:0/0 gid/egid:0/0

grsec policy subject /usr/bin/prelude-lml

subject /usr/bin/prelude-lml {
/ h
/var/log/
/etc/prelude-lml/metadata/-var-log-messages rcdw
/etc/prelude-lml/metadata/-var-log-auth.log rcdw
/tmp/.prelude-unix-5554 rcw
/var/spool/prelude-sensors/backup.0 rcwd
-CAP_ALL
+CAP_SETGID
+CAP_SETUID
bind disabled
# connect disabled
connect 0.0.0.0/0 stream tcp
}

when I changed /var/log to:
/var/log/auth.log r
/var/log/messages r

dmesg show this same error

grsec: (root:U:/usr/bin/prelude-lml) denied access to hidden file /var/log/messages by /usr/bin/prelude-lml[prelude-lml:22219] uid/euid:0/0 gid/egid:0/0, parent /sbin/init[init:1] uid/euid:0/0 gid/egid:0/0
grsec: (root:U:/usr/bin/prelude-lml) denied access to hidden file /var/log/auth.log by /usr/bin/prelude-lml[prelude-lml:22219] uid/euid:0/0 gid/egid:0/0, parent /sbin/init[init:1] uid/euid:0/0 gid/egid:0/0


where is the error?

osa
osa
 
Posts: 13
Joined: Mon Dec 19, 2005 5:38 am

Postby spender » Mon Dec 19, 2005 8:32 pm

I'd need to see your entire policy to make sure that the subject you pasted to me is indeed the subject being referenced in the error log you pasted. Can you mail it to spender@grsecurity.net?

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

Postby spender » Tue Dec 20, 2005 11:42 pm

Your policy should not have been accepted by the parser. Your root role definition includes "a" in the role type, which is not a valid type (subject/object/role flags are case sensitive). Do you have this policy installed as /etc/grsec/policy?

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

Postby osa » Thu Dec 22, 2005 4:12 am

spender wrote:Your policy should not have been accepted by the parser. Your root role definition includes "a" in the role type, which is not a valid type (subject/object/role flags are case sensitive). Do you have this policy installed as /etc/grsec/policy?

-Brad


Hi

Policy is accept by the parser and root even I definiotion includes "a" in the role type
Yes this policy installed as /etc/grsec/policy

Maybe this is a bug in the gradm?

osa
osa
 
Posts: 13
Joined: Mon Dec 19, 2005 5:38 am

Postby osa » Thu Dec 29, 2005 5:31 am

Hi spender

Do you maybe know why gradm is loading even if role root is set to "a"? Besides that I need to know if my "policy" contains any mistakes that caused errors which I posted, that are shown on my console.


thx

osa
osa
 
Posts: 13
Joined: Mon Dec 19, 2005 5:38 am

Postby spender » Thu Dec 29, 2005 7:20 am

The parser was ignoring invalid characters in certain states instead of erroring on them. I've corrected the problem in CVS, however I'm still unable to reproduce your problem with the /var/log/messages errors.

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

Postby osa » Fri Dec 30, 2005 5:05 am

Thx for answer for my former question

I have two machine first name A second name B
machine A -> gradm 2.1.6 , kernel version 2.6.11-12+grsecurity patch
machine B -> gradm 2.1.7, kernel version 2.6.14-2_+grsecurity patch

and I have problem with gradm and linux kernel 2.6.14-2(machine B) .After login on machine B with 2.6.14-2 on admins user, next i run "/sbin/gradm -a admin" and "su -root" i can't exec "ps aux" because system reporting ps command not found.
but when a login on tne box with 2.6.11-12 everythink is ok (police are the same on the both machines)
. Any idea ?
osa
 
Posts: 13
Joined: Mon Dec 19, 2005 5:38 am


Return to grsecurity support

cron