mirror of
				https://github.com/optim-enterprises-bv/secureblue.git
				synced 2025-11-04 12:28:04 +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
 | 
			
		||||
  - 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
 | 
			
		||||
 
 | 
			
		||||
@@ -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
 | 
			
		||||
@@ -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:
 | 
			
		||||
 
 | 
			
		||||
@@ -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
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										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