Bug 2124797
Summary: | selinux context is not set for journald LogNamespace directories /run/systemd/journal.<lognamespace>/ by default | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 9 | Reporter: | Ameya Patil <amepatil> |
Component: | selinux-policy | Assignee: | Nikola Knazekova <nknazeko> |
Status: | CLOSED ERRATA | QA Contact: | Milos Malik <mmalik> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 9.0 | CC: | lvrabec, mmalik, nknazeko |
Target Milestone: | rc | Keywords: | Triaged |
Target Release: | 9.2 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | selinux-policy-38.1.6-1.el9 | Doc Type: | Bug Fix |
Doc Text: |
Cause: Systemd-journald introduced feature `LogNamespace` to isolate certain logs.
Consequence: LogNamespaces were created with wrong SELinux context init_var_run_t, instead of syslogd_var_run_t and devlog_t.
Fix: Label systemd-journald feature LogNamespace
Result: LogNamespaces are created with correct SELinux context
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2023-05-09 08:16:34 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Ameya Patil
2022-09-07 06:51:25 UTC
# ls -lZ /run/systemd/journal* /run/systemd/journal: total 4 srw-rw-rw-. 1 root root system_u:object_r:devlog_t:s0 0 Oct 11 09:53 dev-log srw-------. 1 root root system_u:object_r:syslogd_var_run_t:s0 0 Oct 11 09:53 io.systemd.journal -rw-r--r--. 1 root root system_u:object_r:syslogd_var_run_t:s0 8 Oct 11 09:53 kernel-seqnum srw-rw-rw-. 1 root root system_u:object_r:syslogd_var_run_t:s0 0 Oct 11 09:53 socket srw-rw-rw-. 1 root root system_u:object_r:syslogd_var_run_t:s0 0 Oct 11 09:53 stdout drwxr-xr-x. 2 root root system_u:object_r:syslogd_var_run_t:s0 280 Oct 11 10:09 streams /run/systemd/journal.testcase: total 0 srw-rw-rw-. 1 root systemd-journal system_u:object_r:init_var_run_t:s0 0 Oct 11 10:07 dev-log srw-------. 1 root systemd-journal system_u:object_r:init_var_run_t:s0 0 Oct 11 10:07 io.systemd.journal srw-rw-rw-. 1 root systemd-journal system_u:object_r:init_var_run_t:s0 0 Oct 11 10:07 socket srw-rw-rw-. 1 root systemd-journal system_u:object_r:init_var_run_t:s0 0 Oct 11 10:07 stdout # Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (selinux-policy bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2023:2483 |