From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 00CB5138334 for ; Mon, 16 Dec 2019 17:48:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 06365E096B; Mon, 16 Dec 2019 17:48:33 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E14EEE096D for ; Mon, 16 Dec 2019 17:48:32 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0A18E34D8AE for ; Mon, 16 Dec 2019 17:48:32 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 03A64998 for ; Mon, 16 Dec 2019 17:48:28 +0000 (UTC) From: "Jason Zaman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jason Zaman" Message-ID: <1576501991.9074e45e4da9e23b5e161fe4da909672001f4cb0.perfinion@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/system/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/system/init.if policy/modules/system/unconfined.te X-VCS-Directories: policy/modules/system/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: 9074e45e4da9e23b5e161fe4da909672001f4cb0 X-VCS-Branch: master Date: Mon, 16 Dec 2019 17:48:28 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 4d95438b-af48-40bb-90eb-0d51cd408618 X-Archives-Hash: ec2997fddbc50a2c803fac734a22f992 commit: 9074e45e4da9e23b5e161fe4da909672001f4cb0 Author: Chris PeBenito linux microsoft com> AuthorDate: Fri Nov 22 21:39:35 2019 +0000 Commit: Jason Zaman gentoo org> CommitDate: Mon Dec 16 13:13:11 2019 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=9074e45e unconfined: Fix systemd --user rule. Use the full init_pgm_spec_user_daemon_domain() to ensure correct permissions. Signed-off-by: Chris PeBenito linux.microsoft.com> Signed-off-by: Jason Zaman gentoo.org> policy/modules/system/init.if | 7 +------ policy/modules/system/unconfined.te | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/policy/modules/system/init.if b/policy/modules/system/init.if index 3465641f..9425c651 100644 --- a/policy/modules/system/init.if +++ b/policy/modules/system/init.if @@ -672,12 +672,7 @@ interface(`init_domtrans',` ## ## ## -## Domain allowed to transition. -## -## -## -## -## New domain. +## The type to be used as a systemd --user domain. ## ## # diff --git a/policy/modules/system/unconfined.te b/policy/modules/system/unconfined.te index 62b9eb17..2bb15219 100644 --- a/policy/modules/system/unconfined.te +++ b/policy/modules/system/unconfined.te @@ -62,7 +62,7 @@ ifdef(`init_systemd',` # for systemd-analyze init_service_status(unconfined_t) # for systemd --user: - init_pgm_entrypoint(unconfined_t) + init_pgm_spec_user_daemon_domain(unconfined_t) optional_policy(` systemd_dbus_chat_resolved(unconfined_t)