All of lore.kernel.org
 help / color / mirror / Atom feed
From: Russell Coker <russell@coker.com.au>
To: Colin Walters <walters@verbum.org>
Cc: selinux@tycho.nsa.gov
Subject: Re: first pass at a spamassassin/spamc/spamd policy
Date: Wed, 16 Jul 2003 18:24:18 +1000	[thread overview]
Message-ID: <200307161824.18227.russell@coker.com.au> (raw)
In-Reply-To: <1058342362.22214.47.camel@columbia>

On Wed, 16 Jul 2003 17:59, Colin Walters wrote:
> > tmp_domain(spamd)
> > allow spamd_t tmp_t:dir { getattr read };
> > The second line should not be needed, the first line should do it.
>
> Ok, hm...I think it wasn't working for me before, but it appears to be
> now; perhaps I picked up a fix in a merge with your tree.

You probably added the second line first, and then added the tmp_domain() 
entry later.  I've done that a few times myself.

> > file_type_auto_trans($1, $2_home_dir_t, $2_home_spamassassin_t)
> > create_dir_file($1, $2_home_spamassassin_t)
> >
> > The first line does everything that the second line does.  Also consider
> > whether you need the full capabilities of the file_type_auto_trans()
> > macro, does spamassasin really need to create sockets under the user home
> > directory? Maybe the following will do:
> > file_type_auto_trans($1, $2_home_dir_t, $2_home_spamassassin_t, file)
>
> I don't think that's enough, because I want it to be able to create the
> ~/.spamassassin directory too.

I've been thinking of writing a macro that would just allow creation of a 
directory or a file under a particular directory with a type change.

Wanting to create a directory or a file is a really common operation so it 
makes sense for it to be easy to allow it without allowing other things.

-- 
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page


--
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.

      reply	other threads:[~2003-07-16  8:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-15 18:56 first pass at a spamassassin/spamc/spamd policy Colin Walters
2003-07-16  1:10 ` Russell Coker
2003-07-16  7:59   ` Colin Walters
2003-07-16  8:24     ` Russell Coker [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200307161824.18227.russell@coker.com.au \
    --to=russell@coker.com.au \
    --cc=selinux@tycho.nsa.gov \
    --cc=walters@verbum.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.