Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 03 Nov 2021 11:14:58 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 259625] fdescfs: file descriptors with O_EXEC give EACCESS when opened
Message-ID:  <bug-259625-227-Pv07zXnsmL@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-259625-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-259625-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D259625

--- 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 =3D=3D O_EXEC.  Then, when you try t=
o 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.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-259625-227-Pv07zXnsmL>