Bug 477198

Summary: Add fchmodat2 syscall on linux
Product: [Developer tools] valgrind Reporter: Mark Wielaard <mark>
Component: generalAssignee: Mark Wielaard <mark>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 3.22 GIT   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Add fchmodat2 syscall on linux

Comment 1 Mark Wielaard 2023-11-18 20:25:13 UTC
Created attachment 163278 [details]
Add fchmodat2 syscall on linux

Initial, untested, patch.
Comment 2 Mark Wielaard 2023-12-02 01:01:27 UTC
Tested on a linux 6.6 kernel (x86_64) and pushed as:

commit 372d09fd9a8d76847c81092ebff71c80fd6c145d
Author: Mark Wielaard <mark@klomp.org>
Date:   Sat Nov 18 21:17:02 2023 +0100

    Add fchmodat2 syscall on linux
    
    fchmodat2 is a new syscall on linux 6.6. It is a variant of fchmodat
    that takes an extra flags argument.
    
    https://bugs.kde.org/show_bug.cgi?id=477198
Comment 3 Mark Wielaard 2023-12-09 21:26:31 UTC
Also added to the VALGRIND_3_22_BRANCH as:

commit a43e62dddcf51ec6578a90c5988a41e856b44b05 (HEAD -> VALGRIND_3_22_BRANCH)
Author: Mark Wielaard <mark@klomp.org>
Date:   Sat Nov 18 21:17:02 2023 +0100

    Add fchmodat2 syscall on linux
    
    fchmodat2 is a new syscall on linux 6.6. It is a variant of fchmodat
    that takes an extra flags argument.
    
    https://bugs.kde.org/show_bug.cgi?id=477198
    
    (cherry picked from commit 372d09fd9a8d76847c81092ebff71c80fd6c145d)