mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Add secucity config for FreeBSD.
This commit is contained in:
		
							parent
							
								
									8fad213f34
								
							
						
					
					
						commit
						a3c07273ba
					
				
					 2 changed files with 16 additions and 0 deletions
				
			
		
							
								
								
									
										12
									
								
								security.d/10-freebsd.in
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								security.d/10-freebsd.in
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,12 @@
 | 
				
			||||||
 | 
					# sway security rules
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
 | 
					# FreeBSD does not support getting client PID from server side
 | 
				
			||||||
 | 
					# so we can not know the path to the client's binary.
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
 | 
					# The solution for now is to be permissive and allow all
 | 
				
			||||||
 | 
					# features by default for any client.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Configures enabled compositor features for specific programs
 | 
				
			||||||
 | 
					permit * fullscreen keyboard mouse background screenshot panel lock 
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -93,6 +93,10 @@ endfunction()
 | 
				
			||||||
add_config(config config sway)
 | 
					add_config(config config sway)
 | 
				
			||||||
add_config(00-defaults security.d/00-defaults sway/security.d)
 | 
					add_config(00-defaults security.d/00-defaults sway/security.d)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					if (CMAKE_SYSTEM_NAME STREQUAL FreeBSD)
 | 
				
			||||||
 | 
					    add_config(10-freebsd security.d/10-freebsd sway/security.d)
 | 
				
			||||||
 | 
					endif (CMAKE_SYSTEM_NAME STREQUAL FreeBSD)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if (A2X_FOUND)
 | 
					if (A2X_FOUND)
 | 
				
			||||||
    add_manpage(sway 1)
 | 
					    add_manpage(sway 1)
 | 
				
			||||||
    add_manpage(sway 5)
 | 
					    add_manpage(sway 5)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue