<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    On 11/18/2011 02:05 AM, Brian Ginn wrote:
    <blockquote
cite="mid:C5938CC477B7B84AAAFFE6B2028C97940253C71D@mbx026-e1-nj-6.exch026.domain.local"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="Generator" content="Microsoft Word 12 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.5pt;
        font-family:Consolas;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:Consolas;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal">I have SELinux policy that is compiled on
          Red Hat Enterprise Linux 5.<o:p></o:p></p>
        <p class="MsoNormal">This policy fails to install on Red Hat
          Enterprise Linux 6 with the following message:<o:p></o:p></p>
        <p class="MsoPlainText">libsepol.print_missing_requirements:
          pbrun's global requirements were not met: type/attribute
          system_chkpwd_t (No such file or directory).</p>
      </div>
    </blockquote>
    This type does not exist on RHEL6. This is a problem why you can not
    load your local policy. You probably just need to recompile your
    policy on RHEL6. Another option would be to use "optional_policy"
    block for interface calling.<br>
    <br>
    For example<br>
    <br>
    optional_policy(`<br>
    &nbsp;auth_domtrans_chk_passwd(test_t)<br>
    ')<br>
    <br>
    If something is wrong with this interface then it won't be used. But
    of course, then you will lost a part of functionality.<br>
    <blockquote
cite="mid:C5938CC477B7B84AAAFFE6B2028C97940253C71D@mbx026-e1-nj-6.exch026.domain.local"
      type="cite">
      <div class="WordSection1">
        <p class="MsoPlainText"><o:p></o:p></p>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoNormal">Is there a way to write SELinux policy so
          that It can be compiled on v 5.x and will run on 6.x ?</p>
      </div>
    </blockquote>
    <br>
    <blockquote
cite="mid:C5938CC477B7B84AAAFFE6B2028C97940253C71D@mbx026-e1-nj-6.exch026.domain.local"
      type="cite">
      <div class="WordSection1">
        <p class="MsoNormal"><o:p></o:p></p>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoNormal">Thanks,<o:p></o:p></p>
        <p class="MsoNormal">Brian</p>
      </div>
    </blockquote>
    Regards,<br>
    Miroslav<br>
    <blockquote
cite="mid:C5938CC477B7B84AAAFFE6B2028C97940253C71D@mbx026-e1-nj-6.exch026.domain.local"
      type="cite">
      <div class="WordSection1">
        <p class="MsoNormal"><o:p></o:p></p>
      </div>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
--
selinux mailing list
<a class="moz-txt-link-abbreviated" href="mailto:selinux@lists.fedoraproject.org">selinux@lists.fedoraproject.org</a>
<a class="moz-txt-link-freetext" href="https://admin.fedoraproject.org/mailman/listinfo/selinux">https://admin.fedoraproject.org/mailman/listinfo/selinux</a></pre>
    </blockquote>
    <br>
  </body>
</html>