diff options
| author | Tobias Geerinckx-Rice <me@tobias.gr> | 2022-05-29 02:01:19 +0200 |
|---|---|---|
| committer | Tobias Geerinckx-Rice <me@tobias.gr> | 2024-08-11 02:00:00 +0200 |
| commit | 902b15b24d6ea2a1e255b88dff7670e8a95cb9a9 (patch) | |
| tree | cb59d02b5f57956547a09b97b8ed599d8a4e5eb3 /gnu | |
| parent | e364d1a494140c26f95a90176b3216428bbaf944 (diff) | |
gnu: Replace (almost) all uses of /run/setuid-programs.
…those good for master, anyway.
* gnu/packages/admin.scm (ktsuss, opendoas, hosts)
[arguments]: Replace /run/setuid-programs with /run/privileged/bin.
* gnu/packages/containers.scm (slirp4netns)[arguments]: Likewise.
* gnu/packages/debian.scm (pbuilder)[arguments]: Likewise.
* gnu/packages/disk.scm (udevil)[arguments]: Likewise.
* gnu/packages/enlightenment.scm (efl, enlightenment)
[arguments]: Likewise.
* gnu/packages/gnome.scm (gdm, gnome-control-center)
[arguments]: Likewise.
* gnu/packages/linux.scm (singularity)[arguments]: Likewise.
* gnu/packages/lxde.scm (spacefm)[arguments]: Likewise.
* gnu/packages/monitoring.scm (zabbix-agentd)[arguments]: Likewise.
* gnu/packages/virtualization.scm (ganeti)[arguments]: Likewise.
* gnu/packages/xdisorg.scm (xsecurelock)[arguments]: Likewise.
* gnu/services/dbus.scm (dbus-configuration-directory): Likewise.
* gnu/services/ganeti.scm (%default-ganeti-environment-variables):
Likewise.
* gnu/services/monitoring.scm (zabbix-agent-shepherd-service): Likewise.
* gnu/tests/ldap.scm (marionette): Likewise.
* gnu/tests/monitoring.scm (os): Likewise.
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/machine/ssh.scm | 2 | ||||
| -rw-r--r-- | gnu/packages/admin.scm | 6 | ||||
| -rw-r--r-- | gnu/packages/containers.scm | 2 | ||||
| -rw-r--r-- | gnu/packages/debian.scm | 4 | ||||
| -rw-r--r-- | gnu/packages/disk.scm | 14 | ||||
| -rw-r--r-- | gnu/packages/enlightenment.scm | 10 | ||||
| -rw-r--r-- | gnu/packages/gnome.scm | 2 | ||||
| -rw-r--r-- | gnu/packages/linux.scm | 2 | ||||
| -rw-r--r-- | gnu/packages/lxde.scm | 19 | ||||
| -rw-r--r-- | gnu/packages/monitoring.scm | 2 | ||||
| -rw-r--r-- | gnu/packages/virtualization.scm | 2 | ||||
| -rw-r--r-- | gnu/packages/xdisorg.scm | 2 | ||||
| -rw-r--r-- | gnu/services/dbus.scm | 2 | ||||
| -rw-r--r-- | gnu/services/ganeti.scm | 2 | ||||
| -rw-r--r-- | gnu/services/monitoring.scm | 2 | ||||
| -rw-r--r-- | gnu/tests/ldap.scm | 2 | ||||
| -rw-r--r-- | gnu/tests/monitoring.scm | 4 |
17 files changed, 39 insertions, 40 deletions
diff --git a/gnu/machine/ssh.scm b/gnu/machine/ssh.scm index 0be9ebbc0d7..3e10d984e72 100644 --- a/gnu/machine/ssh.scm +++ b/gnu/machine/ssh.scm | |||
| @@ -178,6 +178,8 @@ shell command with escalated privileges for MACHINE's configuration." | |||
| 178 | (if (string= "root" (machine-ssh-configuration-user | 178 | (if (string= "root" (machine-ssh-configuration-user |
| 179 | (machine-configuration machine))) | 179 | (machine-configuration machine))) |
| 180 | '() | 180 | '() |
| 181 | ;; Use the old setuid-programs location until the remote is likely to | ||
| 182 | ;; have the new /run/privileged one in place. | ||
| 181 | '("/run/setuid-programs/sudo" "-n" "--"))) | 183 | '("/run/setuid-programs/sudo" "-n" "--"))) |
| 182 | 184 | ||
| 183 | (define (managed-host-remote-eval machine exp) | 185 | (define (managed-host-remote-eval machine exp) |
diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index 377f7ec86f6..db01152e0ad 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm | |||
| @@ -220,7 +220,7 @@ | |||
| 220 | (lambda _ | 220 | (lambda _ |
| 221 | (substitute* "configure.ac" | 221 | (substitute* "configure.ac" |
| 222 | (("supath=`which su 2>/dev/null`") | 222 | (("supath=`which su 2>/dev/null`") |
| 223 | "supath=/run/setuid-programs/su")) | 223 | "supath=/run/privileged/bin/su")) |
| 224 | #t))))) | 224 | #t))))) |
| 225 | (native-inputs | 225 | (native-inputs |
| 226 | (list autoconf automake libtool pkg-config)) | 226 | (list autoconf automake libtool pkg-config)) |
| @@ -2156,7 +2156,7 @@ commands and their arguments.") | |||
| 2156 | (substitute* "doas.c" | 2156 | (substitute* "doas.c" |
| 2157 | (("safepath =" match) | 2157 | (("safepath =" match) |
| 2158 | (string-append match " \"" | 2158 | (string-append match " \"" |
| 2159 | "/run/setuid-programs:" | 2159 | "/run/privileged/bin:" |
| 2160 | "/run/current-system/profile/bin:" | 2160 | "/run/current-system/profile/bin:" |
| 2161 | "/run/current-system/profile/sbin:" | 2161 | "/run/current-system/profile/sbin:" |
| 2162 | "\" "))))) | 2162 | "\" "))))) |
| @@ -5090,7 +5090,7 @@ text table representation to stdout.") | |||
| 5090 | ":" (assoc-ref %build-inputs "grep") "/bin" | 5090 | ":" (assoc-ref %build-inputs "grep") "/bin" |
| 5091 | ":" (assoc-ref %build-inputs "ncurses") "/bin" | 5091 | ":" (assoc-ref %build-inputs "ncurses") "/bin" |
| 5092 | ":" (assoc-ref %build-inputs "sed") "/bin" | 5092 | ":" (assoc-ref %build-inputs "sed") "/bin" |
| 5093 | ":" "/run/setuid-programs" | 5093 | ":" "/run/privileged/bin" |
| 5094 | ":" (getenv "PATH"))) | 5094 | ":" (getenv "PATH"))) |
| 5095 | (substitute* "hosts" | 5095 | (substitute* "hosts" |
| 5096 | (("#!/usr/bin/env bash") | 5096 | (("#!/usr/bin/env bash") |
diff --git a/gnu/packages/containers.scm b/gnu/packages/containers.scm index b651e5d4e21..f89c52055a7 100644 --- a/gnu/packages/containers.scm +++ b/gnu/packages/containers.scm | |||
| @@ -274,7 +274,7 @@ containers or various tools.") | |||
| 274 | (add-after 'unpack 'fix-hardcoded-paths | 274 | (add-after 'unpack 'fix-hardcoded-paths |
| 275 | (lambda _ | 275 | (lambda _ |
| 276 | (substitute* (find-files "tests" "\\.sh") | 276 | (substitute* (find-files "tests" "\\.sh") |
| 277 | (("ping") "/run/setuid-programs/ping"))))))) | 277 | (("ping") "/run/privileged/bin/ping"))))))) |
| 278 | (inputs | 278 | (inputs |
| 279 | (list glib | 279 | (list glib |
| 280 | libcap | 280 | libcap |
diff --git a/gnu/packages/debian.scm b/gnu/packages/debian.scm index 415c1d515d3..6f7b809fd25 100644 --- a/gnu/packages/debian.scm +++ b/gnu/packages/debian.scm | |||
| @@ -725,8 +725,8 @@ handling the installation and removal of Debian software packages.") | |||
| 725 | (lambda () | 725 | (lambda () |
| 726 | (format #t "# A couple of presets to make this work more smoothly.~@ | 726 | (format #t "# A couple of presets to make this work more smoothly.~@ |
| 727 | MIRRORSITE=\"http://deb.debian.org/debian\"~@ | 727 | MIRRORSITE=\"http://deb.debian.org/debian\"~@ |
| 728 | if [ -r /run/setuid-programs/sudo ]; then~@ | 728 | if [ -r /run/privileged/bin/sudo ]; then~@ |
| 729 | PBUILDERROOTCMD=\"/run/setuid-programs/sudo -E\"~@ | 729 | PBUILDERROOTCMD=\"/run/privileged/bin/sudo -E\"~@ |
| 730 | fi~@ | 730 | fi~@ |
| 731 | PBUILDERSATISFYDEPENDSCMD=\"~a/lib/pbuilder/pbuilder-satisfydepends-apt\"~%" | 731 | PBUILDERSATISFYDEPENDSCMD=\"~a/lib/pbuilder/pbuilder-satisfydepends-apt\"~%" |
| 732 | #$output))))) | 732 | #$output))))) |
diff --git a/gnu/packages/disk.scm b/gnu/packages/disk.scm index ee766474756..d45da82276f 100644 --- a/gnu/packages/disk.scm +++ b/gnu/packages/disk.scm | |||
| @@ -212,10 +212,10 @@ and write-back caching.") | |||
| 212 | ;; udevil expects these programs to be run with uid set as root. | 212 | ;; udevil expects these programs to be run with uid set as root. |
| 213 | ;; user has to manually add these programs to setuid-programs. | 213 | ;; user has to manually add these programs to setuid-programs. |
| 214 | ;; mount and umount are default setuid-programs in guix system. | 214 | ;; mount and umount are default setuid-programs in guix system. |
| 215 | "--with-mount-prog=/run/setuid-programs/mount" | 215 | "--with-mount-prog=/run/privileged/bin/mount" |
| 216 | "--with-umount-prog=/run/setuid-programs/umount" | 216 | "--with-umount-prog=/run/privileged/bin/umount" |
| 217 | "--with-losetup-prog=/run/setuid-programs/losetup" | 217 | "--with-losetup-prog=/run/privileged/bin/losetup" |
| 218 | "--with-setfacl-prog=/run/setuid-programs/setfacl") | 218 | "--with-setfacl-prog=/run/privileged/bin/setfacl") |
| 219 | #:phases | 219 | #:phases |
| 220 | (modify-phases %standard-phases | 220 | (modify-phases %standard-phases |
| 221 | (add-after 'unpack 'remove-root-reference | 221 | (add-after 'unpack 'remove-root-reference |
| @@ -226,12 +226,12 @@ and write-back caching.") | |||
| 226 | (add-after 'unpack 'patch-udevil-reference | 226 | (add-after 'unpack 'patch-udevil-reference |
| 227 | ;; udevil expects itself to be run with uid set as root. | 227 | ;; udevil expects itself to be run with uid set as root. |
| 228 | ;; devmon also expects udevil to be run with uid set as root. | 228 | ;; devmon also expects udevil to be run with uid set as root. |
| 229 | ;; user has to manually add udevil to setuid-programs. | 229 | ;; user has to manually add udevil to privileged-programs. |
| 230 | (lambda _ | 230 | (lambda _ |
| 231 | (substitute* "src/udevil.c" | 231 | (substitute* "src/udevil.c" |
| 232 | (("/usr/bin/udevil") "/run/setuid-programs/udevil")) | 232 | (("/usr/bin/udevil") "/run/privileged/bin/udevil")) |
| 233 | (substitute* "src/devmon" | 233 | (substitute* "src/devmon" |
| 234 | (("`which udevil 2>/dev/null`") "/run/setuid-programs/udevil")) | 234 | (("`which udevil 2>/dev/null`") "/run/privileged/bin/udevil")) |
| 235 | #t))))) | 235 | #t))))) |
| 236 | (native-inputs | 236 | (native-inputs |
| 237 | (list intltool pkg-config)) | 237 | (list intltool pkg-config)) |
diff --git a/gnu/packages/enlightenment.scm b/gnu/packages/enlightenment.scm index 7860c43fef1..cf9fe93b27e 100644 --- a/gnu/packages/enlightenment.scm +++ b/gnu/packages/enlightenment.scm | |||
| @@ -149,8 +149,8 @@ | |||
| 149 | "-Dbuild-examples=false" | 149 | "-Dbuild-examples=false" |
| 150 | "-Decore-imf-loaders-disabler=scim" | 150 | "-Decore-imf-loaders-disabler=scim" |
| 151 | "-Dglib=true" | 151 | "-Dglib=true" |
| 152 | "-Dmount-path=/run/setuid-programs/mount" | 152 | "-Dmount-path=/run/privileged/bin/mount" |
| 153 | "-Dunmount-path=/run/setuid-programs/umount" | 153 | "-Dunmount-path=/run/privileged/bin/umount" |
| 154 | "-Dnetwork-backend=connman" | 154 | "-Dnetwork-backend=connman" |
| 155 | ,,@(if (member (%current-system) | 155 | ,,@(if (member (%current-system) |
| 156 | (package-transitive-supported-systems luajit)) | 156 | (package-transitive-supported-systems luajit)) |
| @@ -338,7 +338,7 @@ Libraries with some extra bells and whistles.") | |||
| 338 | (substitute* '("src/bin/e_sys_main.c" | 338 | (substitute* '("src/bin/e_sys_main.c" |
| 339 | "src/bin/e_util_suid.h") | 339 | "src/bin/e_util_suid.h") |
| 340 | (("PATH=/bin:/usr/bin:/sbin:/usr/sbin") | 340 | (("PATH=/bin:/usr/bin:/sbin:/usr/sbin") |
| 341 | (string-append "PATH=/run/setuid-programs:" | 341 | (string-append "PATH=/run/privileged/bin:" |
| 342 | "/run/current-system/profile/bin:" | 342 | "/run/current-system/profile/bin:" |
| 343 | "/run/current-system/profile/sbin"))) | 343 | "/run/current-system/profile/sbin"))) |
| 344 | (substitute* "src/modules/everything/evry_plug_calc.c" | 344 | (substitute* "src/modules/everything/evry_plug_calc.c" |
| @@ -347,8 +347,8 @@ Libraries with some extra bells and whistles.") | |||
| 347 | (("libddcutil\\.so\\.?" libddcutil) | 347 | (("libddcutil\\.so\\.?" libddcutil) |
| 348 | (string-append ddcutil "/lib/" libddcutil))) | 348 | (string-append ddcutil "/lib/" libddcutil))) |
| 349 | (substitute* "data/etc/meson.build" | 349 | (substitute* "data/etc/meson.build" |
| 350 | (("/bin/mount") "/run/setuid-programs/mount") | 350 | (("/bin/mount") "/run/privileged/bin/mount") |
| 351 | (("/bin/umount") "/run/setuid-programs/umount") | 351 | (("/bin/umount") "/run/privileged/bin/umount") |
| 352 | (("/usr/bin/eject") "/run/current-system/profile/bin/eject")) | 352 | (("/usr/bin/eject") "/run/current-system/profile/bin/eject")) |
| 353 | (substitute* "src/bin/system/e_system_power.c" | 353 | (substitute* "src/bin/system/e_system_power.c" |
| 354 | (("systemctl") "loginctl")))))))) | 354 | (("systemctl") "loginctl")))))))) |
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm index 88e647dd657..010bf2f2753 100644 --- a/gnu/packages/gnome.scm +++ b/gnu/packages/gnome.scm | |||
| @@ -8984,7 +8984,7 @@ library.") | |||
| 8984 | 8984 | ||
| 8985 | "--localstatedir=/var" | 8985 | "--localstatedir=/var" |
| 8986 | (string-append "-Ddefault-path=" | 8986 | (string-append "-Ddefault-path=" |
| 8987 | (string-join '("/run/setuid-programs" | 8987 | (string-join '("/run/privileged/bin" |
| 8988 | "/run/current-system/profile/bin" | 8988 | "/run/current-system/profile/bin" |
| 8989 | "/run/current-system/profile/sbin") | 8989 | "/run/current-system/profile/sbin") |
| 8990 | ":")) | 8990 | ":")) |
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 8ca1df11855..b6f8ed543b2 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm | |||
| @@ -5386,7 +5386,7 @@ thanks to the use of namespaces.") | |||
| 5386 | (substitute* (find-files "libexec/cli" "\\.exec$") | 5386 | (substitute* (find-files "libexec/cli" "\\.exec$") |
| 5387 | (("\\$SINGULARITY_libexecdir/singularity/bin/([a-z]+)-suid" | 5387 | (("\\$SINGULARITY_libexecdir/singularity/bin/([a-z]+)-suid" |
| 5388 | _ program) | 5388 | _ program) |
| 5389 | (string-append "/run/setuid-programs/singularity-" | 5389 | (string-append "/run/privileged/bin/singularity-" |
| 5390 | program "-helper"))) | 5390 | program "-helper"))) |
| 5391 | 5391 | ||
| 5392 | ;; These squashfs mount options are apparently no longer | 5392 | ;; These squashfs mount options are apparently no longer |
diff --git a/gnu/packages/lxde.scm b/gnu/packages/lxde.scm index 0291f50302e..1a969eb4b52 100644 --- a/gnu/packages/lxde.scm +++ b/gnu/packages/lxde.scm | |||
| @@ -372,26 +372,23 @@ with freedesktop.org standard.") | |||
| 372 | (substitute* '("mime-type/mime-type.c" "ptk/ptk-file-menu.c") | 372 | (substitute* '("mime-type/mime-type.c" "ptk/ptk-file-menu.c") |
| 373 | (("/usr(/local)?/share/mime") mime))) | 373 | (("/usr(/local)?/share/mime") mime))) |
| 374 | #t))) | 374 | #t))) |
| 375 | (add-after 'patch-mime-dirs 'patch-setuid-progs | 375 | (add-after 'patch-mime-dirs 'patch-privileged-programs |
| 376 | (lambda _ | 376 | (lambda _ |
| 377 | (let* ((su "/run/setuid-programs/su") | 377 | (let ((privileged (lambda (command) |
| 378 | (mount "/run/setuid-programs/mount") | 378 | (string-append "/run/privileged/bin/" |
| 379 | (umount "/run/setuid-programs/umount") | 379 | command)))) |
| 380 | (udevil "/run/setuid-programs/udevil")) | ||
| 381 | (with-directory-excursion "src" | 380 | (with-directory-excursion "src" |
| 382 | (substitute* '("settings.c" "settings.h" "vfs/vfs-file-task.c" | 381 | (substitute* '("settings.c" "settings.h" "vfs/vfs-file-task.c" |
| 383 | "vfs/vfs-volume-hal.c" "../data/ui/prefdlg.ui" | 382 | "vfs/vfs-volume-hal.c" "../data/ui/prefdlg.ui" |
| 384 | "../data/ui/prefdlg2.ui") | 383 | "../data/ui/prefdlg2.ui") |
| 385 | (("(/usr)?/bin/su") su) | 384 | (("(/usr)?/s?bin/(mount|umount|su|udevil)" _ _ command) |
| 386 | (("/(bin|sbin)/mount") mount) | 385 | (privileged command)))) |
| 387 | (("/(bin|sbin)/umount") umount) | ||
| 388 | (("/usr/bin/udevil") udevil))) | ||
| 389 | #t))) | 386 | #t))) |
| 390 | (add-after 'patch-setuid-progs 'patch-spacefm-conf | 387 | (add-after 'patch-privileged-programs 'patch-spacefm.conf |
| 391 | (lambda* (#:key inputs #:allow-other-keys) | 388 | (lambda* (#:key inputs #:allow-other-keys) |
| 392 | (substitute* "etc/spacefm.conf" | 389 | (substitute* "etc/spacefm.conf" |
| 393 | (("#terminal_su=/bin/su") | 390 | (("#terminal_su=/bin/su") |
| 394 | "terminal_su=/run/setuid-programs/su") | 391 | "terminal_su=/run/privileged/bin/su") |
| 395 | (("#graphical_su=/usr/bin/gksu") | 392 | (("#graphical_su=/usr/bin/gksu") |
| 396 | (string-append "graphical_su=" | 393 | (string-append "graphical_su=" |
| 397 | (search-input-file inputs "/bin/ktsuss"))))))) | 394 | (search-input-file inputs "/bin/ktsuss"))))))) |
diff --git a/gnu/packages/monitoring.scm b/gnu/packages/monitoring.scm index ad9af078eb9..6325c9b96f9 100644 --- a/gnu/packages/monitoring.scm +++ b/gnu/packages/monitoring.scm | |||
| @@ -186,7 +186,7 @@ etc. via a Web interface. Features include: | |||
| 186 | "src/zabbix_server/server.c") | 186 | "src/zabbix_server/server.c") |
| 187 | ;; 'fping' must be setuid, so look for it in the usual location. | 187 | ;; 'fping' must be setuid, so look for it in the usual location. |
| 188 | (("/usr/sbin/fping6?") | 188 | (("/usr/sbin/fping6?") |
| 189 | "/run/setuid-programs/fping"))))) | 189 | "/run/privileged/bin/fping"))))) |
| 190 | (build-system gnu-build-system) | 190 | (build-system gnu-build-system) |
| 191 | (arguments | 191 | (arguments |
| 192 | (list #:configure-flags | 192 | (list #:configure-flags |
diff --git a/gnu/packages/virtualization.scm b/gnu/packages/virtualization.scm index c54e991a392..8702a7390c0 100644 --- a/gnu/packages/virtualization.scm +++ b/gnu/packages/virtualization.scm | |||
| @@ -846,7 +846,7 @@ firmware blobs. You can | |||
| 846 | ;; hard coded PATH. Patch so it works on Guix System. | 846 | ;; hard coded PATH. Patch so it works on Guix System. |
| 847 | (substitute* "src/Ganeti/Constants.hs" | 847 | (substitute* "src/Ganeti/Constants.hs" |
| 848 | (("/sbin:/bin:/usr/sbin:/usr/bin") | 848 | (("/sbin:/bin:/usr/sbin:/usr/bin") |
| 849 | "/run/setuid-programs:/run/current-system/profile/sbin:\ | 849 | "/run/privileged/bin:/run/current-system/profile/sbin:\ |
| 850 | /run/current-system/profile/bin")))) | 850 | /run/current-system/profile/bin")))) |
| 851 | (add-after 'bootstrap 'patch-sphinx-version-detection | 851 | (add-after 'bootstrap 'patch-sphinx-version-detection |
| 852 | (lambda _ | 852 | (lambda _ |
diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm index 4c12835b240..554f0012bb2 100644 --- a/gnu/packages/xdisorg.scm +++ b/gnu/packages/xdisorg.scm | |||
| @@ -2710,7 +2710,7 @@ temperature of the screen.") | |||
| 2710 | '(#:configure-flags | 2710 | '(#:configure-flags |
| 2711 | '("--with-pam-service-name=login" | 2711 | '("--with-pam-service-name=login" |
| 2712 | "--with-xkb" | 2712 | "--with-xkb" |
| 2713 | "--with-default-authproto-module=/run/setuid-programs/authproto_pam"))) | 2713 | "--with-default-authproto-module=/run/privileged/bin/authproto_pam"))) |
| 2714 | (native-inputs | 2714 | (native-inputs |
| 2715 | (list pandoc pkg-config)) | 2715 | (list pandoc pkg-config)) |
| 2716 | (inputs | 2716 | (inputs |
diff --git a/gnu/services/dbus.scm b/gnu/services/dbus.scm index 1e1380185a4..2004c484527 100644 --- a/gnu/services/dbus.scm +++ b/gnu/services/dbus.scm | |||
| @@ -115,7 +115,7 @@ includes the @code{etc/dbus-1/system.d} directories of each package listed in | |||
| 115 | ;; failures such as <https://issues.guix.gnu.org/52051> on slow | 115 | ;; failures such as <https://issues.guix.gnu.org/52051> on slow |
| 116 | ;; computers with slow I/O. | 116 | ;; computers with slow I/O. |
| 117 | (limit (@ (name "auth_timeout")) "300000") | 117 | (limit (@ (name "auth_timeout")) "300000") |
| 118 | (servicehelper "/run/setuid-programs/dbus-daemon-launch-helper") | 118 | (servicehelper "/run/privileged/bin/dbus-daemon-launch-helper") |
| 119 | 119 | ||
| 120 | ;; First, the '.service' files of services subject to activation. | 120 | ;; First, the '.service' files of services subject to activation. |
| 121 | ;; We use a fixed location under /etc because the setuid helper | 121 | ;; We use a fixed location under /etc because the setuid helper |
diff --git a/gnu/services/ganeti.scm b/gnu/services/ganeti.scm index f4fec3833e7..ee72946c885 100644 --- a/gnu/services/ganeti.scm +++ b/gnu/services/ganeti.scm | |||
| @@ -182,7 +182,7 @@ | |||
| 182 | ;; Ceph, Gluster, etc, without having to add absolute references to everything. | 182 | ;; Ceph, Gluster, etc, without having to add absolute references to everything. |
| 183 | (define %default-ganeti-environment-variables | 183 | (define %default-ganeti-environment-variables |
| 184 | (list (string-append "PATH=" | 184 | (list (string-append "PATH=" |
| 185 | (string-join '("/run/setuid-programs" | 185 | (string-join '("/run/privileged/bin" |
| 186 | "/run/current-system/profile/sbin" | 186 | "/run/current-system/profile/sbin" |
| 187 | "/run/current-system/profile/bin") | 187 | "/run/current-system/profile/bin") |
| 188 | ":")))) | 188 | ":")))) |
diff --git a/gnu/services/monitoring.scm b/gnu/services/monitoring.scm index 0a93c907eea..59cf4710ea4 100644 --- a/gnu/services/monitoring.scm +++ b/gnu/services/monitoring.scm | |||
| @@ -1016,7 +1016,7 @@ configuration file.")) | |||
| 1016 | /etc/ssl/certs" | 1016 | /etc/ssl/certs" |
| 1017 | "SSL_CERT_FILE=/run/current-system/profile\ | 1017 | "SSL_CERT_FILE=/run/current-system/profile\ |
| 1018 | /etc/ssl/certs/ca-certificates.crt" | 1018 | /etc/ssl/certs/ca-certificates.crt" |
| 1019 | "PATH=/run/setuid-programs:\ | 1019 | "PATH=/run/privileged/bin:\ |
| 1020 | /run/current-system/profile/bin:/run/current-system/profile/sbin"))) | 1020 | /run/current-system/profile/bin:/run/current-system/profile/sbin"))) |
| 1021 | (stop #~(make-kill-destructor))))) | 1021 | (stop #~(make-kill-destructor))))) |
| 1022 | 1022 | ||
diff --git a/gnu/tests/ldap.scm b/gnu/tests/ldap.scm index 47e77c0c53f..d5ab6899cf8 100644 --- a/gnu/tests/ldap.scm +++ b/gnu/tests/ldap.scm | |||
| @@ -144,7 +144,7 @@ suffix = dc=example,dc=com"))) | |||
| 144 | 144 | ||
| 145 | (test-assert "Can become LDAP user" | 145 | (test-assert "Can become LDAP user" |
| 146 | (marionette-eval | 146 | (marionette-eval |
| 147 | '(zero? (system* "/run/setuid-programs/su" "eva" "-c" | 147 | '(zero? (system* "/run/privileged/bin/su" "eva" "-c" |
| 148 | #$(file-append coreutils "/bin/true"))) | 148 | #$(file-append coreutils "/bin/true"))) |
| 149 | marionette)) | 149 | marionette)) |
| 150 | 150 | ||
diff --git a/gnu/tests/monitoring.scm b/gnu/tests/monitoring.scm index bbab1d8acff..a0c8c929b11 100644 --- a/gnu/tests/monitoring.scm +++ b/gnu/tests/monitoring.scm | |||
| @@ -189,11 +189,11 @@ cat ~a | sudo -u zabbix psql zabbix; | |||
| 189 | (start-service 'postgres)) | 189 | (start-service 'postgres)) |
| 190 | marionette)) | 190 | marionette)) |
| 191 | 191 | ||
| 192 | ;; Add /run/setuid-programs to $PATH so that the scripts passed to | 192 | ;; Add privileged programs to $PATH so that the scripts passed to |
| 193 | ;; 'system' can find 'sudo'. | 193 | ;; 'system' can find 'sudo'. |
| 194 | (marionette-eval | 194 | (marionette-eval |
| 195 | '(setenv "PATH" | 195 | '(setenv "PATH" |
| 196 | "/run/setuid-programs:/run/current-system/profile/bin") | 196 | "/run/privileged/bin:/run/current-system/profile/bin") |
| 197 | marionette) | 197 | marionette) |
| 198 | 198 | ||
| 199 | (test-eq "postgres create zabbix user" | 199 | (test-eq "postgres create zabbix user" |
