Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.5 required=3.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AC4EBC43441 for ; Sun, 18 Nov 2018 11:37:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 722CE20671 for ; Sun, 18 Nov 2018 11:37:54 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=perfinion-com.20150623.gappssmtp.com header.i=@perfinion-com.20150623.gappssmtp.com header.b="1eed3bo1" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 722CE20671 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=perfinion.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=selinux-refpolicy-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726287AbeKRV57 (ORCPT ); Sun, 18 Nov 2018 16:57:59 -0500 Received: from mail-pf1-f170.google.com ([209.85.210.170]:46222 "EHLO mail-pf1-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726077AbeKRV57 (ORCPT ); Sun, 18 Nov 2018 16:57:59 -0500 Received: by mail-pf1-f170.google.com with SMTP id s9-v6so13461281pfm.13 for ; Sun, 18 Nov 2018 03:37:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=perfinion-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=QOHgtA4BohnsmlSY7+aPzCNY3Rq5FF3ryccAO687xFA=; b=1eed3bo1fY6aHzUqRPP/Z2jtPHpAwT+ugIGhijF9atM6VrQF74JU87V9Aa6tsh6D+O Z1097b9MjE0/wJZLV5G4TesUbXzE2zLeQppoZOMS2Tt56cXsenAIcq1PwKuqfRv+hzLA QqdCFGCV3aHEP89A2te83AAmbOnSIVcpm64XARV7fWPWnyYN6eIpnpoiDuiDUx/M9+5p jyKacsWnOkZ9d9EGtEuLlQqlXQ5+qY7ODl/7fm3m7L+qyxlhr2C9sDEhF58dGWceqXkv BPqheU/8B3aHc8u/jkAqwyqx8AHTg8WXL5iem/MBvkZHnF2NxsNd60N3KHfR9M96xEzk K+Fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=QOHgtA4BohnsmlSY7+aPzCNY3Rq5FF3ryccAO687xFA=; b=J2OOUdko4OJeLr3WNFQWWtMuugN/QhEfPU1Rx9Kzl1lBwGu1DTbNATOrF3vDuY5Dod dmGMsRIuN4Z1bm5StUCZpomh2+AJPkIcVHal8/fo71e1PtaLubf1QS9Rku7MM0HdpILO laKTNb41fa7hB2ZjNtypkVDfcg4TDqxUiSdAEb1KniCgLZV7ERc6QWyk+yWugpqwEYmV Z6y1AisC+VNW7tuN5hLPSmecvTT+ThLVAzSypMtE0BhUFVgcdvP2cgm2ME4yChX0FlNH 32OVGw7G13R+FqzyHLYOrMn0nKabNjoqqesQLJrjyqPELB0s/MLkS3mbIlxLbjpYTrLh tqVQ== X-Gm-Message-State: AGRZ1gJG10B9mczTdihGlLfD6HUuLGID4iezzayGRAtRvLBgL8VB53Y+ JEp7qGQ46SpQoxtmOb56/TIZEiZIcLA= X-Google-Smtp-Source: AJdET5fP9kKOzsVwQpWEo+15PDZfX0pQnZC005t8iswxlpTpEPajg09KEIbudZwDO68m1z1sPuOBkQ== X-Received: by 2002:a63:db48:: with SMTP id x8mr15835302pgi.365.1542541072850; Sun, 18 Nov 2018 03:37:52 -0800 (PST) Received: from localhost ([2404:e800:e600:402:a043:dee9:8fe1:5766]) by smtp.gmail.com with ESMTPSA id s9sm29864870pgl.88.2018.11.18.03.37.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 18 Nov 2018 03:37:52 -0800 (PST) From: Jason Zaman To: selinux-refpolicy@vger.kernel.org Cc: Jason Zaman Subject: [PATCH 2/3] libraries: ldconfig is a shell script on Gentoo musl libc Date: Sun, 18 Nov 2018 19:37:37 +0800 Message-Id: <20181118113738.29532-2-jason@perfinion.com> X-Mailer: git-send-email 2.18.1 In-Reply-To: <20181118113738.29532-1-jason@perfinion.com> References: <20181118113738.29532-1-jason@perfinion.com> Sender: selinux-refpolicy-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: selinux-refpolicy@vger.kernel.org Signed-off-by: Jason Zaman --- 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