tasks at reboot are executed under default role, not admin
Posted: Thu Jun 28, 2007 11:42 am
Hi all
I have a rather stock Ubuntu 6.06 system with kernel 2.6.19.2 and grsecurity /gradm 2.1.10. The ruleset works quite fine for the applications running.
In the policy file I allow only admin to reboot the box, even hiding /sbin/reboot and family from the default role.
The admin role basically looks like
role admin sA
+CAP_ALL
My problem now is that when rebooting the box as root/admin (gradm -a admin) when logged in over ssh, the stop scripts in /etc/init.d get executed under the admin role first, which is fine. But as soon as the ssh login shell the authentication took place in has been killed by the appropriate script, all further scripts are executed under the default role. And most of the capabilities to shut down the system further are not available to the default role, so the system just remains up, with no connectivity available from the outside.
Can anybody see a way to work around this problem other than granting all required privileges to the default role again?
thx /markus
I have a rather stock Ubuntu 6.06 system with kernel 2.6.19.2 and grsecurity /gradm 2.1.10. The ruleset works quite fine for the applications running.
In the policy file I allow only admin to reboot the box, even hiding /sbin/reboot and family from the default role.
The admin role basically looks like
role admin sA
+CAP_ALL
My problem now is that when rebooting the box as root/admin (gradm -a admin) when logged in over ssh, the stop scripts in /etc/init.d get executed under the admin role first, which is fine. But as soon as the ssh login shell the authentication took place in has been killed by the appropriate script, all further scripts are executed under the default role. And most of the capabilities to shut down the system further are not available to the default role, so the system just remains up, with no connectivity available from the outside.
Can anybody see a way to work around this problem other than granting all required privileges to the default role again?
thx /markus