mirror of
https://github.com/optim-enterprises-bv/secureblue.git
synced 2025-11-06 13:27:51 +00:00
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:
@@ -21,14 +21,6 @@ remove:
|
|||||||
- toolbox
|
- toolbox
|
||||||
- distrobox
|
- distrobox
|
||||||
- podman
|
- podman
|
||||||
- hplip
|
|
||||||
- braille-printer-app
|
|
||||||
- libppd
|
|
||||||
- cups
|
|
||||||
- gutenprint-cups
|
|
||||||
- cups-browsed
|
|
||||||
- bluez-cups
|
|
||||||
- cups-filters
|
|
||||||
- open-vm-tools
|
- open-vm-tools
|
||||||
- open-vm-tools-desktop
|
- open-vm-tools-desktop
|
||||||
- fedora-flathub-remote
|
- fedora-flathub-remote
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
type: script
|
type: script
|
||||||
scripts:
|
scripts:
|
||||||
- authselect.sh
|
- authselect.sh
|
||||||
|
- disablecups.sh
|
||||||
# this sets up the proper policy & signing files for signed images to work
|
# this sets up the proper policy & signing files for signed images to work
|
||||||
- signing.sh
|
- signing.sh
|
||||||
@@ -19,6 +19,15 @@ screens:
|
|||||||
actions:
|
actions:
|
||||||
- run: just set-kargs-hardening
|
- 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:
|
can-we-harden-your-flatpaks:
|
||||||
source: yafti.screen.consent
|
source: yafti.screen.consent
|
||||||
values:
|
values:
|
||||||
|
|||||||
@@ -6,3 +6,10 @@ set-kargs-hardening:
|
|||||||
|
|
||||||
harden-flatpak:
|
harden-flatpak:
|
||||||
flatpak override --user --filesystem=host-os:ro --env=LD_PRELOAD=/var/run/host/usr/lib64/libhardened_malloc.so
|
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
|
||||||
|
|||||||
3
config/scripts/disablecups.sh
Normal file
3
config/scripts/disablecups.sh
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
echo "Disabling the print service"
|
||||||
|
systemctl disable cups
|
||||||
|
systemctl mask cups
|
||||||
Reference in New Issue
Block a user