1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-05-23 09:35:56 +02:00

gnu: seatd-service-type: Use seat group.

* gnu/services/desktop.scm (seatd-group-sanitizer): New variable.
(<seatd-configuration>)[user]: Removed field.
[group]: Changed to "seat".  Sanitize via seatd-group-sanitizer.
(seatd-accounts): New variable.
(seatd-environment): Adjust to <seatd-configuration> ABI.
(seatd-service-type)[extensions]: Add account-service-type with seatd-accounts.
* gnu/tests/desktop.scm (run-minimal-desktop-test): Check for correct
ownership of $SEATD_SOCK.
* doc/guix.texi ("Desktop Services")[seatd-service-type]: Mention that users
may need to become members of the "seat" group.
Update default value for group field.
Add explanation on seatd.sock file.
Remove dropped user field.
This commit is contained in:
muradm
2022-07-22 07:09:54 +03:00
committed by Liliana Marie Prikler
parent de2f419618
commit d1815a68ea
3 changed files with 51 additions and 10 deletions
+9
View File
@@ -255,6 +255,15 @@ minimal %BASE-SERVICES."
(socks (map wait-for-unix-socket-m socks)))
(and (= 2 (length socks)) (every identity socks)))))
(test-equal "seatd.sock ownership"
'("root" "seat")
`(,(marionette-eval
'(passwd:name (getpwuid (stat:uid (stat "/run/seatd.sock"))))
marionette)
,(marionette-eval
'(group:name (getgrgid (stat:gid (stat "/run/seatd.sock"))))
marionette)))
(test-assert "greetd is ready"
(begin
(marionette-type "ps -C greetd -o pid,args --no-headers > ps-greetd\n"