How about future of MLS?
Subsystems (2)
It seems MLS has been in experimental status for a long time.
How about its future? Is it possible that SELinux will discard MLS component?
Signature · 13 lines
Best regards, Wu Yanjun --------------------------------------------------------------- Open System and Chinese Information Processing Center, Institute of Software, Chinese Academy of Sciences, P.O. Box 8718, Beijing 100080, CHINA Phone: 62544129/62647145/62638063-42(Lab), 82137436(Dorm) ---------------------------------------------------------------- -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 2 lines · Wu Yanjun
It seems MLS has been in experimental status for a long time.
How about its future? Is it possible that SELinux will discard MLS component?
I would expect the MLS policy component to eventually be enhanced; the fact that it hasn't been done yet is just a reflection of a lack of anyone driving requirements for it, as most people seem satisfied with the RBAC/TE model. Do you have a particular need for MLS support? Note that TE can express MLS, so that is an alternative approach.
Signature · 8 lines
Stephen Smalley <[email protected]> National Security Agency -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Though I subscribed SELinux maillist nearly one year, I am really a newbie on security field. So correct me if I am wrong.
I just learned BLP model and read SELinux codes that implements MLS. It seems SELinux use the same MLS context for both subject and object. And the context contains two levels, say high and low. I can understand why a subject binds two levels, but I'm confused why objects also have high and low levels. Is there any senerio we could make use of them two for an object? Also I am interested in what aspects your excellent team plan to enhance the MLS policy component. I hope I could do something for its improvement.
Quoted 5 lines
I would expect the MLS policy component to eventually be enhanced; the fact that it hasn't been done yet is just a reflection of a lack of anyone driving requirements for it, as most people seem satisfied with the RBAC/TE model. Do you have a particular need for MLS support? Note that TE can express MLS, so that is an alternative approach.
Signature · 7 lines
Best regards, Wu Yanjun -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 7 lines · Wu Yanjun
Though I subscribed SELinux maillist nearly one year, I am really a newbie on security field. So correct me if I am wrong.
I just learned BLP model and read SELinux codes that implements MLS. It seems SELinux use the same MLS context for both subject and object. And the context contains two levels, say high and low. I can understand why a subject binds two levels, but I'm confused why objects also have high and low levels. Is there any senerio we could make use of them two for an object?
The MLS model was described in the Final Report and Formal Top-Level Specification available from http://www.cs.utah.edu/flux/flask. An object may serve as a proxy for a subject, e.g. sockets and network devices, or may represent the private state of a subject, e.g. memory, or may act as a communication channel between multilevel subjects, so that it may be useful to assign it two levels.
Quoted 2 lines
Also I am interested in what aspects your excellent team plan to enhance the MLS policy component. I hope I could do something for its improvement.
There is some debate about whether the decoupling of the MLS and TE policies (described in the reports mentioned above) in Flask was a good idea. So one option would be to reintegrate them, with the ability to specify separate TE access vectors for each MLS relation, in order to better support least privilege for trusted subjects.
Regardless of whether this approach is taken, the MLS configuration requires further work to correctly map each SELinux permission to the corresponding set of MLS base permissions (information flows), and the TE configuration requires further work to identify domains that need to act as trusted subjects. Polyinstantiated / multi-level directory support will be needed to support userspace, and a program for selecting the current level will be needed.
Signature · 8 lines
Stephen Smalley <[email protected]> National Security Agency -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 7 lines · Stephen Smalley
Regardless of whether this approach is taken, the MLS configuration requires further work to correctly map each SELinux permission to the corresponding set of MLS base permissions (information flows), and the TE configuration requires further work to identify domains that need to act as trusted subjects. Polyinstantiated / multi-level directory support will be needed to support userspace, and a program for selecting the current level will be needed.
I have attached and included below two patches against the latest selinux-usr to help fix the mls configuration for SELinux. This is to support our work on information flow analysis that will be released soon. The first patch modifies policy/mls to support the object class changes. The base permissions assigned are meant to be consistent with the existing mappings, but anyone who wants to use MLS should review these changes. The second patch adds support to the checkpolicy Makefile for compiling with MLS support.
Karl
Signature · 100 lines
Karl MacMillan Tresys Technology [email protected] (410)290-1411x134 --- policy/mls.orig 2003-09-12 01:57:22.908376432 -0400 +++ policy/mls 2003-09-12 02:54:16.302461656 -0400 @@ -79,7 +79,7 @@ recv_msg : read send_msg : write name_bind : none -} +} common ipc { @@ -197,6 +197,10 @@ getcap : read setcap : write share : { read write } + noatsecure : none + getattr : read + setexec : write + setfscreate : write } class ipc @@ -222,26 +226,21 @@ class security { compute_av : none - transition_sid : none - member_sid : none - sid_to_context : none - context_to_sid : none + compute_create : none + compute_member : none + check_context : none load_policy : none - get_sids : none - change_sid : none - get_user_sids : none + compute_relabel : none + compute_user : none + setenforce : none } class system { ipc_info : none - avc_toggle : none - nfsd_control : none - bdflush : none syslog_read : none syslog_mod : none syslog_console : none - ichsid : none } class capability @@ -276,3 +275,10 @@ mknod : none lease : none } + +class passwd +{ + passwd : write + chfn : write + chsh : write +} --- checkpolicy/Makefile.orig 2003-09-12 01:52:03.694904256 -0400 +++ checkpolicy/Makefile 2003-09-12 01:55:08.370829248 -0400 @@ -4,10 +4,21 @@ PREFIX ?= ${DESTDIR}/usr BINDIR ?= $(PREFIX)/bin -CFLAGS = -g -Wall -O2 -pipe +# Set to y for MLS +MLS=n + +ifeq ($(MLS),y) +OPTIONS = -DCONFIG_SECURITY_SELINUX_MLS +OBJS = mls.o +else +OPTIONS = +OBJS = +endif + +CFLAGS = -g $(OPTIONS) -Wall -O2 -pipe override CFLAGS += -include global.h -I. -Iinclude -OBJS = ebitmap.o hashtab.o symtab.o sidtab.o avtab.o policydb.o services.o y.tab.o lex.yy.o queue.o write.o checkpolicy.o +OBJS += ebitmap.o hashtab.o symtab.o sidtab.o avtab.o policydb.o services.o y.tab.o lex.yy.o queue.o write.o checkpolicy.o LIBS=-lfl
Makefile renamed from Makefile.orig +13 -2
@@ -4,10 +4,21 @@ PREFIX ?= ${DESTDIR}/usr BINDIR ?= $(PREFIX)/bin -CFLAGS = -g -Wall -O2 -pipe +# Set to y for MLS +MLS=n + +ifeq ($(MLS),y) +OPTIONS = -DCONFIG_SECURITY_SELINUX_MLS +OBJS = mls.o +else +OPTIONS = +OBJS = +endif + +CFLAGS = -g $(OPTIONS) -Wall -O2 -pipe override CFLAGS += -include global.h -I. -Iinclude -OBJS = ebitmap.o hashtab.o symtab.o sidtab.o avtab.o policydb.o services.o y.tab.o lex.yy.o queue.o write.o checkpolicy.o +OBJS += ebitmap.o hashtab.o symtab.o sidtab.o avtab.o policydb.o services.o y.tab.o lex.yy.o queue.o write.o checkpolicy.o LIBS=-lfl
mls renamed from mls.orig +18 -12
@@ -79,7 +79,7 @@ recv_msg : read send_msg : write name_bind : none -} +} common ipc {
@@ -197,6 +197,10 @@ getcap : read setcap : write share : { read write } + noatsecure : none + getattr : read + setexec : write + setfscreate : write } class ipc
@@ -222,26 +226,21 @@ class security { compute_av : none - transition_sid : none - member_sid : none - sid_to_context : none - context_to_sid : none + compute_create : none + compute_member : none + check_context : none load_policy : none - get_sids : none - change_sid : none - get_user_sids : none + compute_relabel : none + compute_user : none + setenforce : none } class system { ipc_info : none - avc_toggle : none - nfsd_control : none - bdflush : none syslog_read : none syslog_mod : none syslog_console : none - ichsid : none } class capability
@@ -276,3 +275,10 @@ mknod : none lease : none } + +class passwd +{ + passwd : write + chfn : write + chsh : write +}