diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2021-11-01 15:17:00 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2021-11-01 15:17:00 -0700 |
commit | 2c9bf3e94369e6576ea576eaa82970a8128a59f5 (patch) | |
tree | b13204a1b16c115d3f365fa57a1a842789efe22e /src/connection | |
parent | 05164a19652f9b0e7ed70f7030235b048dc4dad7 (diff) | |
download | consfigurator-2c9bf3e94369e6576ea576eaa82970a8128a59f5.tar.gz |
:SETUID: pass target uid to POSIX-LOGIN-ENVIRONMENT for correct PATH
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'src/connection')
-rw-r--r-- | src/connection/setuid.lisp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/connection/setuid.lisp b/src/connection/setuid.lisp index 59b9e67..6fba4c2 100644 --- a/src/connection/setuid.lisp +++ b/src/connection/setuid.lisp @@ -62,7 +62,7 @@ (format nil "~A:~A" uid gid) (unix-namestring (slot-value connection 'datadir)))) (posix-login-environment - user (connection-connattr connection :remote-home)) + uid user (connection-connattr connection :remote-home)) ;; We are privileged, so this sets the real, effective and saved IDs. (nix:setgid gid) (nix:initgroups user gid) (nix:setuid uid))) |