Research Menu

.
Skip Search Box

SELinux Mailing List

Re: Tweaks to the amavis policy

From: Daniel J Walsh <dwalsh_at_redhat.com>
Date: Fri, 22 Apr 2005 07:08:15 -0400


Russell Coker wrote:

>On Thursday 17 March 2005 00:18, David Hampton
><hampton-rh@rainbolthampton.net> wrote:
>
>
>>I've added support to the (unused) amavis policy to allow interaction
>>with additional mail filters, and added a new type specifically for
>>quarantined spam and viruses. I also tweaked the network access to
>>limit ports that can be used by amavisd. I'd appreciate any feedback on
>>these changes or tips on how to write better policies. Thanks.
>>
>>
>
>+# Tmp reaper
>+ifdef(`tmpreaper.te', `
>+allow tmpreaper_t amavisd_quarantine_t:dir { read search getattr setattr
>unlink };
>+allow tmpreaper_t amavisd_quarantine_t:file getattr;
>+')
>
>tmpreaper_t should not need setattr access to the directory.
>
>To perform any useful function tmpreaper_t will need read/write access to the
>directory and unlink access to the file such as the following:
>
>allow tmpreaper_t amavisd_quarantine_t:dir { rw_dir_perms unlink };
>allow tmpreaper_t amavisd_quarantine_t:file { getattr unlink };
>
>
>

Why not add the attribute tmpfile to amavisd_quarantine_t and you get this for free.

Dan

-- 



--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
Received on Fri 22 Apr 2005 - 07:21:01 EDT
 

Date Posted: Jan 15, 2009 | Last Modified: Jan 15, 2009 | Last Reviewed: Jan 15, 2009

 
bottom

National Security Agency / Central Security Service