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
Unknown Object (File)
Sep 22 2024, 9:36 PM
Unknown Object (File)
Sep 22 2024, 5:37 PM
Unknown Object (File)
Sep 21 2024, 3:18 PM
Unknown Object (File)
Sep 19 2024, 1:34 PM
Unknown Object (File)
Sep 18 2024, 3:52 AM
Unknown Object (File)
Sep 18 2024, 2:34 AM
Unknown Object (File)
Sep 17 2024, 5:02 AM
Unknown Object (File)
Sep 16 2024, 4:05 PM
Subscribers

Details

Summary

This improves compatibility with Linux.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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