X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=man%2Ffile-hierarchy.xml;fp=man%2Ffile-hierarchy.xml;h=c85df72a1f4346493f4a8470d420e53f3633b7aa;hp=fb72693c0535d22e27b141e949f93c9773582eb8;hb=c65b503d01dd61aba6ca0689b1ab151b3279cda6;hpb=ee43f49b7889b546fe05a141459d7f1ddf129bd4 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