All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC] logging: tidy loose end related to systemd-journald
@ 2026-08-09  6:32 Dominick Grift
  2026-08-09  6:49 ` Dominick Grift
  2026-08-09  8:08 ` [RFC 2] logging.te: systemd-journald: loose ends Dominick Grift
  0 siblings, 2 replies; 9+ messages in thread
From: Dominick Grift @ 2026-08-09  6:32 UTC (permalink / raw)
  To: selinux-refpolicy; +Cc: Dominick Grift

RFC because I was unable to test this.

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;
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2026-08-11 12:56 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-09  6:32 [RFC] logging: tidy loose end related to systemd-journald Dominick Grift
2026-08-09  6:49 ` Dominick Grift
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

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.