me
/
guix
Archived
1
0
Fork 0
This repository has been archived on 2024-08-07. You can view files and clone it, but cannot push or open issues/pull-requests.
guix/gnu
Ludovic Courtès e0bd47b4fd
system: Handle 'setuid-programs' deprecation handling as a field sanitizer.
Previously, evaluating an OS configuration with a childhurd (for
instance) would produce tens of lines like:

  guix system: warning: representing setuid programs with '#<file-append #<package shadow@4.8.1 gnu/packages/admin.scm:798 7ff97f6f7640> "/bin/passwd">' is deprecated; use 'setuid-program' instead

Now, it prints this one line:

  gnu/system/hurd.scm:105:2: warning: representing setuid programs with file-like objects is deprecated; use 'setuid-program' instead

This change also means that extensions of 'setuid-program-service-type'
now have to provide a list of <setuid-program>, so it's stricter in this
sense.

* gnu/services.scm (setuid-program-file-like-deprecated): Remove.
(setuid-program-service-type)[extend]: Remove
'setuid-program-file-like-deprecated' call.  Assume CONFIG and
EXTENSIONS are already lists of <setuid-program> records.
* gnu/system.scm (<operating-system>)[setuid-programs]: Add 'sanitize'
property.  Change accessor name from '%operating-system-setuid-programs'
to 'operating-system-setuid-programs'.
(operating-system-default-essential-services)
(hurd-default-essential-services): Adjust accordingly.
(ensure-setuid-program-list): New macro.
(%ensure-setuid-program-list): New procedure, based on
'setuid-program-file-like-deprecated'.
2021-08-12 12:34:13 +02:00
..
bootloader
build Reinstate "services: Add a service for Jami." 2021-08-02 17:23:30 -04:00
installer
machine
packages gnu: jsonnet: Do not build static libraries. 2021-08-12 12:34:12 +02:00
services services: pam-limits: fix limits.conf location 2021-08-07 17:34:23 +02:00
system
tests Reinstate "services: Add a service for Jami." 2021-08-02 17:23:30 -04:00
artwork.scm
bootloader.scm
ci.scm
image.scm
installer.scm
local.mk gnu: rocm-opencl-runtime: Shorten patch file name. 2021-08-11 16:35:28 +02:00
machine.scm
packages.scm
services.scm system: Handle 'setuid-programs' deprecation handling as a field sanitizer. 2021-08-12 12:34:13 +02:00
system.scm system: Handle 'setuid-programs' deprecation handling as a field sanitizer. 2021-08-12 12:34:13 +02:00
tests.scm