Ticket #41 (closed Bug: fixed)

Opened 9 months ago

Last modified 9 months ago

Debian-compatible paths in Exim policy

Reported by: devin@debian.org Assigned to: pebenito
Priority: Normal Component: Policy
Version: SVN HEAD Keywords:
Cc:

Description

The exim policy module's fc uses paths of the form /usr/sbin/exim, /var/spool/exim, and similar. Debian installs its Exim files in a major-version-specific path, such as /var/spool/exim4.

This patch adjusts that to tolerate a trailing version number. I didn't make this distro-conditional, since it seems safe for all distros and there may be others using the same convention. It also adds a missing backslash on the PID path.

=================================================================== --- exim.fc (revision 2596) +++ exim.fc (working copy) @@ -1,4 +1,4 @@ -/usr/sbin/exim -- gen_context(system_u:object_r:exim_exec_t,s0) -/var/log/exim(/.*)? gen_context(system_u:object_r:exim_log_t,s0) -/var/run/exim.pid -- gen_context(system_u:object_r:exim_var_run_t,s0) -/var/spool/exim(/.*)? gen_context(system_u:object_r:exim_spool_t,s0) +/usr/sbin/exim[0-9]? -- gen_context(system_u:object_r:exim_exec_t,s0) +/var/log/exim[0-9]?(/.*)? gen_context(system_u:object_r:exim_log_t,s0) +/var/run/exim[0-9]?\.pid -- gen_context(system_u:object_r:exim_var_run_t,s0) +/var/spool/exim[0-9]?(/.*)? gen_context(system_u:object_r:exim_spool_t,s0)

Attachments

exim.fc-debian.patch (0.7 kB) - added by aqua on 02/11/08 04:19:57.
Patch against refpolicy svn

Change History

02/11/08 04:19:57 changed by aqua

  • attachment exim.fc-debian.patch added.

Patch against refpolicy svn

03/06/08 10:32:58 changed by pebenito

  • status changed from new to closed.
  • resolution set to fixed.