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=-0.9 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 791E9C43381 for ; Mon, 11 Mar 2019 06:53:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 46F6A20657 for ; Mon, 11 Mar 2019 06:53:35 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="UQLl6D+K" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726816AbfCKGxe (ORCPT ); Mon, 11 Mar 2019 02:53:34 -0400 Received: from mail-ed1-f45.google.com ([209.85.208.45]:43747 "EHLO mail-ed1-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725869AbfCKGxd (ORCPT ); Mon, 11 Mar 2019 02:53:33 -0400 Received: by mail-ed1-f45.google.com with SMTP id m35so3024664ede.10 for ; Sun, 10 Mar 2019 23:53:32 -0700 (PDT) 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=ohIYEcDqxZNHVBenF6foQj4ka5WFpE0+JOJO9n/cSoo=; b=UQLl6D+KVO+WiIYgx4JGSK+bIxGm3ctR2hu6OEgJ032d5h/UL0+MOOphbu2ZCLFP8B XC0/WytHI6LQQ3XouX3JVa4DTqhsNl6BZr4F6CZMkR17WAcD8odqFsNcIVlZaFN5ZwqE V6M1ld3AF7p2GEC2HkZV9ezMyoRA6fCXWtL9MmMwymv1UtZHNw/Zhb6R9ESmsVst6MJG 9CwgcuMrjgW5VDYG1p6G70AzkvdAzc9N79OsmAtb6HLN8r4pzYTVeNIJdhkZKorv3r2F 4S67Hs9yn5oVhyPqL272p9BnfNr+zWAoYW0BSGD4chYMQV4tluNQawf9NsupVmC8FE0s nr3g== 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=ohIYEcDqxZNHVBenF6foQj4ka5WFpE0+JOJO9n/cSoo=; b=n6ntVU4iuVlNiOZXFygrZ9vjEpiTwXVE8TimOhJwS9emt369H6Y8eGb3QL55eS2xI3 WwZRTfVv+jHO5OvgTToVlnLzszcPzBDNxZXdf/C1gy8VYhIcVDRzXnLvkkP9eL7av4Yg IdEmHyxOglxLIztQa1TcIEGha2WQAXURTTHqFiPRr7m9mLYwA4vYKZ9g0Tf88cTUDV97 aILKHaeGuHQvsmsW8vZk9UlcjB8wnsI3GFm0sRn4DFNInMARDFTwzOAHHlkQmuz4xrQT xXG10ACg75PhkqZ4yC528KkApFZLmmTuf+8M4PIkDX5tvrObueA1n7YY0L7QEfBdCNy6 7gMg== X-Gm-Message-State: APjAAAW54zb/eBa+dvcZpF/fm/1EfeNRBp6o21/AzsgJ0D6i7ZmULOBb 21bMJpZBDMMIb6pWwiivEV+112gB X-Google-Smtp-Source: APXvYqyIsyHViFlot5U5fHfEBPSv4BU1AdG/ujKPBcAi3xOyO5wR+4QEU17Dp2yXg1nnYZNAbSAxPg== X-Received: by 2002:a50:9e0f:: with SMTP id z15mr40958224ede.267.1552287211461; Sun, 10 Mar 2019 23:53:31 -0700 (PDT) Received: from brutus (brutus.defensec.nl. [2001:985:d55d::438]) by smtp.gmail.com with ESMTPSA id y24sm4323840eds.35.2019.03.10.23.53.30 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 10 Mar 2019 23:53:30 -0700 (PDT) From: Dominick Grift To: Russell Coker Cc: "selinux-refpolicy\@vger.kernel.org" Subject: Re: what's up with mac_admin References: <2502654.FxcCWanWCu@liv> Date: Mon, 11 Mar 2019 07:53:29 +0100 In-Reply-To: <2502654.FxcCWanWCu@liv> (Russell Coker's message of "Mon, 11 Mar 2019 09:31:16 +1100") Message-ID: <87ftrtx5p2.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: > type=AVC msg=audit(1552226284.038:2422): avc: denied { mac_admin } for > pid=8289 comm="rsync" capability=33 > scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 > tcontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tclass=capability2 > permissive=0 Its for setting invalid labels. Something you generally want to avoid. > > The above is from running rsync with the -X option. > > $ grep -R mac_admin . > ./policy/flask/access_vectors: mac_admin # unused by SELinux > ./policy/modules/apps/livecd.te:dontaudit livecd_t self:capability2 mac_admin; > > Grepping the git policy shows that there's a comment saying it's unused as > well as a dontaudit rule indicating that it has been used for some time. -- Key fingerprint = 5F4D 3CDB D3F8 3652 FBD8 02D5 3B6C 5F1D 2C7B 6B02 https://sks-keyservers.net/pks/lookup?op=get&search=0x3B6C5F1D2C7B6B02 Dominick Grift