On Sun, Feb 20, 2011 at 12:02 PM, Dominick Grift <span dir="ltr">&lt;<a href="mailto:domg472@gmail.com">domg472@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="im">-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
</div><div><div></div><div class="h5">On 02/20/2011 05:59 PM, Dominick Grift wrote:<br>
&gt; On 02/20/2011 06:31 AM, Scott Gifford wrote:</div></div></blockquote><div> [ ... ] </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div class="h5">&gt;&gt; OK, so I have started experimenting with this, but /proc is not behaving how<br>


&gt;&gt; I expect so far.<br>
&gt;<br>
&gt;&gt; So I open up two shells.  In the first I run:<br>
&gt;<br>
&gt;&gt; runcon -l s0-s0:c0,c1 bash<br>
&gt;<br>
&gt;<br>
&gt;&gt; and in the second:<br>
&gt;<br>
&gt;&gt; runcon -l s0-s0:c0,c2 bash<br>
&gt;<br>
&gt;<br>
&gt;&gt; So both should have access to c1, but only the first will have access to c1<br>
&gt;&gt; and only the second will have access to c2.<br></div></div></blockquote><div><br></div><div>Above I meant to say &quot;both should have access to c0&quot;.</div><div>[ ... ] </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div><div class="h5">&gt;&gt; shell1$ *id -Z*<br>
&gt;&gt; user_u:system_r:unconfined_t:-s0:c0,c1<br>
&gt;&gt; shell1$ *ls -lZ /proc/10961/maps*<br>
&gt;&gt; -r--r--r--  sgifford sgifford user_u:system_r:unconfined_t:-s0:c0,c2<br>
&gt;&gt; /proc/10961/maps<br>
&gt;&gt; shell1$ *head -1 /proc/10961/maps*<br>
&gt;&gt; 002ac000-002ad000 r-xp 002ac000 00:00 0          [vdso]<br>
&gt;<br>
&gt; from /policy/mcs:<br>
&gt;<br>
&gt; # Note:<br>
&gt; #  - getattr on dirs/files is not constrained.<br>
&gt; #  - /proc/pid operations are not constrained.<br>
&gt;<br>
&gt; so that explains the above<br></div></div></blockquote><div><br></div><div>Ah, yes it does, thanks!  I wonder if I can adjust this policy to get different behavior, or if it&#39;s hardcoded somewhere outside the policy?</div>

<div><br></div><div>-------Scott.</div><div><br></div></div>