mirror of
				https://github.com/optim-enterprises-bv/secureblue.git
				synced 2025-11-04 04:18:01 +00:00 
			
		
		
		
	fix: kargs and karg documentation
This commit is contained in:
		@@ -15,7 +15,8 @@ screens:
 | 
			
		||||
    values:
 | 
			
		||||
      title: Kernel hardening
 | 
			
		||||
      description: |
 | 
			
		||||
        This step will enable additional kernel hardening. 
 | 
			
		||||
        This step will enable additional kernel hardening. Warning: setting disable_early_pci_dma may lead to boot issues. If you encounter them, re-run this without the disable_early_pci_dma variable
 | 
			
		||||
   
 | 
			
		||||
      actions:
 | 
			
		||||
        - run: pkexec ujust set-kargs-hardening
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -3,7 +3,8 @@ import '100-bling.just'
 | 
			
		||||
 | 
			
		||||
# Add additional boot parameters for hardening (requires reboot)
 | 
			
		||||
set-kargs-hardening:
 | 
			
		||||
    rpm-ostree kargs --append="init_on_alloc=1" --append="init_on_free=1" --append="slab_nomerge" --append="page_alloc.shuffle=1" --append="randomize_kstack_offset=on" --append="vsyscall=none" --append="debugfs=off" --append="lockdown=confidentiality" --append="random.trust_cpu=off" --append="random.trust_bootloader=off" --append="intel_iommu=on" --append="amd_iommu=on" --append="efi=disable_early_pci_dma" --append="iommu.passthrough=0" --append="iommu.strict=1" --append="nvme_core.default_ps_max_latency_us=0" --append="mitigations=auto,nosmt"
 | 
			
		||||
    echo "Warning: setting disable_early_pci_dma may lead to boot issues. If you encounter them, re-run this without the disable_early_pci_dma variable"
 | 
			
		||||
    rpm-ostree kargs --append="init_on_alloc=1" --append="init_on_free=1" --append="slab_nomerge" --append="page_alloc.shuffle=1" --append="randomize_kstack_offset=on" --append="vsyscall=none" --append="debugfs=off" --append="lockdown=confidentiality" --append="random.trust_cpu=off" --append="random.trust_bootloader=off" --append="intel_iommu=on" --append="amd_iommu=on" --append="efi=disable_early_pci_dma" --append="iommu.passthrough=0" --append="iommu.strict=1" --append="pti=on" --append="mitigations=auto,nosmt"
 | 
			
		||||
 | 
			
		||||
harden-flatpak:
 | 
			
		||||
    flatpak override --user --filesystem=host-os:ro --env=LD_PRELOAD=/var/run/host/usr/lib64/libhardened_malloc.so
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user