From c65b503d01dd61aba6ca0689b1ab151b3279cda6 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 1 Jul 2014 01:13:50 +0200 Subject: man: add sections about file node types and write access to file-hierarchy(7) --- man/file-hierarchy.xml | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) (limited to 'man') diff --git a/man/file-hierarchy.xml b/man/file-hierarchy.xml index fb72693c05..c85df72a1f 100644 --- a/man/file-hierarchy.xml +++ b/man/file-hierarchy.xml @@ -614,6 +614,55 @@ + + Unpriviliged Write Access + + Unpriviliged processes generally lack + write access to most of the hierarchy. + + The exceptions for normal users are + /tmp, + /var/tmp, + /dev/shm, as well as the home + directory $HOME (usually found + below /home) and the runtime + directory $XDG_RUNTIME_DIR (found + below /run/user) of the + user, which are all writable. + + For unpriviliged system processes only + /tmp, + /var/tmp and + /dev/shm are writable. If an + unpriviliged system process needs a private, writable + directory in /var or + /run, it is recommended to either + create it before dropping priviliges in the daemon + code, to create it via + tmpfiles.d5 + fragments during boot, or via the + RuntimeDirectory= directive of + service units (see + systemd.unit5 + for details). + + + + Node Types + + Unix file systems support different types of file + nodes, including regular files, directories, symlinks, + character and block device nodes, sockets and FIFOs. + + It is strongly recommended that + /dev is the only location below + which device nodes shall be placed. Similar, + /run shall be the only location + to place sockets and FIFOs. Regular files, + directories and symlinks may be used in all + directories. + + System Packages -- cgit v1.2.3-54-g00ecf