Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP4:Update
python3-libmount.26136
util-linux-uuidd-prevent-root-owning.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File util-linux-uuidd-prevent-root-owning.patch of Package python3-libmount.26136
Prevent root owning of /var/lib/libuuid/clock.txt Just after the installation, calling uuid_generate_time() or uuid_generate_time_safe() as root may create root owned /var/lib/libuuid/clock.txt, which makes it unusable for uuidd. To reproduce: zypper rm uuidd zypper in uuidd uuidgen --time ls -l /var/lib/libuuid/clock.txt rcuuidd start ls -l /var/lib/libuuid/clock.txt Before: -rw-rw---- 1 root root 56 Mar 4 17:24 /var/lib/libuuid/clock.txt After (with the patch): -rw-rw---- 1 uuidd uuidd 56 Mar 4 17:30 /var/lib/libuuid/clock.txt Index: util-linux-2.37.2/misc-utils/uuidd.service.in =================================================================== --- util-linux-2.37.2.orig/misc-utils/uuidd.service.in +++ util-linux-2.37.2/misc-utils/uuidd.service.in @@ -4,6 +4,7 @@ Documentation=man:uuidd(8) Requires=uuidd.socket [Service] +ExecStartPre=+-@CHOWN@ uuidd:uuidd /var/lib/libuuid/clock.txt ExecStart=@usrsbin_execdir@/uuidd --socket-activation Restart=no User=uuidd Index: util-linux-2.37.2/configure.ac =================================================================== --- util-linux-2.37.2.orig/configure.ac +++ util-linux-2.37.2/configure.ac @@ -233,6 +233,8 @@ PKG_INSTALLDIR(['${usrlib_execdir}/pkgco GTK_DOC_CHECK([1.10]) AC_PATH_PROG([XSLTPROC], [xsltproc]) +AC_PATH_PROG([CHOWN], [chown]) + linux_os=no bsd_os=no Index: util-linux-2.37.2/Makefile.am =================================================================== --- util-linux-2.37.2.orig/Makefile.am +++ util-linux-2.37.2/Makefile.am @@ -145,6 +145,7 @@ edit_cmd = sed \ -e 's|@usrsbin_execdir[@]|$(usrsbin_execdir)|g' \ -e 's|@VERSION[@]|$(VERSION)|g' \ -e 's|@ADJTIME_PATH[@]|$(ADJTIME_PATH)|g' \ + -e 's|@CHOWN[@]|$(CHOWN)|g' \ -e 's|@LIBUUID_VERSION[@]|$(LIBUUID_VERSION)|g' \ -e 's|@LIBMOUNT_VERSION[@]|$(LIBMOUNT_VERSION)|g' \ -e 's|@LIBMOUNT_MAJOR_VERSION[@]|$(LIBMOUNT_MAJOR_VERSION)|g' \
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor