|
Re: about the multiple security module in LSM: msg#00020linux.kernel.lsm
Serge E. Hallyn wrote: <snip> What does a, b and c refer to (obviously modules) but which ones? what about modules built into the kernel like SELinux, capabilities, root plug and so on? How does the user know what their symbol is? This should be done by name, (selinux and capabilities) or backdoor, and so on. Shouldn't there just be a file for each hook instead of this awkward syntax? echo "(selinux and capabilities) or backdoor" > /sys/security/stacker/inode_permission echo "selinux and capabilities" > /sys/security/stacker/default Aside from these trivial notation changes, how would this be implemented practically? You'd have to have an init script setting these on boot, long after some modules may have become active and started enforcing. This makes it not trivial to set the decisions up from the beginning, either an initrd or compiling them into the kernel as config options would be required. I usually think of LSM as implementing MAC and not DAC, but I guess there's SELinux is flexible enough that starting a new MAC implementation from scracth should be really a last resort. you probably shouldn't try to put a parser in the kernel, this is excessive overhead that can be avoided by serializing the data to a binary file and feeding that into the kernel (see SELinux and checkpolicy). Use of a pseudofs or a sysfs interface is strongly recommended. Reading Joshua Brindle |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: about linux kenel module configure file using xml: 00020, Valdis . Kletnieks |
|---|---|
| Next by Date: | Re: about the multiple security module in LSM: 00020, Chris Wright |
| Previous by Thread: | Re: about the multiple security module in LSMi: 00020, Chris Wright |
| Next by Thread: | Re: about the multiple security module in LSM: 00020, Chris Wright |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |