From: cpebenito@tresys.com (Christopher J. PeBenito)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [PATCH] Changes to the user domain policy module
Date: Fri, 19 Oct 2012 09:23:04 -0400 [thread overview]
Message-ID: <50815438.5030306@tresys.com> (raw)
In-Reply-To: <1350583695-21075-1-git-send-email-dominick.grift@gmail.com>
On 10/18/12 14:08, Dominick Grift wrote:
>
> Content that (at least) common users need to be able to relabel and
> create with a type transition
>
> Signed-off-by: Dominick Grift <dominick.grift@gmail.com>
> diff --git a/policy/modules/system/userdomain.if b/policy/modules/system/userdomain.if
> index 9d447a2..bcffe18 100644
> --- a/policy/modules/system/userdomain.if
> +++ b/policy/modules/system/userdomain.if
> @@ -575,6 +575,7 @@
> ')
>
> optional_policy(`
> + alsa_home_filetrans_alsa_home($1_t, file, ".asoundrc")
> alsa_manage_home_files($1_t)
> alsa_read_rw_config($1_t)
> alsa_relabel_home_files($1_t)
> @@ -629,7 +630,18 @@
> ')
>
> optional_policy(`
> + kerberos_manage_krb5_home_files($1_t)
> + kerberos_relabel_krb5_home_files($1_t)
> + kerberos_home_filetrans_krb5_home($1_t, file, ".k5login")
> + ')
> +
> + optional_policy(`
> locate_read_lib_files($1_t)
> + ')
> +
> + optional_policy(`
> + mpd_manage_user_data_content($1_t)
> + mpd_relabel_user_data_content($1_t)
> ')
>
> # for running depmod as part of the kernel packaging process
> @@ -645,11 +657,16 @@
> tunable_policy(`allow_user_mysql_connect',`
> mysql_stream_connect($1_t)
> ')
> +
> + mysql_manage_mysqld_home_files($1_t)
> + mysql_relabel_mysqld_home_files($1_t)
> + mysql_home_filetrans_mysqld_home($1_t, file, ".my.cnf")
> ')
>
> optional_policy(`
> oident_manage_user_content($1_t)
> oident_relabel_user_content($1_t)
> + oident_home_filetrans_oidentd_home($1_t, file, ".oidentd.conf")
> ')
>
> optional_policy(`
> @@ -670,6 +687,12 @@
> ')
>
> optional_policy(`
> + ppp_manage_home_files($1_t)
> + ppp_relabel_home_files($1_t)
> + ppp_home_filetrans_ppp_home($1_t, file, ".ppprc")
> + ')
> +
> + optional_policy(`
I don't have a problem with the transitions, but I have to think about if it makes sense to abstract away the names inside the interface (i.e. hardcode them) since those details likely belong in the respective modules.
--
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com
next prev parent reply other threads:[~2012-10-19 13:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-18 18:08 [refpolicy] [PATCH] Changes to the user domain policy module Dominick Grift
2012-10-19 13:23 ` Christopher J. PeBenito [this message]
2012-10-19 13:37 ` Dominick Grift
2012-10-30 19:26 ` Dominick Grift
2012-10-31 15:32 ` Christopher J. PeBenito
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=50815438.5030306@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.