<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 02/20/2014 07:41 PM, Jayson Hurst
      wrote:<br>
    </div>
    <blockquote cite="mid:BLU172-W90D379149DB09E4F50F05D59A0@phx.gbl"
      type="cite">
      <style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
      <div dir="ltr">I am running in permissive mode, my module is in
        permissive mode.<br>
        <br>
        I am actually running on RHEL 6.0.<br>
        <br>
        So in this scenario even though my daemon is authenticating the
        user it is not responsible for context that the krb5cc_xxx file
        gets created as?<br>
      </div>
    </blockquote>
    <br>
    What daemon? <br>
    <br>
    How does your local policy look?<br>
    <blockquote cite="mid:BLU172-W90D379149DB09E4F50F05D59A0@phx.gbl"
      type="cite">
      <div dir="ltr"><br>
        <div>&gt; Date: Thu, 20 Feb 2014 12:48:53 -0500<br>
          &gt; From: <a class="moz-txt-link-abbreviated" href="mailto:dwalsh@redhat.com">dwalsh@redhat.com</a><br>
          &gt; To: <a class="moz-txt-link-abbreviated" href="mailto:swazup@hotmail.com">swazup@hotmail.com</a>; <a class="moz-txt-link-abbreviated" href="mailto:selinux@lists.fedoraproject.org">selinux@lists.fedoraproject.org</a><br>
          &gt; Subject: Re: Correct way to use booleans<br>
          &gt; <br>
          &gt; -----BEGIN PGP SIGNED MESSAGE-----<br>
          &gt; Hash: SHA1<br>
          &gt; <br>
          &gt; On 02/20/2014 11:30 AM, Jayson Hurst wrote:<br>
          &gt; &gt; So it sounds like booleans are meant to be set by
          the admin if they need<br>
          &gt; &gt; that sort of thing on. In the case of samba if the
          admin wanted to share<br>
          &gt; &gt; out user directories they would need to turn on a
          boolean that would allow<br>
          &gt; &gt; them to do so like samba_enable_home_dirs.<br>
          &gt; &gt; <br>
          &gt; &gt; I see a few different files in /tmp that are
          labelled as tmp_t, but the<br>
          &gt; &gt; ones I care about are the krb5cc_X files. If I use
          kinit to generate the<br>
          &gt; &gt; krb5cc file it is labelled as user_tmp_t but if I
          login through<br>
          &gt; &gt; ssh,local_login, gdm, etc... they get created as
          tmp_t. Seeing that my<br>
          &gt; &gt; daemon is responsible for kerberos login I can only
          guess that it is<br>
          &gt; &gt; generating them incorrectly. In my SELinux module
          should I have a<br>
          &gt; &gt; transition for files created in tmp to have them
          created as user_tmp_t or<br>
          &gt; &gt; is there a better way?<br>
          &gt; &gt; <br>
          &gt; Well are you in permissive mode? Are you using standard
          Fedora packages or<br>
          &gt; something different? Login/sshd should be creating these
          files as user_tmp_t.<br>
          &gt; <br>
          &gt; <br>
          &gt; &gt;&gt; Date: Thu, 20 Feb 2014 08:03:44 -0500 From:
          <a class="moz-txt-link-abbreviated" href="mailto:dwalsh@redhat.com">dwalsh@redhat.com</a> To:<br>
          &gt; &gt;&gt; <a class="moz-txt-link-abbreviated" href="mailto:swazup@hotmail.com">swazup@hotmail.com</a>;
          <a class="moz-txt-link-abbreviated" href="mailto:selinux@lists.fedoraproject.org">selinux@lists.fedoraproject.org</a> Subject: Re: Correct<br>
          &gt; &gt;&gt; way to use booleans<br>
          &gt; &gt;&gt; <br>
          &gt; &gt; On 02/19/2014 08:20 PM, Jayson Hurst wrote:<br>
          &gt; &gt;&gt; Audit2Allow is suggesting that a boolean be
          turned on.<br>
          &gt; &gt; <br>
          &gt; &gt;&gt; #!!!! This avc can be allowed using the boolean
          'allow_ypbind'<br>
          &gt; &gt; <br>
          &gt; &gt;&gt; allow vasd_t ldap_port_t:tcp_socket name_bind;<br>
          &gt; &gt; <br>
          &gt; &gt;&gt; setsebool -P allow_ypbind 1<br>
          &gt; &gt; <br>
          &gt; &gt;&gt; Should this boolean be enabled via my domains
          policy, or is this<br>
          &gt; &gt;&gt; something the system administrator should turn
          on if they know they will<br>
          &gt; &gt;&gt; be using NIS?<br>
          &gt; &gt; <br>
          &gt; &gt; Only the system admin should turn this on in an NIS
          environment. This is<br>
          &gt; &gt; an incredibly permissive boolean. Allows all
          processes to use any network<br>
          &gt; &gt; port.<br>
          &gt; &gt; <br>
          &gt; &gt;&gt; The same question can be asked for other things
          like http and samba.<br>
          &gt; &gt;&gt; #!!!! This avc can be allowed using one of the
          these booleans: # <br>
          &gt; &gt;&gt; samba_export_all_ro, samba_export_all_rw<br>
          &gt; &gt; <br>
          &gt; &gt;&gt; allow smbd_t tmp_t:file getattr;<br>
          &gt; &gt; There really should not be tmp_t files on a system.
          Any idea how this file <br>
          &gt; &gt; got created? smbd_t in permissive mode?<br>
          &gt; &gt; <br>
          &gt; &gt;&gt; #!!!! This avc can be allowed using one of the
          these booleans: # <br>
          &gt; &gt;&gt; samba_create_home_dirs, samba_export_all_rw<br>
          &gt; &gt; <br>
          &gt; &gt;&gt; allow smbd_t user_home_dir_t:dir { write create
          add_name };<br>
          &gt; &gt; <br>
          &gt; &gt;&gt; setsebool -P samba_export_all_rw 1<br>
          &gt; &gt; <br>
          &gt; &gt; <br>
          &gt; &gt; <br>
          &gt; &gt; <br>
          &gt; &gt; <br>
          &gt; &gt;&gt; -- selinux mailing list
          <a class="moz-txt-link-abbreviated" href="mailto:selinux@lists.fedoraproject.org">selinux@lists.fedoraproject.org</a> <br>
          &gt; &gt;&gt;
          <a class="moz-txt-link-freetext" href="https://admin.fedoraproject.org/mailman/listinfo/selinux">https://admin.fedoraproject.org/mailman/listinfo/selinux</a><br>
          &gt; &gt; <br>
          &gt; &gt; If a user is exporting the home dirs it would be
          better to use <br>
          &gt; &gt; samba_enable_home_dirs<br>
          &gt; &gt; <br>
          &gt; &gt; But if he is sharing the entire system then use
          samba_export_all_rw<br>
          &gt; &gt; <br>
          &gt; &gt; <br>
          &gt; &gt; <br>
          &gt; &gt; <br>
          &gt; &gt; -- selinux mailing list
          <a class="moz-txt-link-abbreviated" href="mailto:selinux@lists.fedoraproject.org">selinux@lists.fedoraproject.org</a> <br>
          &gt; &gt;
          <a class="moz-txt-link-freetext" href="https://admin.fedoraproject.org/mailman/listinfo/selinux">https://admin.fedoraproject.org/mailman/listinfo/selinux</a><br>
          &gt; &gt; <br>
          &gt; <br>
          &gt; -----BEGIN PGP SIGNATURE-----<br>
          &gt; Version: GnuPG v1<br>
          &gt; Comment: Using GnuPG with Thunderbird -
          <a class="moz-txt-link-freetext" href="http://www.enigmail.net/">http://www.enigmail.net/</a><br>
          &gt; <br>
          &gt;
          iEYEARECAAYFAlMGQAUACgkQrlYvE4MpobMiuwCePDvZd/9kwNGYDfsjoZHgi1F/<br>
          &gt; pHoAn05t4SFE75eS8GEDKBWuuRLG5BWf<br>
          &gt; =jZN7<br>
          &gt; -----END PGP SIGNATURE-----<br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">--
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>