Bug 477198 - Add fchmodat2 syscall on linux
Summary: Add fchmodat2 syscall on linux
Status: RESOLVED FIXED
Alias: None
Product: valgrind
Classification: Developer tools
Component: general (show other bugs)
Version: 3.22 GIT
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Mark Wielaard
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-18 17:09 UTC by Mark Wielaard
Modified: 2023-12-09 21:26 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Add fchmodat2 syscall on linux (8.71 KB, text/plain)
2023-11-18 20:25 UTC, Mark Wielaard
Details

Note You need to log in before you can comment on or make changes to this bug.
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)