Hello,
I'm new to FreeBSD (I've been currently experimenting with FreeBSD 9.0-RELEASE) and I've been playing with mac_mls and mac_biba a bit. I have some questions about using these MAC modules, to which I haven't found any answers:
1. I wanted to set up a few login classes with a range of compartments, but it never worked. Say, for example, I'd like to have a login class with default MAC label set to mls/5, with possible ranges from 2 to 10 and with possible compartments from 1+2+3 to 1+2+3+4. This is what I added to /etc/login.conf:
but it doesn't work. I also tried to escape the brackets and/or the colons in the label definition with a backslash, but with the same result. After login, the user with the security class mlsclass doesn't have a label mls/5(2:1+2+3-10:1+2+3+4) as I would expect, but mls/5(low-high) instead. Of course I run
2. The compartments can only be determined by a number (1-256), or there is a way to use a text label for them instead of numbers?
3. Is there a simpler way to manage the labels for different login classes than manually editing /etc/login.conf?
4. One practical use of the aforementioned MAC modules is probably setting mandatory rules which files/directories can be accessed by the users in different login classes. What could be other uses for those modules in practice?
I thought of some, but then I told myself there would probably be better solutions than those modules (e. g. using mac_biba for a webserver within an insecure class running at biba/low with the served files labeled biba/low, but there would be other ways to secure the system from possible webserver vulnerabilities, such as jails?).
Thank you very much in advance for your answers!
I'm new to FreeBSD (I've been currently experimenting with FreeBSD 9.0-RELEASE) and I've been playing with mac_mls and mac_biba a bit. I have some questions about using these MAC modules, to which I haven't found any answers:
1. I wanted to set up a few login classes with a range of compartments, but it never worked. Say, for example, I'd like to have a login class with default MAC label set to mls/5, with possible ranges from 2 to 10 and with possible compartments from 1+2+3 to 1+2+3+4. This is what I added to /etc/login.conf:
Code:
mlsclass:\
:label=mls/5(2:1+2+3-10:1+2+3+4):
# cap_mkdb /etc/login.conf after a change of the class definition. Is there anything I do wrong or what I've understood wrong?2. The compartments can only be determined by a number (1-256), or there is a way to use a text label for them instead of numbers?
3. Is there a simpler way to manage the labels for different login classes than manually editing /etc/login.conf?
4. One practical use of the aforementioned MAC modules is probably setting mandatory rules which files/directories can be accessed by the users in different login classes. What could be other uses for those modules in practice?
Thank you very much in advance for your answers!