Hi, I really like this idea, especially Partyzant's way.
For example: I could put my webserver (including configs, userfiles ...) to a special place like /var/www and create a role that permits to do unrestricted file operations (like root) to this place.
- Code: Select all
role webadmin sAG {
subject / {
...
/var/www !rwx
}
}
I know grsecurity doesn't raise permissions, but in this case it really makes sence.
2.
It should be possible to define the uid, euid for subjects started under a role.
This way I could create roles for root-only commands (mount/umount, iptables, apt-get,... which require uid 0) that can be assigned to any user.
The system can be completely role-based, so there is no need for one root anymore. You just assign the specific roles to the responsible users.
- Code: Select all
role mounter sAG {
...
subject /sbin/mount uid:0,euid:0
}
If somebody with role "mounter" executes "/sbin/mount", this will be run under uid 0 and euid 0.
Maybe then it would also be usefull to be able to raise/overide capabilities with: !+CAP_ALL
For mounting no further capabilities are neccessary, but there are other commands that could need them.
Please tell me your opinions
and whether these two features will be included to grsecurity.
Thanks in advance.
John