[Bug 259625] fdescfs: file descriptors with O_EXEC give EACCESS when opened
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 259625] fexecve interacts incorrectly with interpreters"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 03 Nov 2021 11:14:58 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259625 --- Comment #5 from Konstantin Belousov <kib@FreeBSD.org> --- (In reply to Drew DeVault from comment #4) This example might be surprising initially, but it is not. Issue is that O_RDONLY is zero, so O_EXEC | O_RDONLY == O_EXEC. Then, when you try to open fdescfd node, it checks for READ permission (since O_RDONLY is zero and no permissions implies READ), but sees that fd is opened for EXEC only. -- You are receiving this mail because: You are the assignee for the bug.