From: cpebenito@tresys.com (Christopher J. PeBenito)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [PATCH 1/4] Introduce lvm_admin interface
Date: Tue, 14 Jul 2015 11:17:52 -0400 [thread overview]
Message-ID: <55A52820.1020301@tresys.com> (raw)
In-Reply-To: <1436606147-6943-1-git-send-email-jason@perfinion.com>
On 7/11/2015 5:15 AM, Jason Zaman wrote:
> ---
> policy/modules/roles/sysadm.te | 1 +
> policy/modules/system/lvm.if | 44 ++++++++++++++++++++++++++++++++++++++++++
> 2 files changed, 45 insertions(+)
>
> diff --git a/policy/modules/roles/sysadm.te b/policy/modules/roles/sysadm.te
> index 9e27a3a..0a6b4b2 100644
> --- a/policy/modules/roles/sysadm.te
> +++ b/policy/modules/roles/sysadm.te
> @@ -578,6 +578,7 @@ optional_policy(`
> ')
>
> optional_policy(`
> + lvm_admin(sysadm_t, sysadm_r)
> lvm_run(sysadm_t, sysadm_r)
> ')
>
> diff --git a/policy/modules/system/lvm.if b/policy/modules/system/lvm.if
> index 58bc27f..86b223c 100644
> --- a/policy/modules/system/lvm.if
> +++ b/policy/modules/system/lvm.if
> @@ -123,3 +123,47 @@ interface(`lvm_domtrans_clvmd',`
> corecmd_search_bin($1)
> domtrans_pattern($1, clvmd_exec_t, clvmd_t)
> ')
> +
> +######################################
> +## <summary>
> +## All of the rules required to
> +## administrate an lvm environment.
> +## </summary>
> +## <param name="domain">
> +## <summary>
> +## Domain allowed access.
> +## </summary>
> +## </param>
> +## <param name="role">
> +## <summary>
> +## Role allowed access.
> +## </summary>
> +## </param>
> +#
> +interface(`lvm_admin',`
> + gen_require(`
> + type clvmd_t, clvmd_exec_t, clvmd_initrc_exec_t;
> + type lvm_etc_t, lvm_lock_t, lvm_metadata_t;
> + type lvm_var_lib_t, lvm_var_run_t, clvmd_var_run_t, lvm_tmp_t;
> + ')
> +
> + allow $1 clvmd_t:process { ptrace signal_perms };
> + ps_process_pattern($1, clvmd_t)
> +
> + init_startstop_service($1, $2, clvmd_t, clvmd_initrc_exec_t)
> +
> + files_search_etc($1)
> + admin_pattern($1, lvm_etc_t)
> +
> + files_search_locks($1)
> + admin_pattern($1, lvm_lock_t)
> +
> + files_search_var_lib($1)
> + admin_pattern($1, lvm_var_lib_t)
> +
> + files_search_pids($1)
> + admin_pattern($1, { lvm_var_run_t clvmd_var_run_t })
> +
> + files_search_tmp($1)
> + admin_pattern($1, lvm_tmp_t)
> +')
Merged.
--
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com
prev parent reply other threads:[~2015-07-14 15:17 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
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 ` 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=55A52820.1020301@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.