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
F111303017: D32821.id97952.diff
Sun, Mar 2, 2:11 AM
F111299130: D32821.diff
Sun, Mar 2, 1:03 AM
Unknown Object (File)
Sun, Feb 23, 11:58 AM
Unknown Object (File)
Sun, Feb 23, 6:39 AM
Unknown Object (File)
Fri, Feb 14, 7:44 AM
Unknown Object (File)
Fri, Feb 14, 7:35 AM
Unknown Object (File)
Fri, Feb 14, 7:25 AM
Unknown Object (File)
Tue, Feb 11, 2:46 AM
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