system: Use /run/privileged/bin in search paths.

* gnu/system.scm (operating-system-etc-service):
Substitute /run/privileged/bin for deprecated /run/setuid-programs.
This commit is contained in:
Tobias Geerinckx-Rice 2022-05-29 02:00:00 +02:00
parent d6c9754c56
commit e364d1a494
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -1022,10 +1022,10 @@ the /etc directory."
(plain-file "login.defs" (plain-file "login.defs"
(string-append (string-append
"# Default paths for non-login shells started by su(1).\n" "# Default paths for non-login shells started by su(1).\n"
"ENV_PATH /run/setuid-programs:" "ENV_PATH /run/privileged/bin:"
"/run/current-system/profile/bin:" "/run/current-system/profile/bin:"
"/run/current-system/profile/sbin\n" "/run/current-system/profile/sbin\n"
"ENV_SUPATH /run/setuid-programs:" "ENV_SUPATH /run/privileged/bin:"
"/run/current-system/profile/bin:" "/run/current-system/profile/bin:"
"/run/current-system/profile/sbin\n" "/run/current-system/profile/sbin\n"
@ -1088,8 +1088,8 @@ do
fi fi
done done
# Prepend setuid programs. # Prepend privileged programs.
export PATH=/run/setuid-programs:$PATH export PATH=/run/privileged/bin:$PATH
# Arrange so that ~/.config/guix/current/share/info comes first. # Arrange so that ~/.config/guix/current/share/info comes first.
export INFOPATH=\"$HOME/.config/guix/current/share/info:$INFOPATH\" export INFOPATH=\"$HOME/.config/guix/current/share/info:$INFOPATH\"