From: cpebenito@tresys.com (Christopher J. PeBenito)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [PATCH 3/4] Introduce setrans_admin interface
Date: Tue, 14 Jul 2015 11:18:04 -0400 [thread overview]
Message-ID: <55A5282C.6070109@tresys.com> (raw)
In-Reply-To: <1436606147-6943-3-git-send-email-jason@perfinion.com>
On 7/11/2015 5:15 AM, Jason Zaman wrote:
> ---
> policy/modules/roles/sysadm.te | 4 ++++
> policy/modules/system/setrans.if | 31 +++++++++++++++++++++++++++++++
> 2 files changed, 35 insertions(+)
>
> diff --git a/policy/modules/roles/sysadm.te b/policy/modules/roles/sysadm.te
> index 253f6ba..db7b54f 100644
> --- a/policy/modules/roles/sysadm.te
> +++ b/policy/modules/roles/sysadm.te
> @@ -952,6 +952,10 @@ optional_policy(`
> ')
>
> optional_policy(`
> + setrans_admin(sysadm_t, sysadm_r)
> +')
> +
> +optional_policy(`
> setroubleshoot_admin(sysadm_t, sysadm_r)
> ')
>
> diff --git a/policy/modules/system/setrans.if b/policy/modules/system/setrans.if
> index efa9c27..2a8ecaa 100644
> --- a/policy/modules/system/setrans.if
> +++ b/policy/modules/system/setrans.if
> @@ -40,3 +40,34 @@ interface(`setrans_translate_context',`
> stream_connect_pattern($1, setrans_var_run_t, setrans_var_run_t, setrans_t)
> files_list_pids($1)
> ')
> +
> +######################################
> +## <summary>
> +## All of the rules required to
> +## administrate an setrans environment.
> +## </summary>
> +## <param name="domain">
> +## <summary>
> +## Domain allowed access.
> +## </summary>
> +## </param>
> +## <param name="role">
> +## <summary>
> +## Role allowed access.
> +## </summary>
> +## </param>
> +#
> +interface(`setrans_admin',`
> + gen_require(`
> + type setrans_t, setrans_initrc_exec_t;
> + type setrans_var_run_t;
> + ')
> +
> + allow $1 setrans_t:process { ptrace signal_perms };
> + ps_process_pattern($1, setrans_t)
> +
> + init_startstop_service($1, $2, setrans_t, setrans_initrc_exec_t)
> +
> + files_search_pids($1)
> + admin_pattern($1, setrans_var_run_t)
> +')
Merged.
--
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com
next prev parent reply other threads:[~2015-07-14 15:18 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-11 9:15 [refpolicy] [PATCH 1/4] Introduce lvm_admin interface Jason Zaman
2015-07-11 9:15 ` [refpolicy] [PATCH 2/4] Introduce ipsec_admin interface Jason Zaman
2015-07-14 15:17 ` Christopher J. PeBenito
2015-07-11 9:15 ` [refpolicy] [PATCH 3/4] Introduce setrans_admin interface Jason Zaman
2015-07-14 15:18 ` Christopher J. PeBenito [this message]
2015-07-11 9:15 ` [refpolicy] [PATCH 4/4] add new cron_admin interface to sysadm Jason Zaman
2015-07-17 13:30 ` Christopher J. PeBenito
2015-07-14 15:17 ` [refpolicy] [PATCH 1/4] Introduce lvm_admin interface 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=55A5282C.6070109@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.