From: domg472@gmail.com (Dominick Grift)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [ patch 1/1] [retry] su: wants to read inits script keyring.
Date: Fri, 8 Oct 2010 15:08:57 +0200 [thread overview]
Message-ID: <20101008130853.GA6175@localhost.localdomain> (raw)
Signed-off-by: Dominick Grift <domg472@gmail.com>
---
:100644 100644 a0aa8c5... d20bdfc... M policy/modules/admin/su.if
:100644 100644 8419a01... cdd18b4... M policy/modules/system/init.if
policy/modules/admin/su.if | 1 +
policy/modules/system/init.if | 18 ++++++++++++++++++
2 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/policy/modules/admin/su.if b/policy/modules/admin/su.if
index a0aa8c5..d20bdfc 100644
--- a/policy/modules/admin/su.if
+++ b/policy/modules/admin/su.if
@@ -85,6 +85,7 @@ template(`su_restricted_domain_template', `
init_dontaudit_use_script_ptys($1_su_t)
# Write to utmp.
init_rw_utmp($1_su_t)
+ init_search_script_key($1_su_t)
logging_send_syslog_msg($1_su_t)
diff --git a/policy/modules/system/init.if b/policy/modules/system/init.if
index 8419a01..cdd18b4 100644
--- a/policy/modules/system/init.if
+++ b/policy/modules/system/init.if
@@ -1176,6 +1176,24 @@ interface(`init_dontaudit_use_script_fds',`
########################################
## <summary>
+## Search init script keys.
+## </summary>
+## <param name="domain">
+## <summary>
+## Domain allowed access.
+## </summary>
+## </param>
+#
+interface(`init_search_script_key',`
+ gen_require(`
+ type initrc_t;
+ ')
+
+ allow $1 initrc_t:key search;
+')
+
+########################################
+## <summary>
## Get the process group ID of init scripts.
## </summary>
## <param name="domain">
--
1.7.2.3
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
Url : http://oss.tresys.com/pipermail/refpolicy/attachments/20101008/b4342025/attachment.bin
next reply other threads:[~2010-10-08 13:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-08 13:08 Dominick Grift [this message]
2010-10-11 13:37 ` [refpolicy] [ patch 1/1] [retry] su: wants to read inits script keyring 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=20101008130853.GA6175@localhost.localdomain \
--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.