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 3B5A7C43387 for ; Mon, 14 Jan 2019 11:37:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0D552205F4 for ; Mon, 14 Jan 2019 11:37:00 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=coker.com.au header.i=@coker.com.au header.b="XqVBaujo" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726559AbfANLg7 (ORCPT ); Mon, 14 Jan 2019 06:36:59 -0500 Received: from smtp.sws.net.au ([46.4.88.250]:38532 "EHLO smtp.sws.net.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726552AbfANLg7 (ORCPT ); Mon, 14 Jan 2019 06:36:59 -0500 Received: from xev.coker.com.au (localhost [127.0.0.1]) by smtp.sws.net.au (Postfix) with ESMTP id 01418EC78 for ; Mon, 14 Jan 2019 22:36:57 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=coker.com.au; s=2008; t=1547465818; bh=QUnKORylGto7h9U5FoCcr6qNJCVjs7RMJZ23SaMkNOk=; l=834; h=Date:From:To:Subject:From; b=XqVBaujo4E1IfnLVSUpw2U03KIsUXqc9FtgsjGB0Nc2rJsheitc2gKUniWCNK37l2 RSsLt3ZLr4VjYPLOiqXrg/1ZhLHiYudvy6/UnZArL7CWqbfjd7rKwlYpuQuvmg+MO/ sjRxTUDcBkS/43YGhLaQRMsRudXNPVakNulBQSAk= Received: by xev.coker.com.au (Postfix, from userid 1001) id 40B1CC56672; Mon, 14 Jan 2019 22:36:53 +1100 (AEDT) Date: Mon, 14 Jan 2019 22:36:53 +1100 From: Russell Coker To: "selinux-refpolicy@vger.kernel.org" Subject: [PATCH] trivial system cronjob Message-ID: <20190114113653.GA18228@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 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 @@ -439,6 +439,7 @@ optional_policy(` optional_policy(` init_dbus_chat(crond_t) + init_dbus_chat(system_cronjob_t) systemd_dbus_chat_logind(system_cronjob_t) systemd_write_inherited_logind_sessions_pipes(system_cronjob_t) # so cron jobs can restart daemons @@ -518,6 +519,7 @@ corenet_udp_sendrecv_all_ports(system_cr dev_getattr_all_blk_files(system_cronjob_t) dev_getattr_all_chr_files(system_cronjob_t) +dev_getattr_mtrr_dev(system_cronjob_t) dev_read_urand(system_cronjob_t) dev_read_sysfs(system_cronjob_t) # for checkarray to write to sync_action