Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5560337ybv; Tue, 11 Feb 2020 18:39:03 -0800 (PST) X-Google-Smtp-Source: APXvYqw32cYC6xSJAr+E4byCn6AGiXgC0zi8hqMSGDHLwcZhIUtX0/+5LVrQ9KS5pbg1bECxaom/ X-Received: by 2002:aca:c691:: with SMTP id w139mr4942272oif.17.1581475142954; Tue, 11 Feb 2020 18:39:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581475142; cv=none; d=google.com; s=arc-20160816; b=e/39kxVeuZQP3ocvzIHlXn068hz4luCmou6u3/wm2OoUuUOoK5DrE4dAJql6Nwf5qz 5J07yQAnfuytdno4GMdB49ecoPjRaFPe6QHUlt1leYpHoAvMFak+G5ai2NKTd5uyjkEU b+X3v0Wz06fmk4dMfpYj6r9GkIULnCkO9I2M3SK+PWa2nmlF93j6ERKsj7dKiN0uMwj8 ZMn1LisvdKgbia7J8zVm3gN/RNVmNHDKonvBS8qxWZM9waRrlD1JEjZBWf/9RlwTsxki vwXgeNJ+9zALNDkuGFwwLcXXd4Cmqf+E/WIFSbVkL/6na9srms+OKmK6GqNHt4BSNASh 0hrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:reply-to:to:from:dkim-signature; bh=g8wTEmPQhMjy1m/4yFw44oa3cSsQuPtO0VwfrZIl4Qk=; b=nouTBTFc5LQVzZFUFDzk11HeJZhXYR9vgCokME0xri4lX08C9bHYUEM+xguJW5fOBW cu9puxhGLK2x/K6KGJevNh51Hoyz45hbCC3vRMC62K7rC8QMZxzGpKJdFLzh3Bf5b+Wu xitvvfLTM84wvUDbd3nh6b0RnOvgzscbM3sgj6SSHJMM0GD6GMW+Y5vImTtYbpaye5lt KfD+GqQS6+Tp/pZlt6P6A9gveVRJXcMGbnQq7l/swTy711TtAwPp4hxdaBrkwFuOkDUL EXQBHbuvOEvA3gAxPPPtvLsNOcXRfMzNJPyRdSj504sbTxtukMpR0gOkgkJM4UPKWKju EgvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@coker.com.au header.s=2008 header.b=I3wuy+oo; spf=pass (google.com: best guess record for domain of selinux-refpolicy-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=selinux-refpolicy-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=coker.com.au Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r21si2998744otd.135.2020.02.11.18.38.59; Tue, 11 Feb 2020 18:39:02 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of selinux-refpolicy-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@coker.com.au header.s=2008 header.b=I3wuy+oo; spf=pass (google.com: best guess record for domain of selinux-refpolicy-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=selinux-refpolicy-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=coker.com.au Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727658AbgBLCiy (ORCPT + 13 others); Tue, 11 Feb 2020 21:38:54 -0500 Received: from smtp.sws.net.au ([46.4.88.250]:44238 "EHLO smtp.sws.net.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727609AbgBLCiy (ORCPT ); Tue, 11 Feb 2020 21:38:54 -0500 Received: from xev.coker.com.au (localhost [127.0.0.1]) by smtp.sws.net.au (Postfix) with ESMTP id 9E8C1EDB8 for ; Wed, 12 Feb 2020 13:38:52 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=coker.com.au; s=2008; t=1581475132; bh=g8wTEmPQhMjy1m/4yFw44oa3cSsQuPtO0VwfrZIl4Qk=; l=2292; h=From:To:Reply-To:Subject:Date:From; b=I3wuy+oodDuqih86RU0jI/Zeurn+zRc+2AtCYA0FdLf3/96Y36397Ta6G+D7a1Ofd Z2VLF+hl1CprOlg91Of10jiHHUG1abW4jKhh6YzVtazalONdSbsxe4/CdQUzAReZLD rc1AGR7Ir8vYkHPf1okdDaK/sMlxCiIiERUUwIz0= Received: by xev.coker.com.au (Postfix, from userid 1001) id 6424FF2C813; Wed, 12 Feb 2020 13:38:47 +1100 (AEDT) From: Russell Coker To: "selinux-refpolicy@vger.kernel.org" Reply-To: russell@coker.com.au Subject: pulseaudio patch Date: Wed, 12 Feb 2020 13:38:47 +1100 Message-ID: <1995964.CuLPjsHtsC@xev> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="nextPart2383410.TjLgUERFZe" Content-Transfer-Encoding: 7Bit Sender: selinux-refpolicy-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: selinux-refpolicy@vger.kernel.org This is a multi-part message in MIME format. --nextPart2383410.TjLgUERFZe Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" The attached patch has a few small changes needed for pulseaudio on systemd. -- My Main Blog http://etbe.coker.com.au/ My Documents Blog http://doc.coker.com.au/ --nextPart2383410.TjLgUERFZe Content-Disposition: attachment; filename="pulseaudio.diff" Content-Transfer-Encoding: 7Bit Content-Type: text/x-patch; charset="UTF-8"; name="pulseaudio.diff" Index: refpolicy-2.20200209/policy/modules/apps/pulseaudio.te =================================================================== --- refpolicy-2.20200209.orig/policy/modules/apps/pulseaudio.te +++ refpolicy-2.20200209/policy/modules/apps/pulseaudio.te @@ -92,6 +92,8 @@ files_pid_filetrans(pulseaudio_t, pulsea manage_dirs_pattern(pulseaudio_t, pulseaudio_xdg_config_t, pulseaudio_xdg_config_t) manage_files_pattern(pulseaudio_t, pulseaudio_xdg_config_t, pulseaudio_xdg_config_t) +allow pulseaudio_t pulseaudio_xdg_config_t:file map; + xdg_config_filetrans(pulseaudio_t, pulseaudio_xdg_config_t, dir, "pulse") allow pulseaudio_t pulseaudio_client:process signull; @@ -146,7 +148,7 @@ miscfiles_read_localization(pulseaudio_t seutil_read_config(pulseaudio_t) -userdom_read_user_tmpfs_files(pulseaudio_t) +userdom_rw_user_tmpfs_files(pulseaudio_t) userdom_map_user_tmpfs_files(pulseaudio_t) userdom_delete_user_tmpfs_files(pulseaudio_t) userdom_search_user_home_dirs(pulseaudio_t) @@ -155,6 +157,7 @@ userdom_search_user_home_content(pulseau userdom_manage_user_tmp_dirs(pulseaudio_t) userdom_manage_user_tmp_files(pulseaudio_t) userdom_manage_user_tmp_sockets(pulseaudio_t) +userdom_write_all_user_runtime_named_sockets(pulseaudio_t) tunable_policy(`pulseaudio_execmem',` allow pulseaudio_t self:process execmem; @@ -224,6 +227,13 @@ optional_policy(` ') optional_policy(` + # for /run/systemd/seats and /run/systemd/sessions + systemd_read_logind_sessions_files(pulseaudio_t) + # for /run/systemd/users/$PID + systemd_read_logind_pids(pulseaudio_t) +') + +optional_policy(` udev_read_pid_files(pulseaudio_t) udev_read_state(pulseaudio_t) udev_read_db(pulseaudio_t) --nextPart2383410.TjLgUERFZe--