All of lore.kernel.org
 help / color / mirror / Atom feed
From: simon@mintsource.org (Simon Peter Nicholls)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] Unexpected user_u permission denied for httpd_user_content_t
Date: Sun, 13 Feb 2011 18:11:14 +0100	[thread overview]
Message-ID: <4D5810B2.7030506@mintsource.org> (raw)
In-Reply-To: <20110212193557.GA3123@localhost.localdomain>

On 12/02/11 20:35, Dominick Grift wrote:
> Whoops my previoussly reply assumed you were using a redhat distro 
> instead of plain refpolicy.
> So you will probably have to create a loadable module with the apache_role() called, preferable for guest_t/guest_r.

I tried this just now, and it didn't work. Looking through the Apache 
interface file, it looks like apache_role gives manage access to user_ra 
and user_rw content, but only relabelling for regular old 
httpd_user_content_t. I can verify my module enforces these perms, so 
the build process seems fine, but I'd rather not give more rights than 
desired of course.

Something like "allow guest_t httpdcontent : dir_file_class_set *;" 
allows me broad access to get up and running, but I'm curious what the 
underlying issue is with Apache policy. Should it be using typeattribute 
to flag httpd_user_content_t as a user manageable file, so that regular 
'allow' rules for user account file management can automatically pick it up?

      reply	other threads:[~2011-02-13 17:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-12 17:04 [refpolicy] Unexpected user_u permission denied for httpd_user_content_t Simon Peter Nicholls
2011-02-12 19:26 ` Dominick Grift
2011-02-12 19:29 ` Dominick Grift
2011-02-12 19:35 ` Dominick Grift
2011-02-13 17:11   ` Simon Peter Nicholls [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=4D5810B2.7030506@mintsource.org \
    --to=simon@mintsource.org \
    --cc=refpolicy@oss.tresys.com \
    /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.