miri icon indicating copy to clipboard operation
miri copied to clipboard

Implement support for `fchmodat(libc::AT_FDCWD, ...)`

Open RalfJung opened this issue 2 weeks ago • 3 comments

fchmodat is used on Linux to implement set_permissions_nofollow. It's one of the last shims we are missing for full std::fs support. :)

We only need the libc::AT_FDCWD variant. The main difference to "fchmod" is the support for flags -- without flags it's exactly the same (and should share the implementation with the existing shim), but there's a AT_SYMLINK_NOFOLLOW flag we should support. This can be implemented on top of the host's set_permissions_nofollow.

RalfJung avatar Nov 20 '26 16:11 RalfJung

@rustbot claim

@programskillforverification you have already claimed 3 other issues. Please give others a chance as well. Do not claim more than 3 issues. You can claim this one if one of the others is done.

RalfJung avatar Nov 21 '26 09:11 RalfJung

i will take this one @rustbot claim

Kaileshwar16 avatar Nov 21 '26 10:11 Kaileshwar16