Add cups back to the image and disable it by default. Include a just command to enable it if the user chooses.

This commit is contained in:
qoijjj
2023-12-09 23:41:20 -08:00
parent 6c13b8293b
commit bee997577b
5 changed files with 20 additions and 8 deletions

View File

@@ -21,14 +21,6 @@ remove:
- toolbox
- distrobox
- podman
- hplip
- braille-printer-app
- libppd
- cups
- gutenprint-cups
- cups-browsed
- bluez-cups
- cups-filters
- open-vm-tools
- open-vm-tools-desktop
- fedora-flathub-remote

View File

@@ -1,5 +1,6 @@
type: script
scripts:
- authselect.sh
- disablecups.sh
# this sets up the proper policy & signing files for signed images to work
- signing.sh

View File

@@ -19,6 +19,15 @@ screens:
actions:
- run: just set-kargs-hardening
can-we-enable-printing:
source: yafti.screen.consent
values:
title: Printing
description: |
The cups printing service is disabled by default to reduce attack surface. If you need printing support, run "just enable-cups" manually.
actions:
- run: just enable-cups
can-we-harden-your-flatpaks:
source: yafti.screen.consent
values:

View File

@@ -6,3 +6,10 @@ set-kargs-hardening:
harden-flatpak:
flatpak override --user --filesystem=host-os:ro --env=LD_PRELOAD=/var/run/host/usr/lib64/libhardened_malloc.so
enable-cups:
firewall-cmd --add-service=cups --permanent
firewall-cmd --reload
systemctl unmask cups
systemctl enable cups
systemctl start cups

View File

@@ -0,0 +1,3 @@
echo "Disabling the print service"
systemctl disable cups
systemctl mask cups