All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Whitelist libuuid clock file
@ 2022-01-25 10:17 Stanislav Brabec
  2022-01-25 10:53 ` Karel Zak
  0 siblings, 1 reply; 6+ messages in thread
From: Stanislav Brabec @ 2022-01-25 10:17 UTC (permalink / raw)
  To: util-linux; +Cc: Ali Abdallah

Return back ProtectSystem to strict, and enable access to
/var/lib/libuuid only.

Note: As LIBUUID_CLOCK_FILE does not use @localstatedir@, we use
/var here as well.

Signed-off-by: Ali Abdallah <ali.abdallah@suse.com>
Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>
---
  misc-utils/uuidd.service.in | 2 ++
  1 file changed, 2 insertions(+)

diff --git a/misc-utils/uuidd.service.in b/misc-utils/uuidd.service.in
index 065b4a194..e64ca59b5 100644
--- a/misc-utils/uuidd.service.in
+++ b/misc-utils/uuidd.service.in
@@ -8,6 +8,7 @@ ExecStart=@usrsbin_execdir@/uuidd --socket-activation
  Restart=no
  User=uuidd
  Group=uuidd
+ProtectSystem=strict
  ProtectHome=yes
  PrivateDevices=yes
  PrivateNetwork=yes
@@ -17,6 +18,7 @@ ProtectKernelModules=yes
  ProtectControlGroups=yes
  RestrictAddressFamilies=AF_UNIX
  MemoryDenyWriteExecute=yes
+ReadWritePaths=/var/lib/libuuid/
  SystemCallFilter=@default @file-system @basic-io @system-service 
@signal @io-event @network-io

  [Install]
-- 
2.34.1

-- 
Best Regards / S pozdravem,

Stanislav Brabec
software developer
---------------------------------------------------------------------
SUSE LINUX, s. r. o.                         e-mail: sbrabec@suse.com
Křižíkova 148/34 (Corso IIa)                    tel: +420 284 084 060
186 00 Praha 8-Karlín                          fax:  +420 284 084 001
Czech Republic                                    http://www.suse.cz/
PGP: 830B 40D5 9E05 35D8 5E27 6FA3 717C 209F A04F CD76


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

end of thread, other threads:[~2022-01-26 21:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-25 10:17 [PATCH] Whitelist libuuid clock file Stanislav Brabec
2022-01-25 10:53 ` Karel Zak
2022-01-25 11:37   ` Stanislav Brabec
2022-01-25 14:30     ` Karel Zak
2022-01-26 15:07       ` Stanislav Brabec
2022-01-26 21:24         ` Karel Zak

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.