mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	systemd: add sandboxing also for the system service
Based on dd1bf796cb
and https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/blob/master/src/daemon/systemd/user/pulseaudio.service.in
See also: #763
			
			
This commit is contained in:
		
							parent
							
								
									d2fb6db21f
								
							
						
					
					
						commit
						b7c6f70ae3
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		| 
						 | 
					@ -15,6 +15,12 @@ Description=Multimedia Service
 | 
				
			||||||
Requires=pipewire.socket
 | 
					Requires=pipewire.socket
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[Service]
 | 
					[Service]
 | 
				
			||||||
 | 
					LockPersonality=yes
 | 
				
			||||||
 | 
					MemoryDenyWriteExecute=yes
 | 
				
			||||||
 | 
					NoNewPrivileges=yes
 | 
				
			||||||
 | 
					RestrictNamespaces=yes
 | 
				
			||||||
 | 
					SystemCallArchitectures=native
 | 
				
			||||||
 | 
					SystemCallFilter=@system-service
 | 
				
			||||||
Type=simple
 | 
					Type=simple
 | 
				
			||||||
ExecStart=@PW_BINARY@
 | 
					ExecStart=@PW_BINARY@
 | 
				
			||||||
Restart=on-failure
 | 
					Restart=on-failure
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue