From patchwork Mon Jul 24 20:30:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Smalley X-Patchwork-Id: 9860363 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 6C01F601A1 for ; Mon, 24 Jul 2017 20:26:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5533826E40 for ; Mon, 24 Jul 2017 20:26:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 48EEC269E2; Mon, 24 Jul 2017 20:26:59 +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=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from uhil19pa10.eemsg.mail.mil (uhil19pa10.eemsg.mail.mil [214.24.21.83]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0F701269E2 for ; Mon, 24 Jul 2017 20:26:57 +0000 (UTC) Received: from emsm-gh1-uea10.ncsc.mil ([214.29.60.2]) by uhil19pa10.eemsg.mail.mil with ESMTP; 24 Jul 2017 20:26:57 +0000 X-IronPort-AV: E=Sophos;i="5.40,408,1496102400"; d="scan'208";a="379692" IronPort-PHdr: =?us-ascii?q?9a23=3Arti6URNP6iQniWH31EAl6mtUPXoX/o7sNwtQ0KIM?= =?us-ascii?q?zox0LPz/osbcNUDSrc9gkEXOFd2CrakV26yL6Ou5BTxIyK3CmUhKSIZLWR4BhJ?= =?us-ascii?q?detC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TW94jEIBxrwKxd+?= =?us-ascii?q?KPjrFY7OlcS30P2594HObwlSijewZbB/IA+2oAjfucUanIRvJ6UswRbVv3VEfP?= =?us-ascii?q?hby3l1LlyJhRb84cmw/J9n8ytOvv8q6tBNX6bncakmVLJUFDspPXw7683trhnD?= =?us-ascii?q?UBCA5mAAXWUMkxpHGBbK4RfnVZrsqCT6t+592C6HPc3qSL0/RDqv47t3RBLulS?= =?us-ascii?q?wIOSQ58GXKgcJuiqxVrg+qqxhmz4LKfI2ZMfxzdb7fc9wHX2pMRsZfWTJPDI2/?= =?us-ascii?q?aIUBEvIBMORFo4TzuVQOtgCzCRWwCO711jNFnGP60bE83u88EQ/GxgsgH9cWvX?= =?us-ascii?q?rJsNX6Kr8SUeCrw6nO0D7NcvZW1i356IjMbB8goeyHULVrccXM0kkiDB/Fj1WM?= =?us-ascii?q?pozlODOZzOINs3OB4OZ6WuKvjHAnphh3rzOyxckskpHEip8ax13L7yl0wJs5Kc?= =?us-ascii?q?emREN0f9KoCoZcuieHPIVsWMwiWXtnuCMix70Dvp60YTYFxYw8xx7ad/yHa4+I?= =?us-ascii?q?4g//VOqJITd3mnZleLWnihau60eg0Oz8VtSv0FpQsipEksXDtnAK1xDJ7MiIVu?= =?us-ascii?q?B98Vu71TaK1gDT7vlIIUEylaXFN54s2qM8m5UcvEjZHiL6hV/6gLGZe0k64OSk?= =?us-ascii?q?9vzrYrD8qZ+dM490hBv+MqMrmsGnGuQ3LAwOX2md+eSh27zv5Fb2QLJXjv0wjq?= =?us-ascii?q?bWrovaKN8Hpq+5HwBV0oEj5wy5Dze9ytsUh3YHLFVbeB6flYjmJ0nOIOzkDfe4?= =?us-ascii?q?m1mskjBrx/bcMb39ApXCNH7DnazjfbZ67U5czRA8zctD551KELEBO+j/WkjrtN?= =?us-ascii?q?zXFhU5KRC7w/77CNVh0YMTQWCPAq2DP6zOsl+I/eUvI++NZI8Lozv9Jfwl5+Ph?= =?us-ascii?q?jHAihF8de7Wp3YYNZHC/BPRmLF2TYWDwjdcZDWcKog0+QfTkiV2DVT5TYmi9X7?= =?us-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v+cxoHP3JES3N5jVfwO4S0ic4VXFSwZQgziBSl/Vr6x7Rc?= =?us-ascii?q?pKlnKWnTQENIfyzoIGF5Saa/rKSNY9RI6J8ytiVXSuu8a0iASrHhuxsazz/jH2?= =?us-ascii?q?xGyTAldjGlpon5nxtgiG6HMHlzrH3Zecd/xRrE4NzcRPhR0SAcRCl/kzXXAUK8?= =?us-ascii?q?P9ax99WOi5jDqvy+V36mVpBLdSnrzJiAtDei6W1xHxK/m/Gzmtv6EQk1yiL7zM?= =?us-ascii?q?FqVSTOrBb9fobrzL62MeR5cUl0HFX88dZ1Gplikossg5EdwWIahpKR/XoDj2jz?= =?us-ascii?q?K8lU2aXwbXcWXj4L3sLa4BP/1E1kNHKJyJrzVm+Bzct5e9m6fmQW1zol789QFa?= =?us-ascii?q?eU6KZIkjFvrlWjqgLRZeR9njAbyfY17X4Wn+cJuA0xwSmHBLAdA1VYNzT2lxuU?= =?us-ascii?q?99C+sLlXZGG3fLizykV+m8uhAaqBog5CXnb5YZEiEjFs7sllN1LMynLz4Jn+eN?= =?us-ascii?q?bMddITqgGUkxDYguhNMp0xi/4KijR/OW3nu30l1/A0jQZ10JGnp4iINX9t/Lmj?= =?us-ascii?q?Dh5DMT31etkT9S3zgqZQmcaWxY+vEYt7FjUNQpToUeqiECgOuvT/KwaODDo8p2?= =?us-ascii?q?+FGbrZAACS81lmr3TSHJCrLX2XImcWzcl6ThmHOENfmBwUXCk9npMhDgCl3tHh?= =?us-ascii?q?cENi6z8N5174thtNxvtmNxblVGfTvgCoai07SJKHNhpZ8hlC51vJMcyZ9u9zET?= =?us-ascii?q?tX/pu9rAyKL2yWfApIAn8UVUyDHVDsJKGu5cPH8+iaGOWxM+fOba+JqexEWPeC?= =?us-ascii?q?3Yiv3Zd+/zaQKsWPOWFvD/gh1UpHWXB2BdjZmykVRCMNjC/NadCUpAun+iJrtM?= =?us-ascii?q?+/6OrkVBjp5YSRF7tYKc9v9AyugaefK+6Qgz50KSxC2pIC33PIzaIQ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gm4?= =?us-ascii?q?xhH1URAv4UG76L8J9fnmc+nuzVLNwWcqZMmmaVDxGkCaMCyWS26ySLPGllnwvO?= =?us-ascii?q?3A/qTWO09l/2ojdyQTHQwNf7jkpVSr63CF9UXyqoJUB4tzePMxDztNbtuKQ160?= =?us-ascii?q?Y2Mnf/tN+WkWusN7xWE9f4JNyGLik+vEgXg4EpRtyzxYAbHsKwL8sL/3F6cPTe?= =?us-ascii?q?8H+rki9Go6pcnIrR/sCV9evRHXm8jq2Vsa+BxDZGxXgkpVs/8MyvNunS592WRP?= =?us-ascii?q?Slz2IRTzx6uwbBRBO1pKLUoE0TOUyRykjLgJYKPtZb3XYmyk7m+PIvQNUp9AVR?= =?us-ascii?q?DozAfe8NpSjvODvoxlaSe9A3Viib0zZMG1L6D1l5F7Ym2GLxusLJmm3c+1s2SY?= =?us-ascii?q?lsb0bnnwB4D50kKUIx71ga2isDEAkXZh+BEL6lHl/lIpUYVUcddRuLxr+6er04?= =?us-ascii?q?3Udr2LOg+PfTbfBgB6oKLvtSlQ+OnENVG50Ms60eQa58e0dH+67KogjvEJToX/?= =?us-ascii?q?/7mnUuL/K1X9pa8ccDt3Q4+Aq/QACg6Zhb5bYBlJ+IbrJEYYTLvM1k90do/yIP?= =?us-ascii?q?eTBNgBlxiBO5S+McqPn44tfFtJqo6+CuVLsiRugM7xg7HXh+gIfwgFEtptHXze?= =?us-ascii?q?RcRpfWiYvh6gBNJWCFuILA3xl7M+oOJJqhfKx8+HUfOygeO3UOMMKKa/km/SBt?= =?us-ascii?q?NC/c51pcDc4XeNwYPcXNmQFIikLzQ7Fc7NDbGkKCB4d1ac8o83L9yCop/pskTu?= =?us-ascii?q?bg9Di2KIjQ715XJfNMkjlslNLZqegRwPrSFDYY4XmDZBho2SOO0Z+NBOjs/e+U?= =?us-ascii?q?0tHbS0sGHjIqU4daPDeC9hKoRuyplJXuVQOY7dTzj4w6dEKRQHyxgasEv71IEe?= =?us-ascii?q?FekCX63iJRGprzh/2Lr9qm8HFXuUFfEIZv8R3FH71SMYl5ORviisamXVRzBiz7?= =?us-ascii?q?eMHQdxohpvCWxvsS7OpiN0vyf4gbIggLy7ji83paUhNuSKLqvlaeRe8RYdxmSP?= =?us-ascii?q?XYrnBa941tMKoPPFmHq5zssDhItF43AAgzaL8ztTxWbE/OkxNJW6zsor4PlhMc?= =?us-ascii?q?UcJluU9LAW+wN34x5yHcVahMkaefB/ob8jSVTqwTXERlKSx+Qxav15VoZbSlh/?= =?us-ascii?q?dHsnlJnilluvglzyRmRAeguS3rv68N2zUg+LG+tDkbpXNFTuGekzrVBlRCzfQK?= =?us-ascii?q?i7wcC3Xj6VGnfnkDbZXy76NjJcv99Ikt+XI/bgs/fyceR+SvFznwj7+UAoyIqN?= =?us-ascii?q?9chQCNt9/IbbKoKSgSK6kyyRPkR3hmyATemwxo8GQTSDW68NAkPJm9Odoixiew?= =?us-ascii?q?G2jUalgM4q1NsMbqu18EVu02Zk19wGl51MiIWDENTtTVG2kplggkdXlEcJVb5B?= =?us-ascii?q?8VE6kohTiJsbdC/gEQezrUCYOl+o/RncjUw3U9S8llxn7OrK2fmpwqyGFlm89z?= =?us-ascii?q?7iOWunQSd+zZU9drAnj314df1fLxau6osuAGVItm0qquXOUFMsm59mu8wI9qVV?= =?us-ascii?q?O9xrQCA1q5N/cOxqvaUyegUmCYReWLfHSPnzknNk7+/x+oIUMraM1StU8yLvPC?= =?us-ascii?q?hoJAlw3mSb50QySQpVzYzGwkKu4adRg5uISgewwMUuERYfKQJe4wz/0iEFEMdW?= =?us-ascii?q?PGHTNqC++qtl6ghJN0NGtm4UXmeunt6QTmMNyOGhkYD47VsIN+9ea9RmKbNn9q?= =?us-ascii?q?1AdyM1Vs9+fDC1QxsfdRc46WndjUndt7y+AEd/BpMS0zodMTn4Vj6Y6P0MiUbR?= =?us-ascii?q?7R1JHyJcrOoviZBf3fwF4memZAUroWeQn1/Zk1PsYlW73PGrtUpRocCrY+QJwg?= =?us-ascii?q?L2f+6rp5LQ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AWwFiAkZAzOBRQ2xNjoiAotWgyiFLodrhhgFiVQKiGGND4sYiHk?= =?us-ascii?q?NggyJPAyGY5VkV4EKKAkCHwghD4VcHBmBalqHIyqCFgEBAQ?= Received: from unknown (HELO tarius.tycho.ncsc.mil) ([144.51.242.1]) by EMSM-GH1-UEA10.NCSC.MIL with ESMTP; 24 Jul 2017 20:26:54 +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 v6OKQF5R024844; Mon, 24 Jul 2017 16:26:21 -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 v6OKQBOO010988 for ; Mon, 24 Jul 2017 16:26:11 -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 v6OKQ80M024837; Mon, 24 Jul 2017 16:26:08 -0400 From: Stephen Smalley To: selinux@tycho.nsa.gov Date: Mon, 24 Jul 2017 16:30:48 -0400 Message-Id: <20170724203048.20063-1-sds@tycho.nsa.gov> X-Mailer: git-send-email 2.9.4 Subject: [PATCH v2] selinux: Generalize support for NNP/nosuid SELinux domain transitions 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 , luto@amacapital.net Errors-To: selinux-bounces@tycho.nsa.gov Sender: "Selinux" X-Virus-Scanned: ClamAV using ClamSMTP As systemd ramps up enabling NNP (NoNewPrivileges) for system services, it is increasingly breaking SELinux domain transitions for those services and their descendants. systemd enables NNP not only for services whose unit files explicitly specify NoNewPrivileges=yes but also for services whose unit files specify any of the following options in combination with running without CAP_SYS_ADMIN (e.g. specifying User= or a CapabilityBoundingSet= without CAP_SYS_ADMIN): SystemCallFilter=, SystemCallArchitectures=, RestrictAddressFamilies=, RestrictNamespaces=, PrivateDevices=, ProtectKernelTunables=, ProtectKernelModules=, MemoryDenyWriteExecute=, or RestrictRealtime= as per the systemd.exec(5) man page. The end result is bad for the security of both SELinux-disabled and SELinux-enabled systems. Packagers have to turn off these options in the unit files to preserve SELinux domain transitions. For users who choose to disable SELinux, this means that they miss out on at least having the systemd-supported protections. For users who keep SELinux enabled, they may still be missing out on some protections because it isn't necessarily guaranteed that the SELinux policy for that service provides the same protections in all cases. commit 7b0d0b40cd78 ("selinux: Permit bounded transitions under NO_NEW_PRIVS or NOSUID.") allowed bounded transitions under NNP in order to support limited usage for sandboxing programs. However, defining typebounds for all of the affected service domains is impractical to implement in policy, since typebounds requires us to ensure that each domain is allowed everything all of its descendant domains are allowed, and this has to be repeated for the entire chain of domain transitions. There is no way to clone all allow rules from descendants to their ancestors in policy currently, and doing so would be undesirable even if it were practical, as it requires leaking permissions to objects and operations into ancestor domains that could weaken their own security in order to allow them to the descendants (e.g. if a descendant requires execmem permission, then so do all of its ancestors; if a descendant requires execute permission to a file, then so do all of its ancestors; if a descendant requires read to a symbolic link or temporary file, then so do all of its ancestors...). SELinux domains are intentionally not hierarchical / bounded in this manner normally, and making them so would undermine their protections and least privilege. We have long had a similar tension with SELinux transitions and nosuid mounts, albeit not as severe. Users often have had to choose between retaining nosuid on a mount and allowing SELinux domain transitions on files within those mounts. This likewise leads to unfortunate tradeoffs in security. Decouple NNP/nosuid from SELinux transitions, so that we don't have to make a choice between them. Introduce a nnp_nosuid_transition policy capability that enables transitions under NNP/nosuid to be based on a permission (nnp_transition for NNP; nosuid_transition for nosuid) between the old and new contexts in addition to the current support for bounded transitions. Domain transitions can then be allowed in policy without requiring the parent to be a strict superset of all of its children. With this change, systemd unit files can be left unmodified from upstream. SELinux-disabled and SELinux-enabled users will benefit from retaining any of the systemd-provided protections. SELinux policy will only need to be adapted to enable the new policy capability and to allow the new permissions between domain pairs as appropriate. NB: Allowing nnp_transition between two contexts opens up the potential for the old context to subvert the new context by installing seccomp filters before the execve. Allowing nosuid_transition between two contexts opens up the potential for a context transition to occur on a file from an untrusted filesystem (e.g. removable media or remote filesystem). Use with care. Signed-off-by: Stephen Smalley --- security/selinux/hooks.c | 46 ++++++++++++++++++++++++++----------- security/selinux/include/classmap.h | 4 +++- security/selinux/include/security.h | 2 ++ security/selinux/ss/services.c | 7 +++++- 4 files changed, 43 insertions(+), 16 deletions(-) diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 1684844..70edf9e 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c @@ -2319,6 +2319,7 @@ static int check_nnp_nosuid(const struct linux_binprm *bprm, int nnp = (bprm->unsafe & LSM_UNSAFE_NO_NEW_PRIVS); int nosuid = !mnt_may_suid(bprm->file->f_path.mnt); int rc; + u32 av; if (!nnp && !nosuid) return 0; /* neither NNP nor nosuid */ @@ -2327,24 +2328,41 @@ static int check_nnp_nosuid(const struct linux_binprm *bprm, return 0; /* No change in credentials */ /* - * The only transitions we permit under NNP or nosuid - * are transitions to bounded SIDs, i.e. SIDs that are - * guaranteed to only be allowed a subset of the permissions - * of the current SID. + * If the policy enables the nnp_nosuid_transition policy capability, + * then we permit transitions under NNP or nosuid if the + * policy allows the corresponding permission between + * the old and new contexts. */ - rc = security_bounded_transition(old_tsec->sid, new_tsec->sid); - if (rc) { - /* - * On failure, preserve the errno values for NNP vs nosuid. - * NNP: Operation not permitted for caller. - * nosuid: Permission denied to file. - */ + if (selinux_policycap_nnp_nosuid_transition) { if (nnp) - return -EPERM; + av = PROCESS__NNP_TRANSITION; else - return -EACCES; + av = PROCESS2__NOSUID_TRANSITION; + + rc = avc_has_perm(old_tsec->sid, new_tsec->sid, + SECCLASS_PROCESS, + av, NULL); + if (!rc) + return 0; } - return 0; + + /* + * We also permit NNP or nosuid transitions to bounded SIDs, + * i.e. SIDs that are guaranteed to only be allowed a subset + * of the permissions of the current SID. + */ + rc = security_bounded_transition(old_tsec->sid, new_tsec->sid); + if (!rc) + return 0; + + /* + * On failure, preserve the errno values for NNP vs nosuid. + * NNP: Operation not permitted for caller. + * nosuid: Permission denied to file. + */ + if (nnp) + return -EPERM; + return -EACCES; } static int selinux_bprm_set_creds(struct linux_binprm *bprm) diff --git a/security/selinux/include/classmap.h b/security/selinux/include/classmap.h index b9fe343..b3f892d 100644 --- a/security/selinux/include/classmap.h +++ b/security/selinux/include/classmap.h @@ -47,7 +47,9 @@ struct security_class_mapping secclass_map[] = { "getattr", "setexec", "setfscreate", "noatsecure", "siginh", "setrlimit", "rlimitinh", "dyntransition", "setcurrent", "execmem", "execstack", "execheap", "setkeycreate", - "setsockcreate", "getrlimit", NULL } }, + "setsockcreate", "getrlimit", "nnp_transition", NULL } }, + { "process2", + { "nosuid_transition", NULL } }, { "system", { "ipc_info", "syslog_read", "syslog_mod", "syslog_console", "module_request", "module_load", NULL } }, diff --git a/security/selinux/include/security.h b/security/selinux/include/security.h index e91f08c..3e32317 100644 --- a/security/selinux/include/security.h +++ b/security/selinux/include/security.h @@ -73,6 +73,7 @@ enum { POLICYDB_CAPABILITY_EXTSOCKCLASS, POLICYDB_CAPABILITY_ALWAYSNETWORK, POLICYDB_CAPABILITY_CGROUPSECLABEL, + POLICYDB_CAPABILITY_NNP_NOSUID_TRANSITION, __POLICYDB_CAPABILITY_MAX }; #define POLICYDB_CAPABILITY_MAX (__POLICYDB_CAPABILITY_MAX - 1) @@ -84,6 +85,7 @@ extern int selinux_policycap_openperm; extern int selinux_policycap_extsockclass; extern int selinux_policycap_alwaysnetwork; extern int selinux_policycap_cgroupseclabel; +extern int selinux_policycap_nnp_nosuid_transition; /* * type_datum properties diff --git a/security/selinux/ss/services.c b/security/selinux/ss/services.c index 2f02fa6..16c55de 100644 --- a/security/selinux/ss/services.c +++ b/security/selinux/ss/services.c @@ -76,7 +76,8 @@ char *selinux_policycap_names[__POLICYDB_CAPABILITY_MAX] = { "open_perms", "extended_socket_class", "always_check_network", - "cgroup_seclabel" + "cgroup_seclabel", + "nnp_nosuid_transition" }; int selinux_policycap_netpeer; @@ -84,6 +85,7 @@ int selinux_policycap_openperm; int selinux_policycap_extsockclass; int selinux_policycap_alwaysnetwork; int selinux_policycap_cgroupseclabel; +int selinux_policycap_nnp_nosuid_transition; static DEFINE_RWLOCK(policy_rwlock); @@ -2009,6 +2011,9 @@ static void security_load_policycaps(void) selinux_policycap_cgroupseclabel = ebitmap_get_bit(&policydb.policycaps, POLICYDB_CAPABILITY_CGROUPSECLABEL); + selinux_policycap_nnp_nosuid_transition = + ebitmap_get_bit(&policydb.policycaps, + POLICYDB_CAPABILITY_NNP_NOSUID_TRANSITION); for (i = 0; i < ARRAY_SIZE(selinux_policycap_names); i++) pr_info("SELinux: policy capability %s=%d\n",