← BYTES
Unix IPC·Starter·Ref: 15.1.15
Why do filesystem permissions matter on a named pipe (FIFO) or a Unix domain socket's path, in a way they wouldn't for an anonymous pipe?
Have a question about this video? Mention reference 15.1.15 when you contact us.
a.Permissions are irrelevant to IPC of any kind
b.Only the root user can ever create a named pipe, regardless of permission settings
c.Permissions only ever matter for regular data files, never for IPC objects
d.Since a FIFO or a Unix domain socket has an actual path in the filesystem, standard Unix file permissions (owner/group/other read-write-execute bits) determine which other processes/users are even allowed to open and use it -- an anonymous pipe has no path at all, so this concept doesn't apply to it
Because a FIFO or Unix domain socket occupies a real filesystem path (created via mkfifo() or bind(), respectively), the usual owner/group/other permission bits on that path control who may open it for reading/writing -- a genuine, filesystem-enforced access-control layer that an anonymous pipe simply has no equivalent for, since it has no path a permission check could even be applied to.
Find this on YouTube & Instagram
Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:
#BYTES#BYTES15115#UnixIPC