Bug 1810141

Summary: glibc: Fix fchmodat implementing, using real syscall & /proc fallback
Product: Red Hat Enterprise Linux 8 Reporter: Florian Weimer <fweimer>
Component: glibcAssignee: glibc team <glibc-bugzilla>
Status: CLOSED DEFERRED QA Contact: qe-baseos-tools-bugs
Severity: medium Docs Contact:
Priority: unspecified    
Version: 8.3CC: ashankar, codonell, dj, fweimer, mnewsome, pfrankli, sipoyare
Target Milestone: pre-dev-freezeKeywords: Patch, Triaged
Target Release: 8.3   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1802018 Environment:
Last Closed: 2020-07-13 13:50:19 UTC Type: Enhancement
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1802018, 1856394    
Bug Blocks:    

Description Florian Weimer 2020-03-04 15:36:10 UTC
+++ This bug was initially created as a clone of Bug #1802018 +++

gnulib has added emulation of lchmod, fchmodat based on /proc, and glibc upstream will do so as well. We need to integrate the glibc changes into Fedora so that GNU applications can be built properly.

Related commits:

173ec37bb2af6e30892a141d74d42db5957ddd36	support: Add the xlstat function
f6233ab412c3bebebacf65745e775e01506dd58d	Linux: Add io/tst-o_path-locks test
6b89c385d8bd0700b25bac2c2d0bebe68d5cc05d	io: Implement lchmod using fchmodat [BZ #14578]
752dd17443e55a4535cb9e6baa4e550ede383540	Linux: Emulate fchmodat with AT_SYMLINK_NOFOLLOW using O_PATH [BZ #14578]
47136d6cc38c425b150dda83989303ac55f6443c	io: Add io/tst-lchmod covering lchmod and fchmodat
fa185f0d4529c6d70f690306f431ca23662b9138	<fd_to_filename.h>: Add type safety and port to Hurd
a492b1e5ef7ab50c6fdd4e4e9879ea5569ab0a6c	Linux: Work around kernel bugs in chmod on /proc/self/fd paths [BZ #14578]

Plus one more to actually use fd_to_filename.h.

Comment 3 Florian Weimer 2020-07-13 13:50:19 UTC
I pinged the old fchmodat4 submission to the kernel, but did not receive any reply. This is effectively blocked until we get the system call in the kernel.