<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 9">
<meta name=Originator content="Microsoft Word 9">
<link rel=File-List href="cid:filelist.xml@01C44E11.2BC86360">
<!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:DoNotRelyOnCSS/>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:View>Normal</w:View>
  <w:Zoom>0</w:Zoom>
  <w:DocumentKind>DocumentEmail</w:DocumentKind>
  <w:EnvelopeVis/>
 </w:WordDocument>
</xml><![endif]-->
<style>
<!--
 /* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {mso-style-parent:"";
        margin:0in;
        margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:12.0pt;
        font-family:"Times New Roman";
        mso-fareast-font-family:"Times New Roman";}
p.MsoAutoSig, li.MsoAutoSig, div.MsoAutoSig
        {margin:0in;
        margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:12.0pt;
        font-family:"Times New Roman";
        mso-fareast-font-family:"Times New Roman";}
span.EmailStyle15
        {mso-style-type:personal-compose;
        mso-ansi-font-size:10.0pt;
        mso-ascii-font-family:Arial;
        mso-hansi-font-family:Arial;
        mso-bidi-font-family:Arial;
        color:black;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;
        mso-header-margin:.5in;
        mso-footer-margin:.5in;
        mso-paper-source:0;}
div.Section1
        {page:Section1;}
-->
</style>
</head>

<body lang=EN-US style='tab-interval:.5in'>

<div class=Section1>

<p class=MsoNormal><span class=EmailStyle15><font size=2 color=black
face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:
Arial'>His guys,<o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle15><font size=2 color=black
face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:
Arial'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle15><font size=2 color=black
face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:
Arial'>First let me start off by saying that I’ve been running Fedora Core 2
with SELinux in permissive mode since a few days after it was released
officially with no real system problems.<o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle15><font size=2 color=black
face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:
Arial'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle15><font size=2 color=black
face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:
Arial'>That being said, I’m trying to understand how to do things properly to
maintain the integrity of the system and perform the auditing I desire.<span
style="mso-spacerun: yes">  </span>Is there a good place to look which
documents the SELinux relevant commands?<span style="mso-spacerun: yes"> 
</span>The Fedora Core 2 SELinux FAQ has some interesting info, but relatively
few commands.<span style="mso-spacerun: yes">  </span>A Gentoo related
site gave me some command ideas.<span style="mso-spacerun: yes">  </span>Perhaps
this is on the documentation CD for Fedora Core 2, which I have yet to
download?<span style="mso-spacerun: yes">  </span>I expected to be able to
hunt through the man pages starting with man selinux, but that didn’t pan
out.<span style="mso-spacerun: yes">  </span>I found some other references
online called the Getting Started with SE Linux HOWTO and Gentoo SE Linux HOWTO,
but these offered some commands not available in the Fedora Core 2 implementation.<span
style="mso-spacerun: yes">  </span>To be more specific, I have been able
to type “id” and “newrole”, but not able to type “rlpkg” and “run_init”.<span
style="mso-spacerun: yes">  </span>Re-labeling a file system is something
they do with “cd /etc/security/selinux/src/plicy; make relabel”, but I was
unable to find the equivalent.<o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle15><font size=2 color=black
face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:
Arial'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle15><font size=2 color=black
face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:
Arial'>I have a very specific issue that I’m trying to figure out.<span
style="mso-spacerun: yes">  </span>For some reason, when a role violation
(perhaps there’s a better phrase) occurs and a log message is produced in
/var/log/messages, I would like see a user id and the context.<span
style="mso-spacerun: yes">  </span>For example in “Getting Started with SE
Linux HOWTO (7. Explanation of log file messages) the example show the
following scontext:<o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle15><font size=2 color=black
face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:
Arial'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle15><font size=2 color=black
face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:
Arial'>scontext: faye:user_r:user_t<o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle15><font size=2 color=black
face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:
Arial'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle15><font size=2 color=black
face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:
Arial'>This is great, as I would know to contact the user faye and ask about
the situation.<span style="mso-spacerun: yes">  </span>But on my Fedora
Core 2 machine, my /var/log/messages produces:<o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle15><font size=2 color=black
face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:
Arial'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle15><font size=2 color=black
face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:
Arial'>scontext: user_u:user_r:user_t<o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle15><font size=2 color=black
face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:
Arial'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle15><font size=2 color=black
face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:
Arial'>This is not so useful.<span style="mso-spacerun: yes">  </span>As I
have no idea who user_u is.<span style="mso-spacerun: yes">  </span>I am
using NIS for this system.<span style="mso-spacerun: yes">  </span>Typing “id”
on my system produces:<o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle15><font size=2 color=black
face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:
Arial'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle15><font size=2 color=black
face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:
Arial'>uid=706(dan) gid=20(games) groups=20(games),501(test)
context=user_u:user_r:user_t<o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle15><font size=2 color=black
face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:
Arial'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle15><font size=2 color=black
face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:
Arial'>So I guess everything is consistent with the log entry as far as the
system is concerned.<span style="mso-spacerun: yes">  </span>I just don’t
want a generic user_u to get filled in for violations.<span
style="mso-spacerun: yes">  </span>I want the specific user id and name.<span
style="mso-spacerun: yes">  </span>Perhaps I need to configure some more
stuff for use with NIS?<o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle15><font size=2 color=black
face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:
Arial'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></font></span></p>

<p class=MsoAutoSig><!--[if supportFields]><font color=black><span 
style='color:black'><span style='mso-element:field-begin'></span><span 
style="mso-spacerun: yes"> </span>AUTOTEXTLIST \s "E-mail 
Signature" <span style='mso-element:field-separator'></span></span></font><![endif]--><font
color=black><span style='color:black'>Daniel J. Levine</span></font><font
color=black><span style='color:black;mso-color-alt:windowtext'><o:p></o:p></span></font></p>

<p class=MsoAutoSig><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt;color:black'>Section Supervisor</span></font><font
color=black><span style='color:black;mso-color-alt:windowtext'><o:p></o:p></span></font></p>

<p class=MsoAutoSig><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt;color:black'>Johns Hopkins University</span></font><font
color=black><span style='color:black;mso-color-alt:windowtext'><o:p></o:p></span></font></p>

<p class=MsoAutoSig><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt;color:black'>Applied Physics Laboratory</span></font><font
color=black><span style='color:black;mso-color-alt:windowtext'><o:p></o:p></span></font></p>

<p class=MsoAutoSig><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt;color:black'>443-778-3952 240-228-3952</span></font><font
color=black><span style='color:black;mso-color-alt:windowtext'><o:p></o:p></span></font></p>

<p class=MsoNormal><!--[if supportFields]><font color=black><span 
style='color:black'><span style='mso-element:field-end'></span></span></font><![endif]--><font
color=black><span style='color:black'><![if !supportEmptyParas]> <![endif]></span></font><font
color=black><span style='color:black;mso-color-alt:windowtext'><o:p></o:p></span></font></p>

</div>

</body>

</html>