All of lore.kernel.org
 help / color / mirror / Atom feed
From: dominick.grift@gmail.com (Dominick Grift)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [PATCH] Make httpd_manage_all_user_content() do what it advertises
Date: Mon, 11 Feb 2013 21:17:43 +0100	[thread overview]
Message-ID: <1360613863.2559.38.camel@d30> (raw)
In-Reply-To: <1360613706-6260-1-git-send-email-dominick.grift@gmail.com>

On Mon, 2013-02-11 at 21:15 +0100, Dominick Grift wrote:

Sven, see if this does what you want. If it does then i will commit it.

> Signed-off-by: Dominick Grift <dominick.grift@gmail.com>
> diff --git a/apache.if b/apache.if
> index 83e899c..9bf189f 100644
> --- a/apache.if
> +++ b/apache.if
> @@ -1070,8 +1070,14 @@
>  ## <rolecap/>
>  #
>  interface(`apache_manage_all_user_content',`
> -	refpolicywarn(`$0($*) has been deprecated, use apache_manage_all_content() instead.')
> -	apache_manage_all_content($1)
> +	gen_require(`
> +		type httpd_user_content_t, httpd_user_content_rw_t, httpd_user_content_ra_t)
> +		type httpd_user_htaccess_t, httpd_user_script_exec_t;
> +	')
> +
> +	manage_dirs_pattern($1, { httpd_user_content_t httpd_user_content_rw_t httpd_user_content_ra_t httpd_user_script_exec_t }, { httpd_user_content_t httpd_user_content_rw_t httpd_user_content_ra_t httpd_user_script_exec_t })
> +	manage_files_pattern($1, { httpd_user_content_t httpd_user_content_rw_t httpd_user_content_ra_t httpd_user_script_exec_t httpd_user_htaccess_t }, { httpd_user_content_t httpd_user_content_rw_t httpd_user_content_ra_t httpd_user_script_exec_t httpd_user_htaccess_t})
> +	manage_lnk_files_pattern($1, { httpd_user_content_t httpd_user_content_rw_t httpd_user_content_ra_t httpd_user_script_exec_t }, { httpd_user_content_t httpd_user_content_rw_t httpd_user_content_ra_t httpd_user_script_exec_t })
>  ')
>  
>  ########################################

  reply	other threads:[~2013-02-11 20:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-11 20:15 [refpolicy] [PATCH] Make httpd_manage_all_user_content() do what it advertises Dominick Grift
2013-02-11 20:17 ` Dominick Grift [this message]
2013-02-11 21:01   ` Sven Vermeulen
2013-02-12 13:09     ` Dominick Grift

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=1360613863.2559.38.camel@d30 \
    --to=dominick.grift@gmail.com \
    --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.