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=-1.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED 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 5FBC8C282C4 for ; Tue, 22 Jan 2019 08:11:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2CB3F2084C for ; Tue, 22 Jan 2019 08:11:44 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="rzgcte+v" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727468AbfAVILo (ORCPT ); Tue, 22 Jan 2019 03:11:44 -0500 Received: from mail-ed1-f66.google.com ([209.85.208.66]:37003 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727400AbfAVILn (ORCPT ); Tue, 22 Jan 2019 03:11:43 -0500 Received: by mail-ed1-f66.google.com with SMTP id h15so18553322edb.4 for ; Tue, 22 Jan 2019 00:11:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=b3F2il2CwKByM1OCVrwM2/JDbvMz4NVg1wAjWdjE2EQ=; b=rzgcte+v5Ri/crr4a2zYjFm8ce0nfzd05qD0p2TV3ROnY05eGrzeTu5BJ8UpnVbiwb zj05OMvNbZMukzwx//ff3LvQUiFUo0ULlcapmGk6mTe45MMiYWZzbREFu7/96oeswCmu JN7FTjDOzK7ejXQ0ddL9Bzok2ntKJKj5Zdt96UUiqvQF9sFDfLA1Of5k6P2Aj/qrVHlc ohjnSICHmqCRICj1PtJ7HkpjaxMrYjdTP7meCL9PsC/3nWHxNYcPmjJ+dbux3t/vv6m+ ih10gMT+5ln68HhdwTrGl72zZePt0lxch/xjAN5MnL7rSGq65Jp+yTe8QITjE/wfgmop t8gg== 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:references:date:in-reply-to :message-id:user-agent:mime-version; bh=b3F2il2CwKByM1OCVrwM2/JDbvMz4NVg1wAjWdjE2EQ=; b=QXrmALZoHQHWRHwE523xIghSooU56A+s9+K5EP74MsDddLk5HRBTUVcU8z02iKO/Ap uGpvh5lT5pgK+8VYtgLgQ8BP6QRY/cEF6LaqkC4WHxX9a29NzgTM69OZHZwojGMqs4IS bFSQXRQAUg8Zj/bwn7o7o3IM4Ekp6FAnM7GtqV4pG0MBC15QUKjygc0HH5Tt87lC1+t3 PSEp9HOo5yHH+68VNjoVuLeMFrwBvC4jPTYwe/LbJSSJYQjAwkqZgaVao+W8fxOBvBGh PyOYBr+Hprb1CmMLEcrV3WxZtHBiWPB6o57zZVjVaqT2Omsq0+KmuvYbbUX5F/gDJAiD 1TkQ== X-Gm-Message-State: AJcUukfoSgdAFTK/iDES92s0M1GMhTdg9DslWPWa4iTFHzh8biKQuBa4 p20V6R42TIe61406+U58411emomy X-Google-Smtp-Source: ALg8bN4X5n0z5l+W1OOzHZ+ULZx6pBhN2rE6tnxA3briFFJ5smssUFWtCmjIZ83bwQCZ4KP1IPDjfw== X-Received: by 2002:a17:906:14d8:: with SMTP id y24-v6mr27101714ejc.216.1548144701819; Tue, 22 Jan 2019 00:11:41 -0800 (PST) Received: from brutus ([2001:985:d55d::438]) by smtp.gmail.com with ESMTPSA id d15sm9355474edv.20.2019.01.22.00.11.41 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 22 Jan 2019 00:11:41 -0800 (PST) From: Dominick Grift To: Russell Coker Cc: "selinux-refpolicy\@vger.kernel.org" Subject: Re: nnp_transition References: <6525171.sqPiMeOL83@liv> Date: Tue, 22 Jan 2019 09:11:40 +0100 In-Reply-To: <6525171.sqPiMeOL83@liv> (Russell Coker's message of "Tue, 22 Jan 2019 09:47:04 +1100") Message-ID: <87fttlyuv7.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: selinux-refpolicy-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: selinux-refpolicy@vger.kernel.org Russell Coker writes: > Getting close to a Debian release so I have to sort out the nnp_transition > rules. How do I work out what's going on here? Do I just assume that as > dpkg_t has generally less access than unconfined_t it's ok? Is it worth > investigating why something in apt is setting NNP? Not worth looking into if you ask me (this is just the tip of the mountain). You no longer have to worry about type bounds if you enable the polcap (which i think is the default) > > type=PROCTITLE msg=audit(22/01/19 07:08:31.692:1104) : proctitle=/usr/bin/dpkg > --print-foreign-architectures > type=SYSCALL msg=audit(22/01/19 07:08:31.692:1104) : arch=x86_64 > syscall=execve success=yes exit=0 a0=0x5611b27bd0e0 a1=0x5611b27c1590 > a2=0x7fff0e8f51f0 a3=0x1 items=0 ppid=18604 pid=18605 auid=root uid=_apt > gid=nogroup euid=_apt suid=_apt fsuid=_apt egid=nogroup sgid=nogroup > fsgid=nogroup tty=pts2 ses=9 comm=dpkg exe=/usr/bin/dpkg > subj=unconfined_u:unconfined_r:dpkg_t:s0-s0:c0.c1023 key=(null) > type=AVC msg=audit(22/01/19 07:08:31.692:1104) : avc: granted { > nnp_transition } for pid=18605 comm=apt-config > scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 > tcontext=unconfined_u:unconfined_r:dpkg_t:s0-s0:c0.c1023 tclass=process2 -- Key fingerprint = 5F4D 3CDB D3F8 3652 FBD8 02D5 3B6C 5F1D 2C7B 6B02 https://sks-keyservers.net/pks/lookup?op=get&search=0x3B6C5F1D2C7B6B02 Dominick Grift