From: cpebenito@tresys.com (Christopher J. PeBenito)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [PATCH 2/2] Allow Gentoo rc-update to manage runlevels, try 2
Date: Wed, 05 Jan 2011 10:29:25 -0500 [thread overview]
Message-ID: <4D248E55.3040508@tresys.com> (raw)
In-Reply-To: <1292884120-6497-1-git-send-email-gizmo@giz-works.com>
On 12/20/10 17:28, gizmo at giz-works.com wrote:
> From: Chris Richards <gizmo@giz-works.com>
>
> rc-update cannot properly update the system runlevels, even when run
> as the root user in sysadm role.
rc-update should not be running in run_init_t.
> Signed-off-by: Chris Richards <gizmo@giz-works.com>
> ---
> policy/modules/system/selinuxutil.te | 4 ++++
> 1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/policy/modules/system/selinuxutil.te b/policy/modules/system/selinuxutil.te
> index ff5d72d..9a71b6e 100644
> --- a/policy/modules/system/selinuxutil.te
> +++ b/policy/modules/system/selinuxutil.te
> @@ -405,6 +405,10 @@ ifndef(`direct_sysadm_daemon',`
> ')
> ')
>
> +ifdef(`distro_gentoo',`
> + init_manage_script_runlevel_files(run_init_t)
> +')
> +
> ifdef(`distro_ubuntu',`
> optional_policy(`
> unconfined_domain(run_init_t)
--
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com
prev parent reply other threads:[~2011-01-05 15:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-20 22:28 [refpolicy] [PATCH 2/2] Allow Gentoo rc-update to manage runlevels, try 2 gizmo at giz-works.com
2011-01-05 15: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=4D248E55.3040508@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.