Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP2:Update
util-linux-systemd.4767
util-linux-libmount-utab-lock.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File util-linux-libmount-utab-lock.patch of Package util-linux-systemd.4767
From ecfeae90a2947fb82e19076131a3ef166374b249 Mon Sep 17 00:00:00 2001 From: Stanislav Brabec <sbrabec@suse.cz> Date: Tue, 11 Apr 2017 16:12:52 +0200 Subject: [PATCH] libmount: Ensure utab.lock mode 644 If utab.lock is created by a process with a restricted umask, utab.lock is created with restricted permissions. It breaks userspace monitor. Ensure that the mode is always 644. Signed-off-by: Stanislav Brabec <sbrabec@suse.cz> --- libmount/src/lock.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libmount/src/lock.c b/libmount/src/lock.c index 06eff1344..f9d0253fb 100644 --- a/libmount/src/lock.c +++ b/libmount/src/lock.c @@ -220,6 +220,11 @@ static int lock_simplelock(struct libmnt_lock *ml) rc = -errno; goto err; } + rc = fchmod(ml->lockfile_fd, S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH); + if (rc < 0) { + rc = -errno; + goto err; + } while (flock(ml->lockfile_fd, LOCK_EX) < 0) { int errsv; -- 2.12.2
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