]> git.ipfire.org Git - thirdparty/util-linux.git/commit
uuidd: fix open/lock state issue
authorKarel Zak <kzak@redhat.com>
Mon, 24 Jan 2022 13:08:08 +0000 (14:08 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 24 Jan 2022 13:08:08 +0000 (14:08 +0100)
commitf27876f9c1056bf41fd940d5c4990b4277e0024f
treef9a434dda8e4dc3bf015c1b485ccb8862f86317e
parent57202f5713afa2af20ffbb6ab5331481d0396f8d
uuidd: fix open/lock state issue

* warn on open/lock state issue
* remove ProtectSystem=strict from systemd service setting, because it
  makes clock state file read-only

  openat(AT_FDCWD, "/var/lib/libuuid/clock.txt",
     O_RDWR|O_CREAT|O_CLOEXEC, 0660) = -1 EROFS (Read-only file system)

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=2040366
Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/uuidd.c
misc-utils/uuidd.service.in