Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp542105pxb; Tue, 2 Feb 2021 11:13:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJwl6xloe/b+Q8Wqbp0eeOfN7cMNc/hPcSSDyPQwuj9HYTjEhAnEGHZM5N6wu1dlXlx4V37z X-Received: by 2002:a17:906:55c5:: with SMTP id z5mr1899343ejp.275.1612293209762; Tue, 02 Feb 2021 11:13:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612293209; cv=none; d=google.com; s=arc-20160816; b=zOFOJjXasKhk9vKdYNTtDsiKBcrpIljXpPFMD7QuGDtqWYtd2mB1Ym6Vr9cgbqQ+5a TqYoaQmuG1Y3/usWxaUSOkamba6/w4f9bT4YMv9wasf9YiBbGr6bvlWjkDfRA9e6tBJ0 ClH1vSEJ5nG8nHS9TA76ONkzMmjkQRw5qjPoTEviVNqFtugLNzo78Ew43dBGjlyswzja WXNRa3X8WHrNTXORi9ERryfmJPvbZR2Jc96WsOJ8FREF5mJkw/bpoEt11mCPHLgv4Z46 0X/2SyAJnP5cz9c9kdhrsbxzkbB/PuiJ/qmqNUDtKeaK7BnH6ITLmlniqt7UDh+doqrS VTbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :to:subject:dkim-signature; bh=qMYSc8nxePI9dXpEjSizGM81lnGgortxWrca+5y4q+Q=; b=xgb5mE2xYwGIge9PA+cFPhIVwZlxyCqjd9lCg/lX/KHpEZjCnidCUyKmCSOTJra6Pt RRVisUTflFqSvad6SSRQLxmrmYXjNiyeSIMYVr9QhqnitfwyrY5mNuEUk3DjIkQCKFM6 ma1AKHUPKhDTYkQ/OWI/a2Ql1vVxGNDA1sbALBFCfvxNgbWNh7R3aa9PZmY78P/qYia1 lzC8UpwkVsHpz9wFPEAnGJpnHqLpaLBKNNgR7FbXdd0G2fSaSbkKGR++8IyZhmwwcU9M H7piwa845exiapBqw1osoGtGivLbMyGBJB+1dJbeB2lS8s/N/jMKPj9KrVGH5Z01bucH fflQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ieee.org header.s=google header.b="ceNro2s/"; spf=pass (google.com: domain of selinux-refpolicy-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=selinux-refpolicy-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ieee.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f25si12546859edr.468.2021.02.02.11.13.25; Tue, 02 Feb 2021 11:13:29 -0800 (PST) Received-SPF: pass (google.com: domain of selinux-refpolicy-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ieee.org header.s=google header.b="ceNro2s/"; spf=pass (google.com: domain of selinux-refpolicy-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=selinux-refpolicy-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ieee.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239448AbhBBTL4 (ORCPT + 16 others); Tue, 2 Feb 2021 14:11:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239527AbhBBTGu (ORCPT ); Tue, 2 Feb 2021 14:06:50 -0500 Received: from mail-qt1-x82d.google.com (mail-qt1-x82d.google.com [IPv6:2607:f8b0:4864:20::82d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6CBDFC061352 for ; Tue, 2 Feb 2021 11:03:43 -0800 (PST) Received: by mail-qt1-x82d.google.com with SMTP id c1so15782749qtc.1 for ; Tue, 02 Feb 2021 11:03:43 -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=qMYSc8nxePI9dXpEjSizGM81lnGgortxWrca+5y4q+Q=; b=ceNro2s/R7CIFy5Y/r2VznPkZdHxY8tOOTfKUAmsDXaczF4phx4/4y08R1joOzVUJk vasA24KrUbD058iOdPQpjpA7Oaic/NiPfHeBu6NL2rJfYUJmd/v4ATbKUIT41l/+MUC3 BDV9TtFZk1NtFj66jycmKLrkgoNYFE6SbwELg= 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=qMYSc8nxePI9dXpEjSizGM81lnGgortxWrca+5y4q+Q=; b=jDPh06mbpkakqPsIzgohQR+UdKzHN9XCEaAR77v93Xzd1wJGBN8x6gRRNANjQxo333 x3G+zg+nO3FXBYFTyC2yCRi2ttEGR0cznY8lXWjYzZl2sh/5k/tX917ym8RA883LPfZH 4PurcafDkgOsDJCog2M7VW+FH4mYEO65kfdC27CINs+6oLARD09R++PxjKhDHsiYqfZc y7+f2BAQpTW/kC1QYJhGV/SloR7HKYGRxxjm+OLaot5RidivLVojKXdnOkK23W/42kSE Cp4tuA3gYuwrxgrB3e5R4t7Hm4obqTI6lkJNqZQvRtPGHEjkt2uN0EM/LzyMcSuABhYt qusg== X-Gm-Message-State: AOAM531UX6V0V3k+Wl0ithwSQ/S1tjDIjcjnn61dBeNONJA3MRjfprpp RRsiOJDMW+cwB1ZcQ0QSBGILDjoQ8/lJ8Q== X-Received: by 2002:ac8:100b:: with SMTP id z11mr21452691qti.60.1612292622353; Tue, 02 Feb 2021 11:03:42 -0800 (PST) Received: from fedora.pebenito.net (pool-96-234-173-17.bltmmd.fios.verizon.net. [96.234.173.17]) by smtp.gmail.com with ESMTPSA id x74sm16939906qkb.55.2021.02.02.11.03.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 02 Feb 2021 11:03:41 -0800 (PST) Subject: Re: [PATCH] small misc patches To: Russell Coker , selinux-refpolicy@vger.kernel.org References: From: Chris PeBenito Message-ID: Date: Tue, 2 Feb 2021 13:33:54 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: selinux-refpolicy@vger.kernel.org On 2/2/21 10:04 AM, Russell Coker wrote: > Little patches for apt, bootloader, logrotate, games, and mplayer. > > Signed-off-by: Russell Coker > > Index: refpolicy-2.20210126/policy/modules/admin/apt.fc > =================================================================== > --- refpolicy-2.20210126.orig/policy/modules/admin/apt.fc > +++ refpolicy-2.20210126/policy/modules/admin/apt.fc > @@ -5,6 +5,8 @@ > /usr/bin/apt-shell -- gen_context(system_u:object_r:apt_exec_t,s0) > /usr/bin/aptitude -- gen_context(system_u:object_r:apt_exec_t,s0) > /usr/sbin/update-apt-xapian-index -- gen_context(system_u:object_r:apt_exec_t,s0) > +/usr/share/unattended-upgrades/unattended-upgrade-shutdown -- gen_context(system_u:object_r:apt_exec_t,s0) > +/usr/bin/unattended-upgrade -- gen_context(system_u:object_r:apt_exec_t,s0) > > ifndef(`distro_redhat',` > /usr/sbin/synaptic -- gen_context(system_u:object_r:apt_exec_t,s0) > @@ -23,5 +25,5 @@ ifndef(`distro_redhat',` > /var/lock/aptitude gen_context(system_u:object_r:apt_lock_t,s0) > > /var/log/aptitude.* gen_context(system_u:object_r:apt_var_log_t,s0) > - > +/var/log/unattended-upgrades(/.*) gen_context(system_u:object_r:apt_var_log_t,s0) > /var/log/apt(/.*)? gen_context(system_u:object_r:apt_var_log_t,s0) > Index: refpolicy-2.20210126/policy/modules/admin/apt.te > =================================================================== > --- refpolicy-2.20210126.orig/policy/modules/admin/apt.te > +++ refpolicy-2.20210126/policy/modules/admin/apt.te > @@ -155,6 +155,10 @@ optional_policy(` > ') > > optional_policy(` > + networkmanager_dbus_chat(apt_t) > +') > + > +optional_policy(` > nis_use_ypbind(apt_t) > ') > > @@ -169,5 +173,9 @@ optional_policy(` > ') > > optional_policy(` > + systemd_dbus_chat_logind(apt_t) > +') > + > +optional_policy(` > unconfined_domain(apt_t) > ') > Index: refpolicy-2.20210126/policy/modules/admin/bootloader.te > =================================================================== > --- refpolicy-2.20210126.orig/policy/modules/admin/bootloader.te > +++ refpolicy-2.20210126/policy/modules/admin/bootloader.te > @@ -186,6 +186,9 @@ ifdef(`distro_debian',` > > dpkg_read_db(bootloader_t) > dpkg_rw_pipes(bootloader_t) > + > + apt_use_fds(bootloader_t) > + apt_use_ptys(bootloader_t) > ') > > ifdef(`distro_redhat',` > Index: refpolicy-2.20210126/policy/modules/admin/logrotate.te > =================================================================== > --- refpolicy-2.20210126.orig/policy/modules/admin/logrotate.te > +++ refpolicy-2.20210126/policy/modules/admin/logrotate.te > @@ -121,6 +121,7 @@ logging_send_syslog_msg(logrotate_t) > logging_send_audit_msgs(logrotate_t) > logging_exec_all_logs(logrotate_t) > > +miscfiles_read_generic_certs(logrotate_t) > miscfiles_read_localization(logrotate_t) > > seutil_dontaudit_read_config(logrotate_t) > @@ -242,6 +243,7 @@ optional_policy(` > ') > > optional_policy(` > + samba_domtrans_smbcontrol(logrotate_t) > samba_exec_log(logrotate_t) > ') > > Index: refpolicy-2.20210126/policy/modules/apps/games.te > =================================================================== > --- refpolicy-2.20210126.orig/policy/modules/apps/games.te > +++ refpolicy-2.20210126/policy/modules/apps/games.te > @@ -111,9 +111,11 @@ fs_tmpfs_filetrans(games_t, games_tmpfs_ > > can_exec(games_t, games_exec_t) > > +kernel_read_kernel_sysctls(games_t) > kernel_read_system_state(games_t) > > corecmd_exec_bin(games_t) > +corecmd_exec_shell(games_t) > > corenet_all_recvfrom_netlabel(games_t) > corenet_tcp_sendrecv_generic_if(games_t) > @@ -146,6 +148,7 @@ init_dontaudit_rw_utmp(games_t) > > logging_dontaudit_search_logs(games_t) > > +miscfiles_read_generic_certs(games_t) > miscfiles_read_man_pages(games_t) > miscfiles_read_localization(games_t) > > @@ -162,8 +165,14 @@ tunable_policy(`allow_execmem',` > ') > > optional_policy(` > + alsa_read_config(games_t) > +') > + > +optional_policy(` > dbus_all_session_bus_client(games_t) > dbus_connect_all_session_bus(games_t) > + dbus_read_lib_files(games_t) > + dbus_system_bus_client(games_t) > ') > > optional_policy(` > @@ -175,6 +184,11 @@ optional_policy(` > ') > > optional_policy(` > + xdg_read_config_files(games_t) > + xdg_read_data_files(games_t) > +') > + > +optional_policy(` > xserver_user_x_domain_template(games, games_t, games_tmpfs_t) > xserver_create_xdm_tmp_sockets(games_t) > xserver_read_xdm_lib_files(games_t) > Index: refpolicy-2.20210126/policy/modules/apps/mplayer.if > =================================================================== > --- refpolicy-2.20210126.orig/policy/modules/apps/mplayer.if > +++ refpolicy-2.20210126/policy/modules/apps/mplayer.if > @@ -38,7 +38,7 @@ interface(`mplayer_role',` > domtrans_pattern($2, mencoder_exec_t, mencoder_t) > domtrans_pattern($2, mplayer_exec_t, mplayer_t) > > - allow $2 { mplayer_t mencoder_t }:process { ptrace signal_perms }; > + allow $2 { mplayer_t mencoder_t }:process { getsched ptrace signal_perms }; > ps_process_pattern($2, { mplayer_t mencoder_t }) > > allow $2 mplayer_home_t:dir { manage_dir_perms relabel_dir_perms }; > Index: refpolicy-2.20210126/policy/modules/apps/mplayer.te > =================================================================== > --- refpolicy-2.20210126.orig/policy/modules/apps/mplayer.te > +++ refpolicy-2.20210126/policy/modules/apps/mplayer.te > @@ -119,12 +119,16 @@ tunable_policy(`use_samba_home_dirs',` > fs_manage_cifs_symlinks(mencoder_t) > ') > > +tunable_policy(`xserver_allow_dri',` > + dev_rw_dri(mplayer_t) > +') > + > ######################################## > # > # Mplayer local policy > # > > -allow mplayer_t self:process { signal_perms getsched }; > +allow mplayer_t self:process { signal_perms getsched setsched }; > allow mplayer_t self:fifo_file rw_fifo_file_perms; > allow mplayer_t self:sem create_sem_perms; > allow mplayer_t self:udp_socket create_socket_perms; > @@ -147,6 +151,7 @@ fs_tmpfs_filetrans(mplayer_t, mplayer_tm > kernel_dontaudit_list_unlabeled(mplayer_t) > kernel_dontaudit_getattr_unlabeled_files(mplayer_t) > kernel_dontaudit_read_unlabeled_files(mplayer_t) > +kernel_read_crypto_sysctls(mplayer_t) > kernel_read_system_state(mplayer_t) > kernel_read_kernel_sysctls(mplayer_t) This looks like a duplicate patch. -- Chris PeBenito