aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorW. Kosior <koszko@koszko.org>2024-09-04 20:43:07 +0200
committerW. Kosior <koszko@koszko.org>2025-03-21 13:59:32 +0100
commit86194e9d2a4216de5203c7efe9a6dd076f72ad50 (patch)
treee4ec4aee96c6f69a0c54e38f7206877f109d4803
parentc3ff7fe71589826e0e6f497d3b3c21d3b1efbc03 (diff)
downloadguix-86194e9d2a4216de5203c7efe9a6dd076f72ad50.tar.gz
guix-86194e9d2a4216de5203c7efe9a6dd076f72ad50.zip
services: Update cron service to use `privileged-program' API.
Uses of deprecated `setuid-program' get replaced with new `privileged-program'. * gnu/services/mcron.scm (cron-daemon-setuid-programs): Use `privileged-program'. (cron-daemon-service-type): Extend `privileged-program-service-type'. Change-Id: I819bf75a0bb23c9b2e97ebcb144ca8adb81a9dde
-rw-r--r--gnu/services/mcron.scm10
1 files changed, 5 insertions, 5 deletions
diff --git a/gnu/services/mcron.scm b/gnu/services/mcron.scm
index a2bc1a5553..b56e1e18c2 100644
--- a/gnu/services/mcron.scm
+++ b/gnu/services/mcron.scm
@@ -23,7 +23,7 @@
#:use-module ((gnu services configuration) #:select
(define-configuration/no-serialization))
#:use-module (gnu services shepherd)
- #:use-module (gnu system setuid)
+ #:use-module (gnu system privilege)
#:use-module (gnu packages guile-xyz)
#:use-module ((guix packages) #:select (package?))
#:use-module (guix records)
@@ -249,9 +249,9 @@ files."
(const #~(mkdir-p "/var/cron/tabs")))
(define (cron-daemon-setuid-programs config)
- (list (file-like->setuid-program
- (file-append (cron-daemon-configuration-cron config)
- "/sbin/crontab-access"))))
+ (list (privileged-program
+ (program (file-append (cron-daemon-configuration-cron config)
+ "/sbin/crontab-access")))))
(define cron-daemon-service-type
(service-type (name 'cron-daemon)
@@ -262,7 +262,7 @@ files."
cron-daemon-shepherd-services)
(service-extension activation-service-type
cron-daemon-activation)
- (service-extension setuid-program-service-type
+ (service-extension privileged-program-service-type
cron-daemon-setuid-programs)))
(default-value (cron-daemon-configuration))))