HomeFreeBSD

If S_IFIFO is passed to mknod(2), invoke kern_mkfifoat(9) to create a
rS179936Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

If S_IFIFO is passed to mknod(2), invoke kern_mkfifoat(9) to create a
FIFO, as required by SUSv3. No specific privilege check is performed
in this case, as FIFOs may be created by unprivileged processes
(subject to the normal file system name space restrictions that may be
in place).

Unlike the Apple implementation, we reject requests to create a FIFO
using mknod(2) if there is a non-zero dev argument to the system call,
which is permitted by the Open Group specification ("... undefined
..."). We might want to revise this if we find it causes
compatibility problems for applications in practice.

PR: kern/74242, kern/68459
Obtained from: Apple, Inc.
MFC after: 3 weeks

Details

Provenance
rwatsonAuthored on
Parents
rS179935: Use strdup() instead of static buffer allocation to avoid 128 bytes limit
Branches
Unknown
Tags
Unknown

Event Timeline