grsec does not allow gradm -R by default
Posted: Sat Jul 31, 2004 1:40 am
With a fairly (very) permissive configuration, gradm -R does not work. I am allowed to gradm -D and gradm -E. I'm not too enthused to try out different options because of the risk of locking myself out. Knowing the proper magic to insert would be great!
-------------------------
not seth> ./gradm -R
Password:
Error changing directory to /etc/grsec
Error: No such file or directory
-------------------------
No syslog messages are produced. This is running in the default role.
This is using the 2.6.7 patch specified in a recent forum post, and a slightly modified cvs-tip gradm2 (modified to allow the analysis to be suggestions, not requirements).
The relevant configuration is:
role super sA {
subject / r {
/ rwcdmxi
+CAP_ALL
+CAP_SYS_RAWIO
}
}
role admin sA {
subject / r {
/ rwcdmx
+CAP_ALL
+CAP_SYS_RAWIO
}
}
role default G {
role_transitions admin super
subject / r {
/ rwcdmx
+CAP_ALL
+CAP_SYS_RAWIO
}
[.....]
}
-------------------------
not seth> ./gradm -R
Password:
Error changing directory to /etc/grsec
Error: No such file or directory
-------------------------
No syslog messages are produced. This is running in the default role.
This is using the 2.6.7 patch specified in a recent forum post, and a slightly modified cvs-tip gradm2 (modified to allow the analysis to be suggestions, not requirements).
The relevant configuration is:
role super sA {
subject / r {
/ rwcdmxi
+CAP_ALL
+CAP_SYS_RAWIO
}
}
role admin sA {
subject / r {
/ rwcdmx
+CAP_ALL
+CAP_SYS_RAWIO
}
}
role default G {
role_transitions admin super
subject / r {
/ rwcdmx
+CAP_ALL
+CAP_SYS_RAWIO
}
[.....]
}