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=-2.6 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS, USER_AGENT_MUTT 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 460E7C282C8 for ; Mon, 28 Jan 2019 08:48:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 17A7520880 for ; Mon, 28 Jan 2019 08:48:48 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=coker.com.au header.i=@coker.com.au header.b="ULK2OEzn" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726749AbfA1Isr (ORCPT ); Mon, 28 Jan 2019 03:48:47 -0500 Received: from smtp.sws.net.au ([46.4.88.250]:59172 "EHLO smtp.sws.net.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726415AbfA1Isr (ORCPT ); Mon, 28 Jan 2019 03:48:47 -0500 Received: from xev.coker.com.au (localhost [127.0.0.1]) by smtp.sws.net.au (Postfix) with ESMTP id 37BE5EC78 for ; Mon, 28 Jan 2019 19:48:45 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=coker.com.au; s=2008; t=1548665325; bh=Xbf0OwtK3LxyBX41ziJble8rIgsEA1odtBwQ3oXPHRQ=; l=2574; h=Date:From:To:Subject:From; b=ULK2OEznvueEnM7/CPzvgs8AdT56g55Nn7bKF0uRkNVB0ypa5h8Bu7o5x3QlMmR6P AfvabytwUtXaGlR0QA+53c5t/q2ti9vT5ztESCzwCPxCN6Gf/MMyqRZKkGSP0X9dsY Xxkhnq6/r0OsSQytzfJgDT/g8BHtKX1bt/M+oftg= Received: by xev.coker.com.au (Postfix, from userid 1001) id B890BC7E553; Mon, 28 Jan 2019 19:48:40 +1100 (AEDT) Date: Mon, 28 Jan 2019 19:48:40 +1100 From: Russell Coker To: "selinux-refpolicy@vger.kernel.org" Subject: [PATCH] yet another little patch Message-ID: <20190128084840.GB5441@xev> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Sender: selinux-refpolicy-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: selinux-refpolicy@vger.kernel.org This should all be obvious. Index: refpolicy-2.20180701/policy/modules/services/cron.te =================================================================== --- refpolicy-2.20180701.orig/policy/modules/services/cron.te +++ refpolicy-2.20180701/policy/modules/services/cron.te @@ -517,6 +517,7 @@ corenet_tcp_sendrecv_generic_node(system corenet_udp_sendrecv_generic_node(system_cronjob_t) corenet_tcp_sendrecv_all_ports(system_cronjob_t) corenet_udp_sendrecv_all_ports(system_cronjob_t) +corenet_tcp_connect_tor_port(system_cronjob_t) dev_getattr_all_blk_files(system_cronjob_t) dev_getattr_all_chr_files(system_cronjob_t) Index: refpolicy-2.20180701/policy/modules/services/devicekit.te =================================================================== --- refpolicy-2.20180701.orig/policy/modules/services/devicekit.te +++ refpolicy-2.20180701/policy/modules/services/devicekit.te @@ -91,6 +91,7 @@ files_pid_filetrans(devicekit_disk_t, de kernel_getattr_message_if(devicekit_disk_t) kernel_list_unlabeled(devicekit_disk_t) kernel_dontaudit_getattr_unlabeled_files(devicekit_disk_t) +kernel_read_crypto_sysctls(devicekit_disk_t) kernel_read_fs_sysctls(devicekit_disk_t) kernel_read_network_state(devicekit_disk_t) kernel_read_software_raid_state(devicekit_disk_t) @@ -108,6 +109,7 @@ dev_getattr_all_chr_files(devicekit_disk dev_getattr_mtrr_dev(devicekit_disk_t) dev_getattr_usbfs_dirs(devicekit_disk_t) dev_manage_generic_files(devicekit_disk_t) +dev_read_rand(devicekit_disk_t) dev_read_urand(devicekit_disk_t) dev_rw_sysfs(devicekit_disk_t) Index: refpolicy-2.20180701/policy/modules/system/lvm.te =================================================================== --- refpolicy-2.20180701.orig/policy/modules/system/lvm.te +++ refpolicy-2.20180701/policy/modules/system/lvm.te @@ -308,6 +308,7 @@ init_use_fds(lvm_t) init_dontaudit_getattr_initctl(lvm_t) init_use_script_ptys(lvm_t) init_read_script_state(lvm_t) +init_read_script_tmp_files(lvm_t) # for systemd-cryptsetup to talk to /run/systemd/journal/socket init_stream_connect(lvm_t) Index: refpolicy-2.20180701/policy/modules/system/sysnetwork.te =================================================================== --- refpolicy-2.20180701.orig/policy/modules/system/sysnetwork.te +++ refpolicy-2.20180701/policy/modules/system/sysnetwork.te @@ -373,6 +373,7 @@ ifdef(`hide_broken_symptoms',` optional_policy(` devicekit_read_pid_files(ifconfig_t) + devicekit_append_inherited_log_files(ifconfig_t) ') optional_policy(`