|
Revision tags: release/13.4.0-p5, release/13.5.0-p1, release/14.2.0-p3, release/13.5.0, release/14.2.0-p2, release/14.1.0-p8, release/13.4.0-p4, release/14.1.0-p7, release/14.2.0-p1, release/13.4.0-p3, release/14.2.0, release/13.4.0 |
|
| #
f7eb6b13 |
| 27-Aug-2024 |
Jose Luis Duran <[email protected]> |
open(2): Extend EINVAL's description
PR: 281033
(cherry picked from commit 02c23c3b5ac9c9c1115c8b892034bb5d67b05c06)
|
| #
f968e081 |
| 27-Aug-2024 |
Jose Luis Duran <[email protected]> |
open(2): mandoc -T lint
(cherry picked from commit f5a37f8dd319e3007b126b77376e61ad96f44d8b)
|
|
Revision tags: release/14.1.0 |
|
| #
ac4ddd8b |
| 03-Apr-2024 |
Christopher Davidson <[email protected]> |
open.2: remove self-reference
Change .Xr reference to .Fn, which quiets a mandoc warning.
Reviewed by: mhorne MFC after: 3 days Pull Request: https://github.com/freebsd/freebsd-src/pull/1135
(cher
open.2: remove self-reference
Change .Xr reference to .Fn, which quiets a mandoc warning.
Reviewed by: mhorne MFC after: 3 days Pull Request: https://github.com/freebsd/freebsd-src/pull/1135
(cherry picked from commit d3de1bd429bc51fbbcb37fadaf2581461edf848b)
show more ...
|
|
Revision tags: release/13.3.0 |
|
| #
c3c75c14 |
| 26-Jan-2024 |
Ed Maste <[email protected]> |
open: make non-POSIX errno value more apparent
In the errno list, add an explicit note and reference to the note in the STANDARDS section.
When O_NOFOLLOW is specified and the target is a symbolic
open: make non-POSIX errno value more apparent
In the errno list, add an explicit note and reference to the note in the STANDARDS section.
When O_NOFOLLOW is specified and the target is a symbolic link FreeBSD sets errno to a value different than that specified by POSIX. Commit 295159dfa3ed added a note to this effect, but I missed it when reading through the list of errno values.
PR: 214633 Reviewed by: markj Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D43618
(cherry picked from commit ea6a6b63e1fd304e790c8ed7627caf5e3ba52bc7)
show more ...
|
| #
14b7cf92 |
| 29-Jan-2024 |
Konstantin Belousov <[email protected]> |
open(2): describe *at behavior for dirfd opened without O_SEARCH
(cherry picked from commit a570fe4d0dd979ce099374259ffc45d56ae4e471)
|
|
Revision tags: release/14.0.0 |
|
| #
b2c76c41 |
| 16-Aug-2023 |
Warner Losh <[email protected]> |
Remove $FreeBSD$: one-line nroff pattern
Remove /^\.\\"\s*\$FreeBSD\$$\n/
|
| #
1fc174cb |
| 30-May-2023 |
Konstantin Belousov <[email protected]> |
open(2): fix typo
__aLC_aclcheck_fd -> acl_aclcheck_fd
Reported by: Peter Eriksson <[email protected]> Sponsored by: The FreeBSD Foundation MFC after: 1 week
|
| #
7a292504 |
| 29-May-2023 |
Konstantin Belousov <[email protected]> |
__acl_get_fd(2), __acl_aclcheck_fd(2): enable for O_PATH filedescriptors
PR: 271704 Reported by: Peter Eriksson <[email protected]> Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC afte
__acl_get_fd(2), __acl_aclcheck_fd(2): enable for O_PATH filedescriptors
PR: 271704 Reported by: Peter Eriksson <[email protected]> Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D40318
show more ...
|
|
Revision tags: release/13.2.0 |
|
| #
c7a8502b |
| 19-Feb-2023 |
Val Packett <[email protected]> |
open.2: describe O_RESOLVE_BENEATH errors correctly
The behavior is the same as in capability mode, it does not actually return EINVAL for absolute lookups:
openat(AT_FDCWD,"/tmp/test",O_RDONLY
open.2: describe O_RESOLVE_BENEATH errors correctly
The behavior is the same as in capability mode, it does not actually return EINVAL for absolute lookups:
openat(AT_FDCWD,"/tmp/test",O_RDONLY|O_DIRECTORY,00) = 3 (0x3) openat(3,"../../",O_RDONLY|0x800000,00) ERR#93 'Capabilities insufficient' openat(3,"/etc/passwd",O_RDONLY|0x800000,00) ERR#93 'Capabilities insufficient'
Fixes: 1f305be43 ("Document {O,AT}_RESOLVE_BENEATH...") Reviewed by: kib, pauamma (manpages), emaste Sponsored by: https://www.patreon.com/valpackett Pull Request: https://github.com/freebsd/freebsd-src/pull/680 Differential Revision: https://reviews.freebsd.org/D38675
show more ...
|
|
Revision tags: release/12.4.0, release/13.1.0 |
|
| #
bf13db08 |
| 13-Apr-2022 |
Konstantin Belousov <[email protected]> |
Mostly revert a5970a529c2d95271: Make files opened with O_PATH to not block non-forced unmount
Problem is that open(O_PATH) on nullfs -o nocache is broken then, because there is no reference on the
Mostly revert a5970a529c2d95271: Make files opened with O_PATH to not block non-forced unmount
Problem is that open(O_PATH) on nullfs -o nocache is broken then, because there is no reference on the vnode after the open syscall exits.
Reported and tested by: ambrisko Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week
show more ...
|
|
Revision tags: release/12.3.0 |
|
| #
be10c0a9 |
| 03-Nov-2021 |
Konstantin Belousov <[email protected]> |
fexecve(2): allow O_PATH file descriptors opened without O_EXEC
This improves compatibility with Linux.
Noted by: Drew DeVault <[email protected]> Reviewed by: markj Sponsored by: The FreeBSD Foundatio
fexecve(2): allow O_PATH file descriptors opened without O_EXEC
This improves compatibility with Linux.
Noted by: Drew DeVault <[email protected]> Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D32821
show more ...
|
| #
5fb54d2f |
| 09-Oct-2021 |
Konstantin Belousov <[email protected]> |
readlinkat(2): allow O_PATH fd
PR: 258856 Reported by: ashish Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D32390
|
| #
5e7cdf18 |
| 06-May-2021 |
Konstantin Belousov <[email protected]> |
openat(2): add O_EMPTY_PATH
It reopens the passed file descriptor, checking the file backing vnode' current access rights against open mode. In particular, this flag allows to convert file descripto
openat(2): add O_EMPTY_PATH
It reopens the passed file descriptor, checking the file backing vnode' current access rights against open mode. In particular, this flag allows to convert file descriptor opened with O_PATH, into operable file descriptor, assuming permissions allow that.
Reviewed by: markj Tested by: Andrew Walker <[email protected]> Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D30148
show more ...
|
|
Revision tags: release/13.0.0 |
|
| #
bbf7a4e8 |
| 07-Apr-2021 |
Konstantin Belousov <[email protected]> |
O_PATH: allow vnode kevent filter on such files
if VREAD access is checked as allowed during open
Requested by: wulf Reviewed by: markj Tested by: pho Sponsored by: The FreeBSD Foundation MFC after
O_PATH: allow vnode kevent filter on such files
if VREAD access is checked as allowed during open
Requested by: wulf Reviewed by: markj Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D29323
show more ...
|
| #
a5970a52 |
| 03-Apr-2021 |
Konstantin Belousov <[email protected]> |
Make files opened with O_PATH to not block non-forced unmount
by only keeping hold count on the vnode, instead of the use count.
Reviewed by: markj Tested by: pho Sponsored by: The FreeBSD Foundati
Make files opened with O_PATH to not block non-forced unmount
by only keeping hold count on the vnode, instead of the use count.
Reviewed by: markj Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D29323
show more ...
|
| #
8d9ed174 |
| 18-Mar-2021 |
Konstantin Belousov <[email protected]> |
open(2): Implement O_PATH
Reviewed by: markj Tested by: pho Discussed with: walker.aj325_gmail.com, wulf Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews
open(2): Implement O_PATH
Reviewed by: markj Tested by: pho Discussed with: walker.aj325_gmail.com, wulf Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D29323
show more ...
|
| #
20e91ca3 |
| 16-Feb-2021 |
Konstantin Belousov <[email protected]> |
open(2): Remove O_BENEATH and AT_BENEATH
with the reasoning that the flags did not worked properly, and were not shipped in a release.
O_RESOLVE_BENEATH is kept as useful.
Reviewed by: markj Teste
open(2): Remove O_BENEATH and AT_BENEATH
with the reasoning that the flags did not worked properly, and were not shipped in a release.
O_RESOLVE_BENEATH is kept as useful.
Reviewed by: markj Tested by: arichardson, pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D28907
show more ...
|
| #
a5e28403 |
| 07-Jan-2021 |
Thomas Munro <[email protected]> |
open(2): Add O_DSYNC flag.
POSIX O_DSYNC means that writes include an implicit fdatasync(2), just as O_SYNC implies fsync(2).
VOP_WRITE() functions that understand the new IO_DATASYNC flag can act
open(2): Add O_DSYNC flag.
POSIX O_DSYNC means that writes include an implicit fdatasync(2), just as O_SYNC implies fsync(2).
VOP_WRITE() functions that understand the new IO_DATASYNC flag can act accordingly, but we'll still pass down IO_SYNC so that file systems that don't understand it will continue to provide the stronger O_SYNC behaviour.
Flag also applies to fcntl(2).
Reviewed by: kib, delphij Differential Revision: https://reviews.freebsd.org/D25090
show more ...
|
| #
f6d234d8 |
| 19-Dec-2020 |
Gordon Bergling <[email protected]> |
libc: Fix most issues reported by mandoc
- varios "new sentence, new line" warnings - varios "sections out of conventional order" warnings - varios "unusual Xr order" warnings - varios "missing sect
libc: Fix most issues reported by mandoc
- varios "new sentence, new line" warnings - varios "sections out of conventional order" warnings - varios "unusual Xr order" warnings - varios "missing section argument" warnings - varios "no blank before trailing delimiter" warnings - varios "normalizing date format" warnings
MFC after: 1 month
show more ...
|
|
Revision tags: release/12.2.0 |
|
| #
1f305be4 |
| 22-Sep-2020 |
Konstantin Belousov <[email protected]> |
Document {O,AT}_RESOLVE_BENEATH and new O_BENEATH behavior for relative paths.
PR: 248335 Reviewed by: markj Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revisi
Document {O,AT}_RESOLVE_BENEATH and new O_BENEATH behavior for relative paths.
PR: 248335 Reviewed by: markj Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D25886
show more ...
|
|
Revision tags: release/11.4.0 |
|
| #
e42b0964 |
| 30-Mar-2020 |
John Baldwin <[email protected]> |
Document EINTEGRITY errors for many system calls.
EINTEGRITY was previously documented as a UFS-specific error for mount(2). This documents EINTEGRITY as a filesystem-independent error that may be
Document EINTEGRITY errors for many system calls.
EINTEGRITY was previously documented as a UFS-specific error for mount(2). This documents EINTEGRITY as a filesystem-independent error that may be reported by the backing store of a filesystem.
While here, document EIO as a filesystem-independent error for both mount(2) and posix_fadvise(2). EIO was previously only documented for UFS for mount(2).
Reviewed by: mckusick Suggested by: mckusick MFC after: 2 weeks Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D24168
show more ...
|
| #
6a5abb1e |
| 02-Feb-2020 |
Kyle Evans <[email protected]> |
Provide O_SEARCH
O_SEARCH is defined by POSIX [0] to open a directory for searching, skipping permissions checks on the directory itself after the initial open(). This is close to the semantics we'v
Provide O_SEARCH
O_SEARCH is defined by POSIX [0] to open a directory for searching, skipping permissions checks on the directory itself after the initial open(). This is close to the semantics we've historically applied for O_EXEC on a directory, which is UB according to POSIX. Conveniently, O_SEARCH on a file is also explicitly undefined behavior according to POSIX, so O_EXEC would be a fine choice. The spec goes on to state that O_SEARCH and O_EXEC need not be distinct values, but they're not defined to be the same value.
This was pointed out as an incompatibility with other systems that had made its way into libarchive, which had assumed that O_EXEC was an alias for O_SEARCH.
This defines compatibility O_SEARCH/FSEARCH (equivalent to O_EXEC and FEXEC respectively) and expands our UB for O_EXEC on a directory. O_EXEC on a directory is checked in vn_open_vnode already, so for completeness we add a NOEXECCHECK when O_SEARCH has been specified on the top-level fd and do not re-check that when descending in namei.
[0] https://pubs.opengroup.org/onlinepubs/9699919799/
Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D23247
show more ...
|
|
Revision tags: release/12.1.0 |
|
| #
ab311b7f |
| 28-Sep-2019 |
Warner Losh <[email protected]> |
Revert the mode_t -> int changes and add a warning in the BUGS section instead.
While FreeBSD's implementation of these expect an int inside of libc, that's an implementation detail that we can hide
Revert the mode_t -> int changes and add a warning in the BUGS section instead.
While FreeBSD's implementation of these expect an int inside of libc, that's an implementation detail that we can hide from the user as it's the natural promotion of the current mode_t type and before it is used in the kernel, it's converted back to the narrower type that's the current definition of mode_t. As such, documenting int is at best confusing and at worst misleading. Instead add a note that these args are variadic and as such calling conventions may differ from non-variadic arguments.
show more ...
|
| #
4470d739 |
| 27-Sep-2019 |
Warner Losh <[email protected]> |
Document varadic args as int, since you can't have short varadic args (they are promoted to ints).
- `mode_t` is `uint16_t` (`sys/sys/_types.h`) - `openat` takes variadic args - variadic args cannot
Document varadic args as int, since you can't have short varadic args (they are promoted to ints).
- `mode_t` is `uint16_t` (`sys/sys/_types.h`) - `openat` takes variadic args - variadic args cannot be 16-bit, and indeed the code uses int - the manpage currently kinda implies the argument is 16-bit by saying `mode_t`
Prompted by Rust things: https://github.com/tailhook/openat/issues/21 Submitted by: Greg V at unrelenting Differential Revision: https://reviews.freebsd.org/D21816
show more ...
|
| #
55894117 |
| 17-Sep-2019 |
Konstantin Belousov <[email protected]> |
Return EISDIR when directory is opened with O_CREAT without O_DIRECTORY.
Reviewed by: bcr (man page), emaste (previous version) PR: 240452 Sponsored by: The FreeBSD Foundation MFC after: 1 week DIff
Return EISDIR when directory is opened with O_CREAT without O_DIRECTORY.
Reviewed by: bcr (man page), emaste (previous version) PR: 240452 Sponsored by: The FreeBSD Foundation MFC after: 1 week DIfferential revision: https://reviews.freebsd.org/D21634
show more ...
|