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)
Dec 13 2024, 2:53 PM
Unknown Object (File)
Dec 7 2024, 5:40 AM
Unknown Object (File)
Dec 4 2024, 4:05 AM
Unknown Object (File)
Dec 4 2024, 4:05 AM
Unknown Object (File)
Dec 4 2024, 4:04 AM
Unknown Object (File)
Dec 4 2024, 4:04 AM
Unknown Object (File)
Dec 4 2024, 3:45 AM
Unknown Object (File)
Dec 2 2024, 3:42 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