Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9AF59C433EF for ; Wed, 16 Feb 2022 13:07:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233721AbiBPNHz (ORCPT ); Wed, 16 Feb 2022 08:07:55 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:54788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233727AbiBPNHx (ORCPT ); Wed, 16 Feb 2022 08:07:53 -0500 Received: from smtp.sws.net.au (smtp.sws.net.au [IPv6:2a01:4f8:201:1e6::dada:cafe]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 685A81DE599 for ; Wed, 16 Feb 2022 05:07:38 -0800 (PST) Received: from xev.coker.com.au (localhost [127.0.0.1]) by smtp.sws.net.au (Postfix) with ESMTP id 464E1FDDD for ; Thu, 17 Feb 2022 00:07:35 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=coker.com.au; s=2008; t=1645016855; bh=nk+3hanjXlHhSsEM6Yqima8QLwJgyM5vaZ1aVrrTNoY=; l=2704; h=Date:From:To:Subject:From; b=c55C3zzRqs2IZ78r+T2HZDVkCcL1r8Sk61AheCMSZpD4wFnQa7sBDLFSZOGkT0BeV sZPxYQ+g6yYv/iuKdKtr5kyxrMt5lTJthwNWq6OwyZkRJQleRUTxwYaUkdRHCCdNN9 4wetKLXdccoOeorriUWN5nRrLBDpYdi3VGW3fJ5E= Received: by xev.coker.com.au (Postfix, from userid 1001) id BCB451730F19; Thu, 17 Feb 2022 00:07:30 +1100 (AEDT) Date: Thu, 17 Feb 2022 00:07:30 +1100 From: Russell Coker To: selinux-refpolicy@vger.kernel.org Subject: [PATCH] dontaudit net_admin without hide_broken_symptoms Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: selinux-refpolicy@vger.kernel.org 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 };