From: Dominick Grift <dominick.grift@defensec.nl>
To: selinux-refpolicy@vger.kernel.org
Subject: Re: [RFC] logging: tidy loose end related to systemd-journald
Date: Sun, 09 Aug 2026 08:49:52 +0200 [thread overview]
Message-ID: <87mruvrdnz.fsf@defensec.nl> (raw)
In-Reply-To: <20260809063442.332167-1-dominick.grift@defensec.nl> (Dominick Grift's message of "Sun, 9 Aug 2026 08:32:45 +0200")
Dominick Grift <dominick.grift@defensec.nl> writes:
> RFC because I was unable to test this.
Turns out that this is atleast incomplete because there are fc specs
that conflict remaining [1] and they indicate that the labeling is
intended to be different. I don't see why according to the fc spec that
content should be devlog_t and how that transition is supposed to
happen.
[1] https://github.com/SELinuxProject/refpolicy/blob/main/policy/modules/system/logging.fc#L78C1-L82C97
>
> Signed-off-by: Dominick Grift <dominick.grift@defensec.nl>
> ---
> policy/modules/system/logging.if | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/policy/modules/system/logging.if b/policy/modules/system/logging.if
> index 3dd2c06c2..6222fed4b 100644
> --- a/policy/modules/system/logging.if
> +++ b/policy/modules/system/logging.if
> @@ -684,8 +684,8 @@ interface(`logging_send_syslog_msg',`
> allow $1 devlog_t:sock_file write_sock_file_perms;
>
> # systemd journal socket is in /run/systemd/journal/dev-log
> + write_sock_files_pattern($1, syslogd_runtime_t, syslogd_runtime_t)
> init_search_run($1)
> - allow $1 syslogd_runtime_t:dir search_dir_perms;
>
> # the type of socket depends on the syslog daemon
> allow $1 syslogd_t:unix_dgram_socket sendto;
--
gpg --auto-key-locate clear,nodefault,wkd --locate-external-keys dominick.grift@defensec.nl
Key fingerprint = FCD2 3660 5D6B 9D27 7FC6 E0FF DA7E 521F 10F6 4098
Dominick Grift
Mastodon: @kcinimod@defensec.nl
next prev parent reply other threads:[~2026-08-09 6:49 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-09 6:32 [RFC] logging: tidy loose end related to systemd-journald Dominick Grift
2026-08-09 6:49 ` Dominick Grift [this message]
2026-08-09 8:08 ` [RFC 2] logging.te: systemd-journald: loose ends Dominick Grift
2026-08-09 10:53 ` Russell Coker
2026-08-09 11:05 ` Dominick Grift
2026-08-09 11:14 ` Russell Coker
2026-08-09 11:35 ` Dominick Grift
2026-08-09 11:39 ` Russell Coker
2026-08-11 12:55 ` Christopher J. PeBenito
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87mruvrdnz.fsf@defensec.nl \
--to=dominick.grift@defensec.nl \
--cc=selinux-refpolicy@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.