selinux-refpolicy.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jason Zaman <jason@perfinion.com>
To: selinux-refpolicy@vger.kernel.org
Cc: Jason Zaman <jason@perfinion.com>
Subject: [PATCH 2/3] libraries: ldconfig is a shell script on Gentoo musl libc
Date: Sun, 18 Nov 2018 19:37:37 +0800	[thread overview]
Message-ID: <20181118113738.29532-2-jason@perfinion.com> (raw)
In-Reply-To: <20181118113738.29532-1-jason@perfinion.com>

Signed-off-by: Jason Zaman <jason@perfinion.com>
---
 policy/modules/system/libraries.te | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/policy/modules/system/libraries.te b/policy/modules/system/libraries.te
index 422b0ea1..3bb792e6 100644
--- a/policy/modules/system/libraries.te
+++ b/policy/modules/system/libraries.te
@@ -145,3 +145,11 @@ optional_policy(`
 optional_policy(`
 	unconfined_domain(ldconfig_t)
 ')
+
+ifdef(`distro_gentoo',`
+	ifdef(`libc_musl',`
+		allow ldconfig_t self:fifo_file rw_fifo_file_perms;
+		corecmd_exec_shell(ldconfig_t)
+		corecmd_exec_bin(ldconfig_t)
+	')
+')
-- 
2.18.1


  reply	other threads:[~2018-11-18 11:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-18 11:37 [PATCH 1/3] build: add config for libc gnu and musl Jason Zaman
2018-11-18 11:37 ` Jason Zaman [this message]
2018-11-18 11:37 ` [PATCH 3/3] sysnetwork: musl needs bind generic node for DNS Jason Zaman
2018-11-22 13:39 ` [PATCH 1/3] build: add config for libc gnu and musl Chris 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=20181118113738.29532-2-jason@perfinion.com \
    --to=jason@perfinion.com \
    --cc=selinux-refpolicy@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).