aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorW. Kosior <koszko@koszko.org>2024-09-04 20:43:07 +0200
committerW. Kosior <koszko@koszko.org>2024-09-04 21:02:11 +0200
commit469f0898a037c9bc6437b8a7296899e1f08e6ec9 (patch)
tree39245829ccba0bd56e9fe986302ff2aaf216867a /gnu
parent002c21f6c89ee3492683ae76a643faa07f1719d0 (diff)
downloadguix-469f0898a037c9bc6437b8a7296899e1f08e6ec9.tar.gz
guix-469f0898a037c9bc6437b8a7296899e1f08e6ec9.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
Diffstat (limited to 'gnu')
-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))))