guix/gnu/services
Ludovic Courtès 43c36c5c9f
ui: 'display-hint' quotes extra arguments for Texinfo.
Fixes <https://issues.guix.gnu.org/61201>.

Previously, common practice was to splice arbitrary strings (user names,
file names, etc.) into Texinfo snippets passed to 'display-hint'.  This
is unsafe in the general case because at signs and braces need to be
escaped to produced valid Texinfo.  This commit addresses that.

* guix/ui.scm (texinfo-quote): New procedure.
(display-hint): When ARGUMENTS is non-empty, pass it to 'texinfo-quote'
and call 'format'.
(report-unbound-variable-error, check-module-matches-file)
(display-collision-resolution-hint, run-guix-command): Remove explicit
'format' call; pass 'format' arguments as extra arguments to 'display-hint'.
* gnu/services/monitoring.scm (zabbix-front-end-config): Likewise.
* guix/scripts.scm (warn-about-disk-space): Likewise.
* guix/scripts/build.scm (%standard-cross-build-options)
(%standard-native-build-options): Likewise.
* guix/scripts/describe.scm (display-checkout-info): Likewise.
* guix/scripts/environment.scm (suggest-command-name): Likewise.
* guix/scripts/home.scm (process-command): Likewise.
* guix/scripts/home/edit.scm (service-type-not-found): Likewise.
* guix/scripts/import.scm (guix-import): Likewise.
* guix/scripts/package.scm (display-search-path-hint): Likewise.
* guix/scripts/pull.scm (build-and-install): Likewise.
* guix/scripts/shell.scm (auto-detect-manifest): Likewise.
* guix/scripts/system.scm (check-file-system-availability): Likewise.
(guix-system): Likewise.
* guix/scripts/system/edit.scm (service-type-not-found): Likewise.
* guix/status.scm (print-build-event): Likewise.
2023-02-27 23:40:43 +01:00
..
admin.scm services: unattended-upgrade: Add 'operating-system-expression' field. 2023-01-10 11:49:14 +01:00
audio.scm services: mpd: Fix serialization procedure for list-of-string. 2023-02-05 18:25:10 +01:00
auditd.scm
authentication.scm
avahi.scm
base.scm services: console-font, kmscon: Refer to native 'font-gnu-unifont' builds. 2023-02-25 00:00:33 +01:00
certbot.scm services: certbot: Fix broken link. 2023-01-03 16:34:44 -05:00
cgit.scm
ci.scm
configuration.scm services: configuration: Format a list of packages by their names. 2023-02-08 22:40:39 -05:00
cuirass.scm records: 'match-record' checks fields at macro-expansion time. 2022-12-08 13:21:23 +01:00
cups.scm
databases.scm services: mysql: Run mariadb-install-db instead of hard coding schemas. 2022-11-20 17:54:05 +01:00
dbus.scm gnu: services: Export polkit-configuration. 2023-01-16 15:08:22 +08:00
desktop.scm services: gnome-desktop-service-type: Extend setuid-program-service-type. 2023-02-25 14:46:55 -05:00
dict.scm
dns.scm
docker.scm
file-sharing.scm
games.scm gnu: services: Add joycond-service. 2023-01-14 07:53:21 -05:00
ganeti.scm services: ganeti: Label mcron jobs. 2022-12-25 14:15:59 +01:00
getmail.scm records: 'match-record' checks fields at macro-expansion time. 2022-12-08 13:21:23 +01:00
guix.scm services: nar-herder: Add cached compression support. 2023-02-03 15:18:44 +01:00
herd.scm
hurd.scm
kerberos.scm
ldap.scm gnu: slapd-configuration: Update default for run-dir. 2022-12-14 22:56:00 +01:00
lightdm.scm services: lightdm: Sync documentation with source. 2023-02-08 22:40:40 -05:00
linux.scm
lirc.scm
mail.scm services: opensmtpd: Add 'shepherd-requirement' field. 2022-12-20 16:56:04 +01:00
mcron.scm
messaging.scm
monitoring.scm ui: 'display-hint' quotes extra arguments for Texinfo. 2023-02-27 23:40:43 +01:00
networking.scm services: Add block-facebook-hosts-service-type. 2023-02-09 01:07:54 +01:00
nfs.scm
nix.scm services: nix: Fix nix-shepherd-service. 2022-12-15 10:13:24 +00:00
pam-mount.scm
pm.scm
rsync.scm
samba.scm
science.scm
sddm.scm
security-token.scm
security.scm gnu: services: Fix fail2ban configuration serialization. 2023-01-10 10:47:27 -05:00
shepherd.scm
sound.scm services: pulseaudio: Fix /etc/pulse/default.pa not being used. 2022-12-28 16:58:03 -05:00
spice.scm
ssh.scm
syncthing.scm
sysctl.scm
telephony.scm gnu: libjami: Move jamid daemon to a "bin" output. 2023-02-08 09:36:26 -05:00
version-control.scm services: git-daemon: Deprecate 'git-daemon-service' procedure. 2023-01-10 11:49:13 +01:00
virtualization.scm
vnc.scm
vpn.scm services: wireguard: Allow specifying pre-shared keys. 2022-12-25 16:56:48 +01:00
web.scm services: hpcguix-web: Provide default values. 2023-01-22 18:12:09 +01:00
xorg.scm