dcavalca / rpms / util-linux

Forked from rpms/util-linux 2 years ago
Clone
Karel Zak 18b0e4
From 3ceddbb1238e13a51efbe23119c885568e820e69 Mon Sep 17 00:00:00 2001
Karel Zak 18b0e4
From: Karel Zak <kzak@redhat.com>
Karel Zak 18b0e4
Date: Thu, 2 Jun 2022 16:55:49 +0200
Karel Zak 18b0e4
Subject: uuidd: allow AF_INET in systemd service
Karel Zak 18b0e4
Karel Zak 18b0e4
libuuid uses
Karel Zak 18b0e4
Karel Zak 18b0e4
	socket(AF_INET, SOCK_DGRAM, IPPROTO_IP)
Karel Zak 18b0e4
Karel Zak 18b0e4
to get MAC address for time based UUIDs, but there is
Karel Zak 18b0e4
Karel Zak 18b0e4
	RestrictAddressFamilies=AF_UNIX
Karel Zak 18b0e4
Karel Zak 18b0e4
in uuidd service file ...
Karel Zak 18b0e4
Karel Zak 18b0e4
Fixes: https://github.com/util-linux/util-linux/issues/1704
Karel Zak 18b0e4
Upstream: http://github.com/util-linux/util-linux/commit/304b4dc4936b115ca33af5325c3b04d0997c1353
Karel Zak 18b0e4
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=2092943
Karel Zak 18b0e4
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak 18b0e4
---
Karel Zak 18b0e4
 misc-utils/uuidd.service.in | 1 -
Karel Zak 18b0e4
 1 file changed, 1 deletion(-)
Karel Zak 18b0e4
Karel Zak 18b0e4
diff --git a/misc-utils/uuidd.service.in b/misc-utils/uuidd.service.in
Karel Zak 18b0e4
index e64ca59b5..64580287f 100644
Karel Zak 18b0e4
--- a/misc-utils/uuidd.service.in
Karel Zak 18b0e4
+++ b/misc-utils/uuidd.service.in
Karel Zak 18b0e4
@@ -16,7 +16,6 @@ PrivateUsers=yes
Karel Zak 18b0e4
 ProtectKernelTunables=yes
Karel Zak 18b0e4
 ProtectKernelModules=yes
Karel Zak 18b0e4
 ProtectControlGroups=yes
Karel Zak 18b0e4
-RestrictAddressFamilies=AF_UNIX
Karel Zak 18b0e4
 MemoryDenyWriteExecute=yes
Karel Zak 18b0e4
 ReadWritePaths=/var/lib/libuuid/
Karel Zak 18b0e4
 SystemCallFilter=@default @file-system @basic-io @system-service @signal @io-event @network-io
Karel Zak 18b0e4
-- 
Karel Zak 18b0e4
2.36.1
Karel Zak 18b0e4