From: domg472@gmail.com (Dominick Grift)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [PATCH 1/2] Allow Gentoo rc-update to manage runlevels, try 2
Date: Mon, 20 Dec 2010 23:37:13 +0100 [thread overview]
Message-ID: <4D0FDA99.9070901@gmail.com> (raw)
In-Reply-To: <1292884111-6462-1-git-send-email-gizmo@giz-works.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 12/20/2010 11:28 PM, 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.
>
> Signed-off-by: Chris Richards <gizmo@giz-works.com>
> ---
> policy/modules/system/init.if | 19 +++++++++++++++++++
> 1 files changed, 19 insertions(+), 0 deletions(-)
>
> diff --git a/policy/modules/system/init.if b/policy/modules/system/init.if
> index ed152c4..7904818 100644
> --- a/policy/modules/system/init.if
> +++ b/policy/modules/system/init.if
> @@ -1442,6 +1442,25 @@ interface(`init_dontaudit_use_script_ptys',`
>
> ########################################
> ## <summary>
> +## Manage init script runlevel files.
> +## </summary>
> +## <param name="domain">
> +## <summary>
> +## Domain allowed access.
> +## </summary>
> +## </param>
> +#
> +interface(`init_manage_script_runlevel_files',`
> + gen_require(`
> + type initrc_state_t;
> + ')
> +
> + read_lnk_files_pattern($1, initrc_state_t, initrc_state_t)
> + files_manage_etc_symlinks($1)
I am worried about the above symlink, seems to be it may be mislabelled.
(should it have been created with initrc_state_t type or some other type?)
> +')
> +
> +########################################
> +## <summary>
> ## Get the attributes of init script
> ## status files.
> ## </summary>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
iEYEARECAAYFAk0P2pkACgkQMlxVo39jgT+o2gCgwtQZXmkairFLb1lSVYMRGIYY
LyoAn1ZbC8tlSpPCKi9+vJeiQm6CRLk3
=vYcR
-----END PGP SIGNATURE-----
prev parent reply other threads:[~2010-12-20 22:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-20 22:28 [refpolicy] [PATCH 1/2] Allow Gentoo rc-update to manage runlevels, try 2 gizmo at giz-works.com
2010-12-20 22:37 ` Dominick Grift [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=4D0FDA99.9070901@gmail.com \
--to=domg472@gmail.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.