Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix avc denial for dbus-broker #1434

Merged
merged 2 commits into from
Apr 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/dbus-broker/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ build = "build.rs"
path = "pkg.rs"

[[package.metadata.build-package.external-files]]
url = "https://github.com/bus1/dbus-broker/releases/download/v27/dbus-broker-27.tar.xz"
sha512 = "d3964cd7bc5553924f5786fe1a7f43c4298fa661aa6cde79e98d2aee67ee3e17eb5c689d39228efad905af59296a6ae52485c61d564bb0a35c937573323ea1fb"
url = "https://github.com/bus1/dbus-broker/releases/download/v28/dbus-broker-28.tar.xz"
sha512 = "81a05a3ad2fbc0292a7de0cc719c5946e2d70d0bf91abb2eb9764fdef738a460a0cc988e050d0985ff45009a51677df3f619f4e17c8712df34c85e84826efbee"

[build-dependencies]
glibc = { path = "../glibc" }
Expand Down
2 changes: 1 addition & 1 deletion packages/dbus-broker/dbus-broker.spec
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Name: %{_cross_os}dbus-broker
Version: 27
Version: 28
Release: 1%{?dist}
Summary: D-BUS message broker
License: Apache-2.0
Expand Down
2 changes: 2 additions & 0 deletions packages/selinux-policy/rules.cil
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,10 @@
(allow trusted_s global (systems (manage)))

; dbus-broker implements DBUS and uses SELinux for access control.
; It also queries systemd for job status.
(allow bus_t global (dbus (all)))
(allow bus_t global (security (compute_av)))
(allow bus_t init_t (system (status)))

; wicked needs DBUS for IPC.
(allow network_t bus_t (dbus (all)))
Expand Down