Hello, is this a bug or I'm using privileged-programs the wrng way? I'm trying to switch from setuid-programs to the new privileged-programs but I get an error trying to reconfigure. --8<---------------cut here---------------start------------->8--- g@ken ~$ guix describe Generation 3 Sep 24 2024 15:42:22 (current) guix 60dfa7f repository URL: https://git.savannah.gnu.org/git/guix.git branch: master commit: 60dfa7f673344f7f81faafc225191c4492f9dd03 --8<---------------cut here---------------end--------------->8--- this is the configuration for privileged-programs: --8<---------------cut here---------------start------------->8--- (operating-system [...] ;; libvirt clients need spice-client-glib-usb-acl-helper suid ;; to be able to selectively share USB devices (privileged-programs (append (list (privileged-program (program (file-append spice-gtk "/libexec/spice-client-glib-usb-acl-helper")) (setuid? #t)) %default-privileged-programs))) --8<---------------cut here---------------end--------------->8--- I've changed the above code since I was using setuid-programs before [1] and It was running. this is the error I get when trying to reconfigure: --8<---------------cut here---------------start------------->8--- g@ken ~$ sudo guix system reconfigure /etc/config.scm In guix/scripts/system.scm: 1311:4 19 (_) In ice-9/boot-9.scm: 1752:10 18 (with-exception-handler _ _ #:unwind? _ # _) In guix/store.scm: 689:37 17 (thunk) 1330:8 16 (call-with-build-handler # …) 2210:25 15 (run-with-store # …) In guix/scripts/system.scm: 853:2 14 (_ _) 727:8 13 (_ #) In gnu/system.scm: 1323:19 12 (operating-system-derivation _) In gnu/services.scm: 1240:16 11 (_ _) In guix/monads.scm: 487:9 10 (_ _) In gnu/services.scm: 1243:36 9 (_ _) In srfi/srfi-1.scm: 586:29 8 (map1 (#< type: # …)) 586:29 7 (map1 (#< type: # …)) 586:17 6 (map1 (#< type: # …)) In gnu/services.scm: 897:9 5 (privileged-program->activation-gexp _) In srfi/srfi-1.scm: 586:29 4 (map1 (#< program: # …)) 586:17 3 (map1 ((#< program: # …) …)) In gnu/services.scm: 899:36 2 (_ (#< program: # …)) In ice-9/boot-9.scm: 1685:16 1 (raise-exception _ #:continuable? _) 1685:16 0 (raise-exception _ #:continuable? _) ice-9/boot-9.scm:1685:16: In procedure raise-exception: In procedure struct-vtable: Wrong type argument in position 1 (expecting struct): (#< program: # "/bin/passwd"> setuid?: #t setgid?: #f user: 0 group: 0 capabilities: #f> #< program: # "/bin/chfn"> setuid?: #t setgid?: #f user: 0 group: 0 capabilities: #f> #< program: # "/bin/sg"> setuid?: #t setgid?: #f user: 0 group: 0 capabilities: #f> #< program: # "/bin/su"> setuid?: #t setgid?: #f user: 0 group: 0 capabilities: #f> #< program: # "/bin/newgrp"> setuid?: #t setgid?: #f user: 0 group: 0 capabilities: #f> #< program: # "/bin/newuidmap"> setuid?: #t setgid?: #f user: 0 group: 0 capabilities: #f> #< program: # "/bin/newgidmap"> setuid?: #t setgid?: #f user: 0 group: 0 capabilities: #f> #< program: # "/bin/ping"> setuid?: #t setgid?: #f user: 0 group: 0 capabilities: #f> #< program: # "/bin/ping6"> setuid?: #t setgid?: #f user: 0 group: 0 capabilities: #f> #< program: # "/bin/sudo"> setuid?: #t setgid?: #f user: 0 group: 0 capabilities: #f> #< program: # "/bin/sudoedit"> setuid?: #t setgid?: #f user: 0 group: 0 capabilities: #f> #< program: # "/bin/fusermount"> setuid?: #t setgid?: #f user: 0 group: 0 capabilities: #f> #< program: # "/bin/fusermount3"> setuid?: #t setgid?: #f user: 0 group: 0 capabilities: #f> #< program: # "/bin/mount"> setuid?: #t setgid?: #f user: 0 group: 0 capabilities: #f> #< program: # "/bin/umount"> setuid?: #t setgid?: #f user: 0 group: 0 capabilities: #f>) --8<---------------cut here---------------end--------------->8--- Any hint please? Happy hacking! Gio' [1] this is the diff: --8<---------------cut here---------------start------------->8--- - (setuid-programs - (append (list (setuid-program - (program (file-append spice-gtk "/libexec/spice-client-glib-usb-acl-helper")))) - %setuid-programs)) + (privileged-programs + (append (list (privileged-program + (program (file-append spice-gtk "/libexec/spice-client-glib-usb-acl-helper")) + (setuid? #t)) + %default-privileged-programs))) --8<---------------cut here---------------end--------------->8--- -- Giovanni Biscuolo Xelera IT Infrastructures