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=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_PASS 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 96A0AC169C4 for ; Wed, 30 Jan 2019 00:00:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 61E3621473 for ; Wed, 30 Jan 2019 00:00:32 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=ieee.org header.i=@ieee.org header.b="GEYnOFRv" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727940AbfA3AAc (ORCPT ); Tue, 29 Jan 2019 19:00:32 -0500 Received: from mail-qt1-f195.google.com ([209.85.160.195]:41323 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727360AbfA3AAc (ORCPT ); Tue, 29 Jan 2019 19:00:32 -0500 Received: by mail-qt1-f195.google.com with SMTP id l12so24375707qtf.8 for ; Tue, 29 Jan 2019 16:00:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ieee.org; s=google; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=gPupCx+eToi2yxGwfvJ29JkIdIqdaSe8u+aigE2D73I=; b=GEYnOFRvzgFDXYDE+UeAyx9l1XV0hM55bs31d56/OnT04pftEQU5g/06R5XZqA8Tiu 0oFMo+POwxZC/hKtXd95khKZDBZIhwDzgquzMwgtRL1RCdHgcAc5PlCD3Q3w0s9sExGt e4sULyRLQ38fIMcG2P+IIumndgsNvPpM7Gtf8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=gPupCx+eToi2yxGwfvJ29JkIdIqdaSe8u+aigE2D73I=; b=qthWjSR3Chhm4YQ+aj+HVHGtaWi45KI3WwUpZpOsPEkI0g96IQdmeIA6RGcJWh9ilr 4+vuGjzGYuDv86lrRFyh7zMkWa/zm9xGvgqqDhyS0R5f8TUIUtHcczsfcT5j8cUFYYk/ J+xDHZ3NS81qqANej3GRLuWrDoSemE8bgTucP/9bdBUdOU9YN5r4C/r5dxsv8MUMRP/d 6M+fBcv0XaxuWtlADIOodJg58x9QUxSqmVyKy2imqu99hvNfKX181DgusCIaheSXnQhg ihkkI57jFPcpQP7a4v58LzhgIztHESxwE2dSjMPPRpp/8QjGhw27ETv/WNjb52mnUTQd 3vtA== X-Gm-Message-State: AJcUukfU/gbjoDVirCwu2xc2SfLyVXA+ufy/JUo9ERk3Q+KNwQmqxuFz xR7It/hsWNQq+IaG+Y2APr2aHX7z8C4= X-Google-Smtp-Source: ALg8bN7LSuFoDf6JMd3536Oik79QtYY3Hyx1LMijMBG4x8K4LBydb9tGxkl3E+v5oVXe8uxv+Qsy/Q== X-Received: by 2002:a0c:eb41:: with SMTP id c1mr27396181qvq.211.1548806431086; Tue, 29 Jan 2019 16:00:31 -0800 (PST) Received: from [192.168.1.190] (pool-108-15-23-247.bltmmd.fios.verizon.net. [108.15.23.247]) by smtp.gmail.com with ESMTPSA id y2sm91589305qtb.88.2019.01.29.16.00.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 Jan 2019 16:00:30 -0800 (PST) Subject: Re: [PATCH] yet another little patch To: Russell Coker , "selinux-refpolicy@vger.kernel.org" References: <20190128084840.GB5441@xev> From: Chris PeBenito Message-ID: <6c17065e-9cf3-2935-efab-8502705cc590@ieee.org> Date: Tue, 29 Jan 2019 18:47:06 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: <20190128084840.GB5441@xev> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: selinux-refpolicy-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: selinux-refpolicy@vger.kernel.org On 1/28/19 3:48 AM, Russell Coker wrote: > 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) Everything but this hunk is merged, as it is not obvious to me. Given the other networking rules, I would have guessed something like tcp_connect to all ports. I can't infer the relevance of tor by itself. > 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(` > -- Chris PeBenito