From: Lennart Poettering Date: Mon, 30 Jun 2014 23:13:50 +0000 (+0200) Subject: man: add sections about file node types and write access to file-hierarchy(7) X-Git-Tag: v215~83 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=c65b503d01dd61aba6ca0689b1ab151b3279cda6;p=elogind.git man: add sections about file node types and write access to file-hierarchy(7) --- diff --git a/man/file-hierarchy.xml b/man/file-hierarchy.xml index fb72693c0..c85df72a1 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