All of lore.kernel.org
 help / color / mirror / Atom feed
From: cpebenito@tresys.com (Christopher J. PeBenito)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [ Simplify user content patch 4/7] userdom_manage_tmp_role
Date: Fri, 09 Jul 2010 08:29:38 -0400	[thread overview]
Message-ID: <4C371632.8090803@tresys.com> (raw)
In-Reply-To: <20100708153621.GA6791@localhost.localdomain>

On 07/08/10 11:36, Dominick Grift wrote:
> Allow callers of the userdom_manage_tmp_role template full control over userdom_user_tmp_content.
>
> Signed-off-by: Dominick Grift<domg472@gmail.com>
> ---
> :100644 100644 162d103... 7aec719... M	policy/modules/system/userdomain.if
>   policy/modules/system/userdomain.if |    9 ++++++++-
>   1 files changed, 8 insertions(+), 1 deletions(-)
>
> diff --git a/policy/modules/system/userdomain.if b/policy/modules/system/userdomain.if
> index 162d103..7aec719 100644
> --- a/policy/modules/system/userdomain.if
> +++ b/policy/modules/system/userdomain.if
> @@ -292,11 +292,13 @@ interface(`userdom_manage_home_role',`
>   #
>   interface(`userdom_manage_tmp_role',`
>   	gen_require(`
> +		attribute user_tmp_type;
>   		type user_tmp_t;
>   	')
>
> -	role $1 types user_tmp_t;
> +	role $1 types user_tmp_type;

This is wrong.

> +	# Redundant: in userdomain.te files_policy_member_tmp(userdomain, user_tmp_t)
>   	files_poly_member_tmp($2, user_tmp_t)
>
>   	manage_dirs_pattern($2, user_tmp_t, user_tmp_t)
> @@ -304,6 +306,11 @@ interface(`userdom_manage_tmp_role',`
>   	manage_lnk_files_pattern($2, user_tmp_t, user_tmp_t)
>   	manage_sock_files_pattern($2, user_tmp_t, user_tmp_t)
>   	manage_fifo_files_pattern($2, user_tmp_t, user_tmp_t)
> +	relabel_dirs_pattern($2, user_tmp_type, user_tmp_type)
> +	relabel_files_pattern($2, user_tmp_type, user_tmp_type)
> +	relabel_lnk_files_pattern($2, user_tmp_type, user_tmp_type)
> +	relabel_sock_files_pattern($2, user_tmp_type, user_tmp_type)
> +	relabel_fifo_files_pattern($2, user_tmp_type, user_tmp_type)
>   	files_tmp_filetrans($2, user_tmp_t, { dir file lnk_file sock_file fifo_file })
>   ')

We can't make this change (see comments for patch 1)

-- 
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com

      reply	other threads:[~2010-07-09 12:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-08 15:36 [refpolicy] [ Simplify user content patch 4/7] userdom_manage_tmp_role Dominick Grift
2010-07-09 12:29 ` Christopher J. PeBenito [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=4C371632.8090803@tresys.com \
    --to=cpebenito@tresys.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.