All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel J Walsh <dwalsh@redhat.com>
To: Paul Moore <paul.moore@hp.com>
Cc: SE Linux <selinux@tycho.nsa.gov>,
	"Christopher J.PeBenito" <cpebenito@tresys.com>
Subject: Re: Recommended location of setkey configuration file?
Date: Fri, 09 Mar 2007 13:31:28 -0500	[thread overview]
Message-ID: <45F1A800.5020108@redhat.com> (raw)
In-Reply-To: <200703091205.32460.paul.moore@hp.com>

Paul Moore wrote:
> All of the following is in regards to RHEL5 and the MLS policy.
>
> I'm trying to use a configuration file with setkey to setup the IPsec SPD in 
> the kernel at boot.  Initially I created the configuration file 
> as /etc/racoon/setkey.conf and put a line in my rc.local to run setkey like 
> so:
>
>  /sbin/setkey -f /etc/racoon/setkey.conf
>
> I ran into two problems with this approach (AVCs posted below):
>
> ***
> type=AVC msg=audit(1173457995.695:303): avc:  denied  { use } for  pid=2102 
> comm="setkey" name="console" dev=tmpfs ino=725 
> scontext=system_u:system_r:setkey_t:s0-s15:c0.c1023 
> tcontext=system_u:system_r:init_t:s0-s15:c0.c1023 tclass=fd
> type=AVC msg=audit(1173457995.695:303): avc:  denied  { use } for  pid=2102 
> comm="setkey" name="console" dev=tmpfs ino=725 
> scontext=system_u:system_r:setkey_t:s0-s15:c0.c1023 
> tcontext=system_u:system_r:init_t:s0-s15:c0.c1023 tclass=fd
> type=AVC msg=audit(1173457995.695:303): avc:  denied  { use } for  pid=2102 
> comm="setkey" name="console" dev=tmpfs ino=725 
> scontext=system_u:system_r:setkey_t:s0-s15:c0.c1023 
> tcontext=system_u:system_r:init_t:s0-s15:c0.c1023 tclass=fd
> type=AVC msg=audit(1173457995.721:304): avc:  denied  { search } for  pid=2102 
> comm="setkey" name="racoon" dev=dm-0 ino=491816 
> scontext=system_u:system_r:setkey_t:s0-s15:c0.c1023 
> tcontext=system_u:object_r:ipsec_conf_file_t:s0 tclass=dir
> ***
>
> The first problem involving fd use seems to have a rather simple fix, which I 
> don't imagine should cause any adverse affects:
>
>  init_use_fds(setkey_t)
>
> However, the second problem of setkey not being allowed to search 
> the /etc/racoon directory makes me believe I'm not placing my setkey.conf in 
> the right location, or I simply have it named incorrectly.  Yet a quick 
> search through the Reference Policy doesn't show an obvious name or location.  
> My hunch is that any location under /etc should work, i.e. /etc/setkey.conf, 
> but I was curious to see what the "recommended" solution is ...
>
>   
No it looks like the policy intended the keys to be there.  This is also 
a bug in policy.
> Thanks.
>
>   


--
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:[~2007-03-09 18:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-09 17:05 Recommended location of setkey configuration file? Paul Moore
2007-03-09 18:31 ` Daniel J Walsh [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=45F1A800.5020108@redhat.com \
    --to=dwalsh@redhat.com \
    --cc=cpebenito@tresys.com \
    --cc=paul.moore@hp.com \
    --cc=selinux@tycho.nsa.gov \
    /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.