From: sven.vermeulen@siphos.be (Sven Vermeulen)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [PATCH 3/4] gcc-config calls /sbin/rc
Date: Tue, 19 Jul 2011 23:28:47 +0200 [thread overview]
Message-ID: <20110719212847.GD14490@siphos.be> (raw)
In-Reply-To: <20110719211641.GA14490@siphos.be>
Since the introduction of OpenRC (init system), a few changes are made on
the general Gentoo related files and applications. gcc-config is one of
them. It calls /sbin/rc (the main "entrypoint" for all OpenRC-related
actions) which, with the current policy, wasn't allowed.
Allow gcc-config to call /sbin/rc (initrc_exec_t) without transitioning.
Signed-off-by: Sven Vermeulen <sven.vermeulen@siphos.be>
---
policy/modules/admin/portage.te | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/policy/modules/admin/portage.te b/policy/modules/admin/portage.te
index 88c6d60..e555e41 100644
--- a/policy/modules/admin/portage.te
+++ b/policy/modules/admin/portage.te
@@ -105,6 +105,8 @@ files_list_all(gcc_config_t)
# seems to be ok without this
init_dontaudit_read_script_status_files(gcc_config_t)
+# Since OpenRC, gcc-config calls rc (but transitioning isn't needed)
+init_exec_script_files(gcc_config_t)
libs_read_lib_files(gcc_config_t)
libs_domtrans_ldconfig(gcc_config_t)
--
1.7.3.4
next prev parent reply other threads:[~2011-07-19 21:28 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-19 21:16 [refpolicy] [PATCH 0/4] Gentoo/Portage related updates Sven Vermeulen
2011-07-19 21:23 ` [refpolicy] [PATCH 1/4] Support NFS mounts for portage-related locations Sven Vermeulen
2011-07-20 18:06 ` Christopher J. PeBenito
2011-07-19 21:26 ` [refpolicy] [PATCH 2/4] Support live ebuilds through portage_srcrepo_t Sven Vermeulen
2011-07-20 18:07 ` Christopher J. PeBenito
2011-07-19 21:28 ` Sven Vermeulen [this message]
2011-07-20 18:08 ` [refpolicy] [PATCH 3/4] gcc-config calls /sbin/rc Christopher J. PeBenito
2011-07-19 21:31 ` [refpolicy] [PATCH 4/4] Support proxy server/cache servers and binpkg servers Sven Vermeulen
2011-07-20 15:49 ` Christopher J. PeBenito
2011-07-20 17:12 ` Sven Vermeulen
2011-07-20 17:17 ` 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=20110719212847.GD14490@siphos.be \
--to=sven.vermeulen@siphos.be \
--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.