All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nick <nagray@austin.rr.com>
To: SE Linux <selinux@tycho.nsa.gov>, LC Bruzenak <lenny@bruzenak.com>
Subject: First attempt at "Configuring the SELinux Policy" - I Think I got it !
Date: Fri, 21 Nov 2003 16:47:38 -0600	[thread overview]
Message-ID: <1069454857.2867.42.camel@hawaii> (raw)

I read through the document and got stuck at my first attempt.


Nov 21 15:39:20 selinux kernel: avc:  denied  { read } for  pid=1012
exe=/usr/sbin/httpd name=logs dev=03:03 ino=180255
scontext=system_u:system_r:httpd_t
tcontext=system_u:object_r:httpd_log_files_t tclass=lnk_file
N

My interpretation is: (try not to laugh)

the httpd daemon (system_u:system_r:httpd_t) is trying to read a file
named logs (system_u:object_r:httpd_log_files_t) but  does not have
{read} access.

So what I did was look, look for this file called logs that the process
is trying to access.  After I found it, and realized what was going on,
I changed the config to write the files to /var/log/httpd/ dir, where
the policy expected to see them.

Now on the other 50 messages!

The question is, is this pretty much the method required for this type
of thing?

--

Nick Gray
Senior Network Engineer
Bruzenak Inc
nagray@bruzenak.com

--
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-11-21 22:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-21 22:47 Nick [this message]
2003-11-22  1:37 ` First attempt at "Configuring the SELinux Policy" - I Think I got it ! Russell Coker

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=1069454857.2867.42.camel@hawaii \
    --to=nagray@austin.rr.com \
    --cc=lenny@bruzenak.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.