diff options
author | ayekat <takeya@bluewin.ch> | 2017-11-24 12:44:08 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-12-06 10:19:22 +0100 |
commit | ca23eeb54c7e164cd16a3a0a631b7f1b73584d89 (patch) | |
tree | 93a364959481f20d65c091c8597fe76d0fa90fa8 /src/tmpfiles | |
parent | e783f957181324110d2ee49377c48acc90d735a2 (diff) | |
download | systemd-ca23eeb54c7e164cd16a3a0a631b7f1b73584d89.tar.gz |
tmpfiles: Add specifiers to allow running as user instance
This commit adds specifiers %U, %u and %h for the user UID, name and
home directory, respectively.
[zj: drop untrue copy-pasted comments and move the next text
to the new "Specifiers" section.
Now that #7444 has been merged, also drop the specifier functions.]
Diffstat (limited to 'src/tmpfiles')
-rw-r--r-- | src/tmpfiles/tmpfiles.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c index c49c208078..4a9c55462f 100644 --- a/src/tmpfiles/tmpfiles.c +++ b/src/tmpfiles/tmpfiles.c @@ -174,6 +174,10 @@ static const Specifier specifier_table[] = { { 'b', specifier_boot_id, NULL }, { 'H', specifier_host_name, NULL }, { 'v', specifier_kernel_release, NULL }, + + { 'U', specifier_user_id, NULL }, + { 'u', specifier_user_name, NULL }, + { 'h', specifier_user_home, NULL }, {} }; |