Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp847616ybp; Fri, 11 Oct 2019 05:25:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqyBm9XVeiWZ+WxdrCMnBymiknUu8FjddTYcxjaD9T3AMmZlEc23hlFl3qXL4Y6L5Wjvk2v3 X-Received: by 2002:a05:6402:1507:: with SMTP id f7mr13340594edw.68.1570796702616; Fri, 11 Oct 2019 05:25:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570796702; cv=none; d=google.com; s=arc-20160816; b=UD6I9Xl5WB/mV4KDttZisaY8FzqpCYN8HM+Kv1p29Mr002ndhWkOol0WPoAEHSQ38C xdw6qqcW2kpZhUFXIAgpjV/9cbVTB4UY/An51VnUoX24n5igoPptiJr/iG1yB/umN+8+ GMc8HHqwalMwc8HbgIPVsPz0NAAbTiLFIH15wPSVrstOuguzDReJwCXVC/UnRem0jVZD Xsgi2SP6Gp8eVBc+Nb7LH6d2rjA8YvE5UsLsg31He7egJWjsV5cSpaDktzQuhbav7yUE gTb7790uleTDxv9PY9XPUzGnpoiLaq3Rrp00ku/KrSTWeEe4WKGjuwyaECVeOn4GR5h7 tepw== 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:to:from:dkim-signature; bh=iXC4BJpD8k+yc9bMbnyJpO85JxXxVt3hs7dm4Ss7Cj4=; b=piv7Zc59b86UZGnftMoF+P8SwTMfwRNrq5rtZb5ezE/u1KsnWnmc1LMRRd8mcVFAaK muh1+KlV4Xr8xt+d7eqGCjWOZq/Pr6D9evuJo/LPK9xfTQOOmqxjTS7kV2KBk86S8lqm ZdJ6iqCmE4i1qFostkIuPcTy84bFPy4vZLvXLILnEBn07xiFCfe6gsi1omZJJnoNMKIk Y34alLdhKZt8D3W9EMceahj3Yi+FiOa5Y/IT0uWiZNlpNgjkm8i9O93ujkFOwzx+c/3t smsS3DFLUA6g80oNqPB17y0+8uz5+U3wbuA1H/9vktdT7IjWvYnylPfkeSrKg8oj7Iq6 Cvsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bigon.be header.s=key1 header.b=npbt7lFw; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j12si5130303ejx.282.2019.10.11.05.24.59; Fri, 11 Oct 2019 05:25:02 -0700 (PDT) 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=@bigon.be header.s=key1 header.b=npbt7lFw; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727958AbfJKMYU (ORCPT + 11 others); Fri, 11 Oct 2019 08:24:20 -0400 Received: from ithil.bigon.be ([163.172.57.153]:38262 "EHLO ithil.bigon.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727950AbfJKMYU (ORCPT ); Fri, 11 Oct 2019 08:24:20 -0400 Received: from localhost (localhost [IPv6:::1]) by ithil.bigon.be (Postfix) with ESMTP id 3D79B201FA for ; Fri, 11 Oct 2019 14:24:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bigon.be; h= content-transfer-encoding:mime-version:x-mailer:message-id:date :date:subject:subject:from:from:received:received:received; s= key1; t=1570796658; x=1572611059; bh=dy7bMlCXmirjJoJNKcRJWjKAg29 gxnPRkw4RFJnI4T0=; b=npbt7lFwNbsc5reIMPxLrXlQ33vkbH+wTRiKkiAAlH+ DmmlnHAWMzvw4TO0mzdlKQ5UXbIRgP1uVUXhN1EDRWIXavjhFLYUXEM4+sGmZ2xs tQI+CZzIoN9wLqCy1XVcsZPLKd3yWqdhYr2+TKovH8IXQEC3Vq0RlbA0uYczPJkE = Received: from ithil.bigon.be ([IPv6:::1]) by localhost (ithil.bigon.be [IPv6:::1]) (amavisd-new, port 10026) with ESMTP id onhA1OrX6wAs for ; Fri, 11 Oct 2019 14:24:18 +0200 (CEST) Received: from edoras.bigon.be (unknown [193.53.238.198]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: bigon@bigon.be) by ithil.bigon.be (Postfix) with ESMTPSA for ; Fri, 11 Oct 2019 14:24:18 +0200 (CEST) Received: from bigon (uid 1000) (envelope-from bigon@bigon.be) id 1ffe9 by edoras.bigon.be (DragonFly Mail Agent v0.12); Fri, 11 Oct 2019 14:24:16 +0200 From: Laurent Bigonville To: selinux-refpolicy@vger.kernel.org Subject: [PATCH 01/10] Allow the systemd dbus-daemon to talk to systemd Date: Fri, 11 Oct 2019 14:24:07 +0200 Message-Id: <20191011122416.14651-1-bigon@debian.org> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: selinux-refpolicy-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: selinux-refpolicy@vger.kernel.org From: Laurent Bigonville Recent versions of dbus are started as Type=notify type=AVC msg=audit(03/10/19 15:32:40.347:64) : avc: denied { write } for pid=809 comm=dbus-daemon name=notify dev="tmpfs" ino=1751 scontext=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:init_runtime_t:s0 tclass=sock_file permissive=1 Signed-off-by: Laurent Bigonville --- policy/modules/services/dbus.te | 3 +++ 1 file changed, 3 insertions(+) diff --git a/policy/modules/services/dbus.te b/policy/modules/services/dbus.te index bb3dac7d..58b03757 100644 --- a/policy/modules/services/dbus.te +++ b/policy/modules/services/dbus.te @@ -159,6 +159,9 @@ ifdef(`init_systemd', ` # for /run/systemd/dynamic-uid/ init_list_pids(system_dbusd_t) init_read_runtime_symlinks(system_dbusd_t) + + # Recent versions of dbus are started as Type=notify + init_write_runtime_socket(system_dbusd_t) ') optional_policy(` -- 2.23.0