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 02E27138334 for ; Sun, 9 Dec 2018 11:49:02 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D8FFCE0869; Sun, 9 Dec 2018 11:49:00 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 B4711E0869 for ; Sun, 9 Dec 2018 11:49:00 +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 564A1335C8F for ; Sun, 9 Dec 2018 11:48:59 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A02364DF for ; Sun, 9 Dec 2018 11:48:57 +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: <1542538607.e9b51f6d4a82d767b3b7da4c7a6df72a5829e438.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/systemd.if X-VCS-Directories: policy/modules/system/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: e9b51f6d4a82d767b3b7da4c7a6df72a5829e438 X-VCS-Branch: master Date: Sun, 9 Dec 2018 11:48:57 +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: 54f4d157-17d3-4662-9718-fb673dd2939e X-Archives-Hash: af411ccbcbdbabf432f02bb9717a35be commit: e9b51f6d4a82d767b3b7da4c7a6df72a5829e438 Author: Laurent Bigonville bigon be> AuthorDate: Sun Nov 11 12:33:00 2018 +0000 Commit: Jason Zaman gentoo org> CommitDate: Sun Nov 18 10:56:47 2018 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=e9b51f6d Add systemd_dbus_chat_resolved() interface Signed-off-by: Jason Zaman perfinion.com> policy/modules/system/systemd.if | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/policy/modules/system/systemd.if b/policy/modules/system/systemd.if index 34685088..9247924b 100644 --- a/policy/modules/system/systemd.if +++ b/policy/modules/system/systemd.if @@ -753,6 +753,27 @@ interface(`systemd_tmpfilesd_managed',` allow systemd_tmpfiles_t $1:$2 { setattr relabelfrom relabelto create }; ') +######################################## +## +## Send and receive messages from +## systemd resolved over dbus. +## +## +## +## Domain allowed access. +## +## +# +interface(`systemd_dbus_chat_resolved',` + gen_require(` + type systemd_resolved_t; + class dbus send_msg; + ') + + allow $1 systemd_resolved_t:dbus send_msg; + allow systemd_resolved_t $1:dbus send_msg; +') + ####################################### ## ## Allow domain to read resolv.conf file generated by systemd_resolved