Skip to content

Commit 8ab732a

Browse files
committed
fix(assets/selinux): allow D-Bus daemon IPC with unconfined services via FIFOs and UNIX sockets
1 parent 0dfa7a5 commit 8ab732a

2 files changed

Lines changed: 21 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
1111

1212
Assets:
1313

14-
* deb-updates: apt-get returns with an error ([#904](https://github.com/Linuxfabrik/monitoring-plugins/issues/904))
14+
* Linuxfabrik Monitoring Plugins [SELinux Type Enforcement Policies](https://github.com/Linuxfabrik/monitoring-plugins/blob/main/assets/selinux/linuxfabrik-monitoring-plugins.te): allow D-Bus daemon IPC with unconfined services via FIFOs and UNIX sockets
15+
1516

1617
Monitoring Plugins:
1718

18-
* fix(openstack-swift-stat): Problem with python-keystoneclient, optimize requirements* ([#900](https://github.com/Linuxfabrik/lib/issues/900))
19-
* fix(valkey-status|redis-status): improve `--ignore-thp` ([#898](https://github.com/Linuxfabrik/lib/issues/898))
19+
* deb-updates: apt-get returns with an error ([#904](https://github.com/Linuxfabrik/monitoring-plugins/issues/904))
20+
* openstack-swift-stat: Problem with python-keystoneclient, optimize requirements* ([#900](https://github.com/Linuxfabrik/lib/issues/900))
21+
* valkey-status|redis-status: improve `--ignore-thp` ([#898](https://github.com/Linuxfabrik/lib/issues/898))
2022

2123

2224
### Changed ("refactor", "chore" etc.)
@@ -25,6 +27,7 @@ Assets:
2527

2628
* To make it easier to integrate with other tools, all RST files have been converted to GitHub-flavoured Markdown.
2729

30+
2831
Monitoring Plugins:
2932

3033
* rocketchat-stats: improve output and docs a little bit
@@ -118,6 +121,7 @@ Build, CI/CD:
118121

119122
* Linux: To save disk space, we *no longer compile* to binaries. The .rpm and .deb packages now ship the source code and require Python 3.9 to be installed on the target host. Sorry for the trouble.
120123

124+
121125
Icinga Director:
122126

123127
* all-the-rest.json: drop legacy commands
@@ -281,6 +285,7 @@ Build, CI/CD:
281285

282286
* compile-one.sh: provide Nuitka's no-deployment-flag ([#864](https://github.com/Linuxfabrik/monitoring-plugins/issues/864))
283287

288+
284289
Monitoring Plugins:
285290

286291
* by-ssh: fix traceback on "permission denied"

assets/selinux/linuxfabrik-monitoring-plugins.te

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,18 @@ require {
66
class file { execute map };
77
}
88

9+
910
#============= chronyc_t ==============
1011
allow chronyc_t nagios_unconfined_plugin_exec_t:file { execute map };
12+
13+
14+
# Errors:
15+
# * "Failed to start transient service unit: Connection reset by peer"
16+
# * "Failed to get properties: Transport endpoint is not connected"
17+
# Caused by (examples):
18+
# * `systemctl --machine myuser@.host --user ... my.service` (`--user` is important here)
19+
# Effects:
20+
# * Allow D-Bus daemon IPC with unconfined services via FIFOs and UNIX sockets.
21+
#============= system_dbusd_t ==============
22+
allow system_dbusd_t unconfined_service_t:fifo_file write;
23+
allow system_dbusd_t unconfined_service_t:unix_stream_socket { read write };

0 commit comments

Comments
 (0)