Page MenuHomeFreeBSD

fexecve(2): allow O_PATH file descriptors opened without O_EXEC
ClosedPublic

Authored by kib on Nov 3 2021, 1:33 PM.
Tags
None
Referenced Files
F83897038: D32821.diff
Thu, May 16, 3:08 PM
Unknown Object (File)
Tue, May 14, 9:59 AM
Unknown Object (File)
Tue, May 14, 7:47 AM
Unknown Object (File)
Tue, May 14, 7:07 AM
Unknown Object (File)
Tue, May 14, 4:43 AM
Unknown Object (File)
Jan 18 2024, 1:17 PM
Unknown Object (File)
Jan 14 2024, 2:22 PM
Unknown Object (File)
Jan 5 2024, 5:43 PM
Subscribers

Details

Summary

This improves compatibility with Linux.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

kib requested review of this revision.Nov 3 2021, 1:33 PM
markj added inline comments.
sys/kern/kern_exec.c
552
558

Can this logic live in fgetvp_exec()? Note that that function is unused after this change.

This revision is now accepted and ready to land.Nov 3 2021, 2:47 PM
kib marked 2 inline comments as done.

Move O_PATH check into fgetvp_exec().

This revision now requires review to proceed.Nov 3 2021, 3:17 PM
This revision is now accepted and ready to land.Nov 3 2021, 3:41 PM