<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>45917</bug_id>
          
          <creation_ts>2004-03-27 12:11 0000</creation_ts>
          <short_desc>courier-imap-3.0.2 policy</short_desc>
          <delta_ts>2004-04-06 13:14:45 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Hardened</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>kaiowas@gentoo.org</reporter>
          <assigned_to>pebenito@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>kaiowas@gentoo.org</who>
            <bug_when>2004-03-27 12:11:25 0000</bug_when>
            <thetext>in 3.0.2 the courierlogger binary was moved in /usr/sbin and a symlink was provided for compatibility. 

the policy should be changed like this:

in courier-imap.te
+allow courier_tcpd_t courier_exec_t:lnk_file { read };

in courier-imap.fc
-/usr/lib/courier-imap/courierlogger --  system_u:object_r:courier_exec_t
+/usr/lib/courier-imap/courierlogger     system_u:object_r:courier_exec_t
+/usr/sbin/courierlogger             --  system_u:object_r:courier_exec_t

I will check monday if more rules must be changed on a more used server. 
on my home server I haven&apos;t found any additional inconsistences.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kaiowas@gentoo.org</who>
            <bug_when>2004-03-29 22:55:57 0000</bug_when>
            <thetext>no additional policy changes were needed.
please update the policy files.

bye,
peter</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pebenito@gentoo.org</who>
            <bug_when>2004-03-30 14:25:38 0000</bug_when>
            <thetext>Generally we try not to give symlinks special labels.  It seems like there only needs to be these additions, since it looks like the symlink would be bin_t with the current file contexts:

allow courier_tcpd_t bin_t:lnk_file read;

fc:
/usr/sbin/courierlogger -- system_u:object_r:courier_exec_t
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kaiowas@gentoo.org</who>
            <bug_when>2004-03-30 23:15:12 0000</bug_when>
            <thetext>
ok, it also works using your version.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pebenito@gentoo.org</who>
            <bug_when>2004-04-06 13:14:45 0000</bug_when>
            <thetext>selinux-courier-imap-20040406 committed to portage</thetext>
          </long_desc>
      
    </bug>

</bugzilla>