55 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			Desktop File
		
	
	
	
	
	
			
		
		
	
	
			55 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			Desktop File
		
	
	
	
	
	
[Unit]
 | 
						|
Description=TEST
 | 
						|
 | 
						|
[Service]
 | 
						|
Type=oneshot
 | 
						|
ExecStart=/opt/test
 | 
						|
 | 
						|
DynamicUser=yes
 | 
						|
UMask=077
 | 
						|
ProtectSystem=strict
 | 
						|
ProtectHome=yes
 | 
						|
PrivateTmp=yes
 | 
						|
PrivateDevices=yes # DevicePolicy=closed
 | 
						|
PrivateNetwork=yes
 | 
						|
IPAddressDeny=any
 | 
						|
PrivateUsers=yes
 | 
						|
ProtectHostname=yes
 | 
						|
ProtectClock=yes
 | 
						|
ProtectKernelTunables=yes
 | 
						|
ProtectKernelModules=yes
 | 
						|
ProtectKernelLogs=yes
 | 
						|
ProtectControlGroups=yes
 | 
						|
RestrictAddressFamilies=none
 | 
						|
RestrictFileSystems=ext4 tmpfs zfs
 | 
						|
RestrictNamespaces=yes
 | 
						|
LockPersonality=yes
 | 
						|
MemoryDenyWriteExecute=yes
 | 
						|
RestrictRealtime=yes
 | 
						|
RestrictSUIDSGID=yes
 | 
						|
RemoveIPC=yes
 | 
						|
PrivateMounts=yes
 | 
						|
SystemCallFilter=~@swap
 | 
						|
SystemCallFilter=~@resources
 | 
						|
SystemCallFilter=~@reboot
 | 
						|
SystemCallFilter=~@raw-io
 | 
						|
SystemCallFilter=~@privileged
 | 
						|
SystemCallFilter=~@obsolete
 | 
						|
SystemCallFilter=~@mount
 | 
						|
SystemCallFilter=~@module
 | 
						|
SystemCallFilter=~@debug
 | 
						|
SystemCallFilter=~@cpu-emulation
 | 
						|
SystemCallFilter=~@clock
 | 
						|
CapabilityBoundingSet=
 | 
						|
ProtectProc=invisible
 | 
						|
ProcSubset=pid
 | 
						|
NoNewPrivileges=yes
 | 
						|
SystemCallArchitectures=native
 | 
						|
 | 
						|
ReadOnlyPaths=/
 | 
						|
 | 
						|
NoExecPaths=/
 | 
						|
ExecPaths=/opt/test /bin/bash /lib
 | 
						|
 | 
						|
[Install]
 | 
						|
WantedBy=multi-user.target
 |