From: Lennart Poettering Date: Tue, 24 Apr 2018 09:51:21 +0000 (+0200) Subject: man: don't claim we'd set XDG_SEAT and XDG_VTNR as part of service management X-Git-Tag: v239~340^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=46b073298f71034bafd6f007d6b7e796e12153f2;p=thirdparty%2Fsystemd.git man: don't claim we'd set XDG_SEAT and XDG_VTNR as part of service management Previously, reading through systemd.exec(5) one might get the idea that XDG_SEAT and XDG_VTNR are part of the service management logic, but they are not, they are only set if pam_systemd is part of a PAM stack an pam_systemd is used. Hence, let's drop these env vars from the list of env vars, and instead add a paragraph after the list mentioning that pam_systemd might add more systemd-specific env vars if included in the PAM stack for a service that uses PAMName=. --- diff --git a/man/systemd.exec.xml b/man/systemd.exec.xml index 1a01a7f75ff..2d0e6772ce1 100644 --- a/man/systemd.exec.xml +++ b/man/systemd.exec.xml @@ -1972,7 +1972,9 @@ StandardInputData=SWNrIHNpdHplIGRhIHVuJyBlc3NlIEtsb3BzLAp1ZmYgZWVtYWwga2xvcHAncy Variables read from files specified via EnvironmentFile= in the unit file - Variables set by any PAM modules in case PAMName= is in effect, cf. pam_env8 + Variables set by any PAM modules in case PAMName= is in effect, + cf. pam_env8 If the same environment variables are set by multiple of these sources, the later source — according to the @@ -1980,7 +1982,8 @@ StandardInputData=SWNrIHNpdHplIGRhIHVuJyBlc3NlIEtsb3BzLAp1ZmYgZWVtYWwga2xvcHAncy UnsetEnvironment= are removed again from the compiled environment variable list, immediately before it is passed to the executed process. - The following select environment variables are set by the service manager itself for each invoked process: + The following select environment variables are set or propagated by the service manager for each invoked + process: @@ -2031,24 +2034,11 @@ StandardInputData=SWNrIHNpdHplIGRhIHVuJyBlc3NlIEtsb3BzLAp1ZmYgZWVtYWwga2xvcHAncy $XDG_RUNTIME_DIR - The directory for volatile state. Set for the - user systemd instance, and also in user - sessions. See - pam_systemd8. - - - - - $XDG_SESSION_ID - $XDG_SEAT - $XDG_VTNR - - The identifier of the session, the seat name, - and virtual terminal of the session. Set by - pam_systemd8 - for login sessions. $XDG_SEAT and - $XDG_VTNR will only be set when attached to - a seat and a tty. + The directory to use for runtime objects (such as IPC objects) and volatile state. Set for all + services run by the user systemd instance, as well as any system services that use + PAMName= with a PAM stack that includes pam_systemd. See below and + pam_systemd8 for more + information. @@ -2302,6 +2292,11 @@ StandardInputData=SWNrIHNpdHplIGRhIHVuJyBlc3NlIEtsb3BzLAp1ZmYgZWVtYWwga2xvcHAncy + + For system services, when PAMName= is enabled and pam_systemd is part + of the selected PAM stack, additional environment variables defined by systemd may be set for + services. Specifically, these are $XDG_SEAT, $XDG_VTNR, see + pam_systemd8 for details.