From: harrytaurus2002@hotmail.com (HarryCiao) Date: Thu, 10 Mar 2011 07:32:50 +0000 Subject: [refpolicy] Why mcstrans daemon needs to run at mls_systemhigh? Message-ID: To: refpolicy@oss.tresys.com List-Id: refpolicy.oss.tresys.com Hello, In current setrans.te implementation the setrans_t would run at mls_systemhigh if MLS is enabled. Why is this necessary? The unix_stream_socket object that bond to the socket file of "/var/run/setrans/.setrans-unix" would have mls_systemhigh as well, rendering that application domains at mls_systemlow unable to connect to it. We will have below error message such as: type=AVC msg=audit(1299571674.264:342): avc: denied { connectto } for pid=1687 comm="secon" path="/var/run/setrans/.setrans-unix" scontext=root:sysadm_r:sysadm_t:s0-s15:c0.c1023 tcontext=system_u:system_r:setrans_t:s15:c0.c1023 tclass=unix_stream_socket type=AVC msg=audit(1299571690.332:361): avc: denied { connectto } for pid=1697 comm="newrole" path="/var/run/setrans/.setrans-unix" scontext=root:sysadm_r:newrole_t:s0-s15:c0.c1023 tcontext=system_u:system_r:setrans_t:s15:c0.c1023 tclass=unix_stream_socket In oder to allow date to flow from mls_systemlow to mls_systemhigh, we would have to add the latter as MLS trusted object, for example, mls_trusted_object(setrans_t) (Alternatively we could add application domains to mlsnetwritetoclr attribute, but the number of such application domains could be many). Why indeed is this needed? I mean if mcstrans daemon runs at mls_systemlow then we won't have the problem from the beginning. Ideas? Thanks a lot! Best regards, Harry -------------- next part -------------- An HTML attachment was scrubbed... URL: http://oss.tresys.com/pipermail/refpolicy/attachments/20110310/cf011801/attachment.html