Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp1063842pxb; Wed, 16 Feb 2022 10:08:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJzrL/Ngpg8/3Qwgqoxd76rMzCQfWg39lMXvcf6aQ9oRnSNOwsTyhasUt1K4Oc/nth0lYPvb X-Received: by 2002:a17:902:900c:b0:14d:81e9:75d with SMTP id a12-20020a170902900c00b0014d81e9075dmr3485670plp.69.1645034914059; Wed, 16 Feb 2022 10:08:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645034914; cv=none; d=google.com; s=arc-20160816; b=OktSZiawGRN1a6eYupFs8z9v/vFJfTC0RiUzd4R8bLQKk9H8fE5K0AeB3rK/zyl3ZC 7pgmdmVw/Gy4grLcnNWY8KSSvA//Uf1M5rhdWQRpZtCmn0juSiDYHQ/QqqrGwht3He2C qAlJbVQ/8iayO35/9Af/w0YtgixBB+GcEtlUyIjeGPHJILvUXEY0BdHs48gB8CZtig/U 5OYrdd1Ooqfe1h+Bkfs+YUBzqREKwig3+8wh1uSKtPA5a9g4GEvBYWLAcaiW536V31Pp bqng6Pfva0+wcPAWbSMHA55AH6LXtn1l0Fpwib4wkU5TGFcsdvQZCQ4kYcyQbzdosUyk 0zrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=QAm6Knyh/0ne9naA7bSMME92xBu/jskrYexU8PZtcuM=; b=OF66/jsI5m6CrjlCPmfnrmgF+IolYYDYA6RJAM2dU2e2B9f5oV7l71oEHvGtcgO2RX 1qu9MIMKg6Ao3SmeEIR3TTf/Nshk6KrUPEGADVVS1UStDybztExHSLSSWSF/euLxqeJK SwOna47MhrpuO0lsIHFU9FdFGMxcyW/kNS9/6eJZuQnFVOYVH6mJ/Gke+Bz1ftvW/76t 55uhJ1V+xVimWHUJw4XUEntcJw5d43gy+0K/xw2L8UvL68GrjRM3+AIVndRDWBC5gyiJ VXSxSMM527SL3g1xfxlKGQ98dX19VXGmc5lpp8N39qmFDUk+bYsrUiV7+wnMMhDloQ9u nN7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ieee.org header.s=google header.b=bcYDjxpB; spf=pass (google.com: domain of selinux-refpolicy-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=selinux-refpolicy-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ieee.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a5si32938074pfv.325.2022.02.16.10.08.28; Wed, 16 Feb 2022 10:08:34 -0800 (PST) Received-SPF: pass (google.com: domain of selinux-refpolicy-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ieee.org header.s=google header.b=bcYDjxpB; spf=pass (google.com: domain of selinux-refpolicy-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=selinux-refpolicy-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ieee.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232409AbiBPQHo (ORCPT + 22 others); Wed, 16 Feb 2022 11:07:44 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:35738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232520AbiBPQHm (ORCPT ); Wed, 16 Feb 2022 11:07:42 -0500 Received: from mail-vs1-xe2c.google.com (mail-vs1-xe2c.google.com [IPv6:2607:f8b0:4864:20::e2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1EC27A66F0 for ; Wed, 16 Feb 2022 08:07:30 -0800 (PST) Received: by mail-vs1-xe2c.google.com with SMTP id p7so3016810vsg.2 for ; Wed, 16 Feb 2022 08:07:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ieee.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :references:from:in-reply-to:content-transfer-encoding; bh=QAm6Knyh/0ne9naA7bSMME92xBu/jskrYexU8PZtcuM=; b=bcYDjxpBc4pl6rblQ1bsN10S8AT20PyXme0E9Dx8dRuZPPMNsKs1zbUUNgjnuxhqj5 MShG3VgoYJ8+rePCFJiqT/OJUxTPpT4WGBtBtE3DIWhD/oblfb9mTWgRmMBsLZKWf95r OPeHkhs188gkXvSSlBWcbfaPtTBKihoFa1WHM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=QAm6Knyh/0ne9naA7bSMME92xBu/jskrYexU8PZtcuM=; b=eEp1sAQTb/KWtZoadNgOFYz1kXZ0fnhHbCGWYAsfge0u1Xe4ItCJS5vOqg4xGhS50c 8roK35khRUe9Wf7fBk4yDBKUBtkP+94GEIl/qTBjpd0TIYbCbCq0/B3JWIA/GiFMdJRU HDOyHBXJmlOt3iohFDix7jzOlpyxcWpUpsc4pwyOUWRC5vRsAFYHauTwVBTsfH2O5/gf vPctNF7UKUvjN74zllG5KIixdSDe/cG3rOT3A782/GeF0OATZFPp2BN2Hh4ArQ1nUnSQ 0UyMCT/GK7wi0/KPsPBjTlyEoo09ea7Tez/4DArfffCdbkg2vCtQXOTFaWSUYap9rpSr dyTg== X-Gm-Message-State: AOAM5314d09fffecjGomat/DvuRqf7F0A+AUt96NHgEKXgW5e3VNHga2 23BG+/XbbpYPdhR0JWwkchHTb/Xi9XKoXQ== X-Received: by 2002:a05:6102:2912:b0:31a:5ab3:f44b with SMTP id cz18-20020a056102291200b0031a5ab3f44bmr1498559vsb.53.1645027649231; Wed, 16 Feb 2022 08:07:29 -0800 (PST) Received: from [192.168.1.126] ([72.85.44.115]) by smtp.gmail.com with ESMTPSA id s18sm5689707vst.3.2022.02.16.08.07.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 16 Feb 2022 08:07:28 -0800 (PST) Message-ID: Date: Wed, 16 Feb 2022 11:07:26 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH] dontaudit net_admin without hide_broken_symptoms Content-Language: en-US To: Russell Coker , selinux-refpolicy@vger.kernel.org References: From: Chris PeBenito In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: selinux-refpolicy@vger.kernel.org On 2/16/22 08:07, Russell Coker wrote: > Sending this patch again without the ifdef, I agree that the ifdef isn't very > useful nowadays. > > Signed-off-by: Russell Coker > > Index: refpolicy-2.20220216/policy/modules/services/cron.te > =================================================================== > --- refpolicy-2.20220216.orig/policy/modules/services/cron.te > +++ refpolicy-2.20220216/policy/modules/services/cron.te > @@ -172,6 +172,8 @@ tunable_policy(`fcron_crond',` > # Daemon local policy > # > > +# for changing buffer sizes > +dontaudit crond_t self:capability net_admin; > allow crond_t self:capability { chown dac_override dac_read_search fowner setgid setuid sys_nice sys_resource }; > dontaudit crond_t self:capability { sys_tty_config }; > > Index: refpolicy-2.20220216/policy/modules/services/dbus.te > =================================================================== > --- refpolicy-2.20220216.orig/policy/modules/services/dbus.te > +++ refpolicy-2.20220216/policy/modules/services/dbus.te > @@ -67,6 +67,8 @@ ifdef(`enable_mls',` > # Local policy > # > > +# for changing buffer sizes > +dontaudit system_dbusd_t self:capability net_admin; > allow system_dbusd_t self:capability { dac_override setgid setpcap setuid sys_resource }; > dontaudit system_dbusd_t self:capability sys_tty_config; > allow system_dbusd_t self:process { getattr getsched signal_perms setpgid getcap setcap setrlimit }; > Index: refpolicy-2.20220216/policy/modules/services/policykit.te > =================================================================== > --- refpolicy-2.20220216.orig/policy/modules/services/policykit.te > +++ refpolicy-2.20220216/policy/modules/services/policykit.te > @@ -68,6 +68,8 @@ miscfiles_read_localization(policykit_do > # Local policy > # > > +# for changing buffer sizes > +dontaudit policykit_t self:capability net_admin; > allow policykit_t self:capability { dac_override dac_read_search setgid setuid sys_nice sys_ptrace }; > allow policykit_t self:process { getsched setsched signal }; > allow policykit_t self:unix_stream_socket { accept connectto listen }; > Index: refpolicy-2.20220216/policy/modules/services/postfix.te > =================================================================== > --- refpolicy-2.20220216.orig/policy/modules/services/postfix.te > +++ refpolicy-2.20220216/policy/modules/services/postfix.te > @@ -107,6 +107,8 @@ mta_mailserver_delivery(postfix_virtual_ > # Common postfix domain local policy > # > > +# for changing buffer sizes > +dontaudit postfix_domain self:capability net_admin; > allow postfix_domain self:capability { sys_chroot sys_nice }; > dontaudit postfix_domain self:capability sys_tty_config; > allow postfix_domain self:process { signal_perms setpgid setsched }; Merged. -- Chris PeBenito