From patchwork Fri May 12 15:58:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Smalley X-Patchwork-Id: 9724429 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D108D60348 for ; Fri, 12 May 2017 15:55:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C346F2882D for ; Fri, 12 May 2017 15:55:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B747F28853; Fri, 12 May 2017 15:55:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from emsm-gh1-uea10.nsa.gov (smtp.nsa.gov [8.44.101.8]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4DA152882D for ; Fri, 12 May 2017 15:55:53 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.38,330,1491264000"; d="scan'208";a="6972754" IronPort-PHdr: =?us-ascii?q?9a23=3A49t/IBI7xlMsB9PWI9mcpTZWNBhigK39O0sv0rFi?= =?us-ascii?q?tYgQKvX5rarrMEGX3/hxlliBBdydsKMbzbKJ+PG9EUU7or+5+EgYd5JNUxJXwe?= =?us-ascii?q?43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6arXK99yMdFQviPgRp?= =?us-ascii?q?OOv1BpTSj8Oq3Oyu5pHfeQtFiT6/bL9oMBm7rwrdu80WjIB/Nqs/1xzFr2dSde?= =?us-ascii?q?9L321oP1WTnxj95se04pFu9jlbtuwi+cBdT6j0Zrw0QrNEAjsoNWA1/9DrugLY?= =?us-ascii?q?TQST/HscU34ZnQRODgPY8Rz1RJbxsi/9tupgxCmXOND9QL4oVTi+6apgVRHniD?= =?us-ascii?q?0DNzUk7m/ZjMJ+h79frB64uRBz34vYbYeIP/R8Y6zdZ8sXS2pfUMhMWSJPAYSy?= =?us-ascii?q?b5MNAuYcM+tXsZL9qkASoReiHwSgGPnixiNUinLwwKY00/4hEQbD3AE4AtwOrG?= =?us-ascii?q?rbrM31NKgMV+C+0bTGzTDZYPNS3Tfy9ojJeQ0mrPGXQL1watHcyVUvFgzZjlWQ?= =?us-ascii?q?rpbpPzWO1usXqWSb4O1gVfy2hmMhtgp/oSCvy98xhoTGiY8Z0FDJ+ThjzIorKt?= =?us-ascii?q?C0VlR3bcOiHZBNrS+VLZF2TdknQ2xwvSY6zaAJtoCjcSgRzZQn2wbfa/uac4iU?= =?us-ascii?q?+h7jVPieITN/hH99ZLKwnQyy8Um9yu3nTMW0zFZLoTZFktnLrHwN0QDc6tObRf?= =?us-ascii?q?dn+0eh2DKP2xjS6uFCP080ibLWJ4Muz7M/jJYesVnPEjXolEj5kqOabFgo9vCt?= =?us-ascii?q?6+v9Y7XmopGcN5VzigH7KqkugdKwAeA5MggIQmia9v2w26bk/U3kRrVFkuM5kr?= =?us-ascii?q?LCvZDGJcUUuq65AwhP3oYl8BawFS2q0NsfnXkZNF5FYg6Ij5D1O1HSJ/D1FfW/?= =?us-ascii?q?g1OqkDhx2/DGPqfuApPWI3jBl7fhe7N95FRHyAov099f/YlUBqsGIPLpVU/7rM?= =?us-ascii?q?bYAQMhMwyo3+bnD81w1oEcWW2VHqCZM7jSsViO5uIuPemBf4EVuDLgK/kq/PHu?= =?us-ascii?q?kHk5mUMAfaWz2psXcn+4FOx8I0qFeXrsnssBEWASswswTezqjFiCXiBJZ3upUa?= =?us-ascii?q?Iz+Cw0CIW8DYjZXoCtmruB3CWlEZJKemBKEFeMEW3nd4+cQfcDdDqSItN9kjwD?= =?us-ascii?q?TbWuVpMu1RSptA/817prM/HZ+jMGupL51dh05urTlRco+TxyEcudz3mHT3tokW?= =?us-ascii?q?MQWz82wKd/rFRgxVefy6d4medVGsBU5/NMTgg1L4Xcz/BgB9D0RA3BYs+DSEy6?= =?us-ascii?q?TdW+HTExUtUxzscOYkd8HNWiiAvO3y+uA7MMlryLAoY48qTG0HjrJMZ9ymjG27?= =?us-ascii?q?c7g1kgXMRPKXWshrRj+AjLG47Jj0KZmr60eqQExiHN7maDzXGVsUFASgFwS6TF?= =?us-ascii?q?XWsHZkvSt9v2+l3NQ6WpCbQ9PQtL0dSCJbdSat31kVVGQ+/uONrEY22rnWe/GR?= =?us-ascii?q?eIxqiXYYrvY2Ud3TzRCFMKkgAI53qGMhI+Bii5qWLEEDNuDU7vY1/r8eRmq3O0?= =?us-ascii?q?VEw0zwaXb0B61Lq64B0VhfuBS/8J2bIEoighoS1uHFmhx9LWF8aApw15capGfN?= =?us-ascii?q?w9+lZH2nzDtwFmJJOvM6ViikQZcwRtsEPkzw93BZlYkcg2sHMqyxJ/KbmW0FNb?= =?us-ascii?q?cDOYxozwN6bMKmn0+xCuZavW1UvY0NqM/KcA9ug4oU35vA61Dkoi72ln095N3n?= =?us-ascii?q?qS/JrKCBYSXozrUkYs7BV6ua/VYjMm6IPJ0H1gK660siXN29gxHusq1g6gf8tD?= =?us-ascii?q?MKODDALyD9AVCNWvKOMwn1ikdQ4LPOdX9KEoJcymbOeG1LStPOl+gDKslX5H75?= =?us-ascii?q?xl0kKQ6yp8TfbF35AEw/Gc2guISSz8gUy7vc/pg4BEYiseHm2lySjrHIRRfLF9?= =?us-ascii?q?fZ4XCWeyJM263st+h5/xVH5E816jHUkK19OpeRqVaVz90hZd1UAWoXyhgyS41T?= =?us-ascii?q?t0nysurqqF0yzE2/7iewYfOm5XWGliik/hIYy1j9ABQEikdhMpmwWh5Ub7wahb?= =?us-ascii?q?uat+InLIQUdQfij2KWBiXbertraYZc5A9o8ouz1NUOugeVCaVqL9oxwC3iP5GG?= =?us-ascii?q?tewDQ7eC+wuprlmBx7hnmQLG1urHXFYsF83xDf5MbTRfRJxDoJWDF4iSXLBli7?= =?us-ascii?q?J9Sp5c+bl4rHsuykTW2tTIZccS7vzYOcsyu743ZnARijk/C1nd3oDRI20Snl2N?= =?us-ascii?q?l2TS/ItgrzYpH316SmNuJqZkpoC0H668phAYx+kZU/hJcL2XgcmJqV4WALkWDp?= =?us-ascii?q?MdVUwaj+dmYCRSYXw97J5wjowFNjLnSUyI/iSHWdxNZuZ9mgbmMQxC0989hACL?= =?us-ascii?q?2I47xcgSt1vl24oBrJYfdngzcdzeAj52Ibg+EVuAsh1yudDaoUHUVCOizsjRuI?= =?us-ascii?q?5cikrKpLfGavbaSw1E1mkNC5Fr6CvwVcV2jhepg4Gy9w8ttwMEjX3X3u8YHrZs?= =?us-ascii?q?PQbckJuh2PlBfAkvJVJ44vmfoEgipnI239smM/x+49kxNuwYmwvJKbJGV14KK5?= =?us-ascii?q?HhlYOyX7Z8wJ/DHtkaFensON0oChAJpuBzILXIHyQvKwCjISsvbnOBiSHz0gsH?= =?us-ascii?q?ubHqDfHQCH4kd8s33PC4yrN22QJHQByNVtXh2dJEhBjwAIQDU1hIQ2GxusxMP/?= =?us-ascii?q?bEd5/Swe6UTgqhRS0O5oMQfwUnvHrgeydjg0UISfLAZR7gxa/UfZK8Kf4vh2Hy?= =?us-ascii?q?5C+p2hqwyMJ3eBaAtUCGEFQEuEB0rsPrO2/9nP7/CYBvaiL/vJebiOp/ZeWOmV?= =?us-ascii?q?ypK0yIRm+SqMNsKUPnR5FfI0xk9DUWp+G8TDlDUFUzYXmD7Vb86HuBe8/TV6rs?= =?us-ascii?q?al8PvxQALv/ZCCC7VTMdV14BC2namDN++WhCljLzZXypIMymXMyLQF214SkS5u?= =?us-ascii?q?fSG3EbscrS7NUL7QmqhPAh4DdSx8L9VH76Q93glRPs7WkdL12aBmgfErEVtFUk?= =?us-ascii?q?bhms6xb8wQP269LE/HBFqMNLmePjLE2Mb7Yae9Sb1LkOVUrAe8uS2FHED/JDiD?= =?us-ascii?q?jCfmVxSuMeFKkSGaMwdTt529cxZ3FGjjV8jqaxOhP99rlj02xrs0imnNNW4GPj?= =?us-ascii?q?h2a1lNoaGI7SNEnvV/HHRM7mF/IumagSmZ4PfXKo0NvPtwGCt0ifhV4HskxLtO?= =?us-ascii?q?9i1EQuJ6mDfKpN50v16mivWPyiZgUBdWsTlLhY2LvUJkOajC65ZPR23L/BMX4m?= =?us-ascii?q?WWERgKoMFlCtL3saBK1tfPjL7zKCtF89/M58QcCNLbKNyZP3c6NhrpACDbDA0A?= =?us-ascii?q?TTGxNGHfg1dSkPad93GPqZg6sJfskoIUSrBHTFw1Cu8aCkN9EdweJ5d3Wykoka?= =?us-ascii?q?ScjM8J+3W+qgLeRN9dvp/ZVfKfGungKDGcjbZYfRQI2q/4IZ4VNoLlx0xockN6?= =?us-ascii?q?k5jSG0rMQdBNpTVsbgw0oUVJ7ndzVWgz20XragOj/nATCeK0nh4xigt7f+sh7j?= =?us-ascii?q?Hs7EkrJlDSvis/jFExmcn5gTCWaDPxKrm/UptSCyfvtEgxNYj7QxpvYg20hkxk?= =?us-ascii?q?NzbES6hXj7R+aWBhkBXctodXGf5AUa1EZwcdxeuJaPUzz1tTsD+nylNH5ebeEp?= =?us-ascii?q?RilREqfoOrr3JOwwJjdsA6JKzKKKpP0FdQmrqEvjW02eAp3A8eO0EN/XuPdy4P?= =?us-ascii?q?vkwIMKQpKDSs/uxt8gGNgSVMeHILV/YwpfJq7Ew9Mfyazy38y75DNlyxN+uHIq?= =?us-ascii?q?yEoWfAi8+ITU4r1k4TjUZF56J20cAtckqPSU8g0KaRFw4INcreKQBZdcxS+2bP?= =?us-ascii?q?fSyWq+XC3Yp1P5mhFuDvVeKBqb0UjVy+EwYmBYQD9NoBE4K30E7CLsfnMaQFxg?= =?us-ascii?q?836ATvOVWFCu5GeAiSnDcbpMG/z5923Y5HKjEbH2p9LT295qzLqQ8ynPqDQNA2?= =?us-ascii?q?b28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KWIYZkBQFiUSGXo1okw4NixmGUAKUQ1iBCiY?= =?us-ascii?q?JAh4IHw+FPByBf1qIawEBAQ?= Received: from unknown (HELO tarius.tycho.ncsc.mil) ([144.51.242.1]) by emsm-gh1-uea10.nsa.gov with ESMTP; 12 May 2017 15:55:49 +0000 Received: from prometheus.infosec.tycho.ncsc.mil (prometheus [192.168.25.40]) by tarius.tycho.ncsc.mil (8.14.4/8.14.4) with ESMTP id v4CFtjeg014547; Fri, 12 May 2017 11:55:46 -0400 Received: from tarius.tycho.ncsc.mil (tarius.infosec.tycho.ncsc.mil [144.51.242.1]) by prometheus.infosec.tycho.ncsc.mil (8.15.2/8.15.2) with ESMTP id v4CFsjlF223127 for ; Fri, 12 May 2017 11:54:45 -0400 Received: from moss-pluto.infosec.tycho.ncsc.mil (moss-pluto [192.168.25.131]) by tarius.tycho.ncsc.mil (8.14.4/8.14.4) with ESMTP id v4CFshZ3013686; Fri, 12 May 2017 11:54:43 -0400 From: Stephen Smalley To: paul@paul-moore.com Subject: [PATCH] selinux: log policy capability state when a policy is loaded Date: Fri, 12 May 2017 11:58:53 -0400 Message-Id: <20170512155853.15898-1-sds@tycho.nsa.gov> X-Mailer: git-send-email 2.9.3 X-BeenThere: selinux@tycho.nsa.gov X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Security-Enhanced Linux \(SELinux\) mailing list" List-Post: List-Help: Cc: Stephen Smalley , selinux@tycho.nsa.gov Errors-To: selinux-bounces@tycho.nsa.gov Sender: "Selinux" X-Virus-Scanned: ClamAV using ClamSMTP Log the state of SELinux policy capabilities when a policy is loaded. For each policy capability known to the kernel, log an informational message with the policy capability name and the value set in the policy. For policy capabilities that are set in the loaded policy but unknown to the kernel, log a warning with the policy capability index, since this is the only information presently available in the policy. Sample output with a policy created with a new capability defined that is not known to the kernel: [ 43.812265] SELinux: policy capability network_peer_controls=1 [ 43.812266] SELinux: policy capability open_perms=1 [ 43.812266] SELinux: policy capability extended_socket_class=1 [ 43.812267] SELinux: policy capability always_check_network=0 [ 43.812267] SELinux: policy capability cgroup_seclabel=0 [ 43.812268] SELinux: unknown policy capability 5 Resolves: #32 Signed-off-by: Stephen Smalley --- security/selinux/include/security.h | 2 ++ security/selinux/selinuxfs.c | 13 ++----------- security/selinux/ss/services.c | 23 +++++++++++++++++++++++ 3 files changed, 27 insertions(+), 11 deletions(-) diff --git a/security/selinux/include/security.h b/security/selinux/include/security.h index f979c35..c4224bb 100644 --- a/security/selinux/include/security.h +++ b/security/selinux/include/security.h @@ -76,6 +76,8 @@ enum { }; #define POLICYDB_CAPABILITY_MAX (__POLICYDB_CAPABILITY_MAX - 1) +extern char *selinux_policycap_names[__POLICYDB_CAPABILITY_MAX]; + extern int selinux_policycap_netpeer; extern int selinux_policycap_openperm; extern int selinux_policycap_extsockclass; diff --git a/security/selinux/selinuxfs.c b/security/selinux/selinuxfs.c index ce71718..ea2da91 100644 --- a/security/selinux/selinuxfs.c +++ b/security/selinux/selinuxfs.c @@ -41,15 +41,6 @@ #include "objsec.h" #include "conditional.h" -/* Policy capability filenames */ -static char *policycap_names[] = { - "network_peer_controls", - "open_perms", - "extended_socket_class", - "always_check_network", - "cgroup_seclabel" -}; - unsigned int selinux_checkreqprot = CONFIG_SECURITY_SELINUX_CHECKREQPROT_VALUE; static int __init checkreqprot_setup(char *str) @@ -1750,9 +1741,9 @@ static int sel_make_policycap(void) sel_remove_entries(policycap_dir); for (iter = 0; iter <= POLICYDB_CAPABILITY_MAX; iter++) { - if (iter < ARRAY_SIZE(policycap_names)) + if (iter < ARRAY_SIZE(selinux_policycap_names)) dentry = d_alloc_name(policycap_dir, - policycap_names[iter]); + selinux_policycap_names[iter]); else dentry = d_alloc_name(policycap_dir, "unknown"); diff --git a/security/selinux/ss/services.c b/security/selinux/ss/services.c index 60d9b02..0abdec2 100644 --- a/security/selinux/ss/services.c +++ b/security/selinux/ss/services.c @@ -70,6 +70,15 @@ #include "ebitmap.h" #include "audit.h" +/* Policy capability names */ +char *selinux_policycap_names[__POLICYDB_CAPABILITY_MAX] = { + "network_peer_controls", + "open_perms", + "extended_socket_class", + "always_check_network", + "cgroup_seclabel" +}; + int selinux_policycap_netpeer; int selinux_policycap_openperm; int selinux_policycap_extsockclass; @@ -1986,6 +1995,9 @@ static int convert_context(u32 key, static void security_load_policycaps(void) { + unsigned int i; + struct ebitmap_node *node; + selinux_policycap_netpeer = ebitmap_get_bit(&policydb.policycaps, POLICYDB_CAPABILITY_NETPEER); selinux_policycap_openperm = ebitmap_get_bit(&policydb.policycaps, @@ -1997,6 +2009,17 @@ static void security_load_policycaps(void) selinux_policycap_cgroupseclabel = ebitmap_get_bit(&policydb.policycaps, POLICYDB_CAPABILITY_CGROUPSECLABEL); + + for (i = 0; i < ARRAY_SIZE(selinux_policycap_names); i++) + pr_info("SELinux: policy capability %s=%d\n", + selinux_policycap_names[i], + ebitmap_get_bit(&policydb.policycaps, i)); + + ebitmap_for_each_positive_bit(&policydb.policycaps, node, i) { + if (i >= ARRAY_SIZE(selinux_policycap_names)) + pr_warn("SELinux: unknown policy capability %u\n", + i); + } } static int security_preserve_bools(struct policydb *p);