umdns: add check for seccomp list
This should fix an issue when user have a router with enabled seccomp and tries to run umdns package which was build with SDK with disabled seccomp support. Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
This commit is contained in:
		 Jan Pavlinec
					Jan Pavlinec
				
			
				
					committed by
					
						 Daniel Golle
						Daniel Golle
					
				
			
			
				
	
			
			
			 Daniel Golle
						Daniel Golle
					
				
			
						parent
						
							f64496f30f
						
					
				
				
					commit
					520403cd49
				
			| @@ -8,7 +8,7 @@ | |||||||
| include $(TOPDIR)/rules.mk | include $(TOPDIR)/rules.mk | ||||||
|  |  | ||||||
| PKG_NAME:=umdns | PKG_NAME:=umdns | ||||||
| PKG_RELEASE:=3 | PKG_RELEASE:=4 | ||||||
|  |  | ||||||
| PKG_SOURCE_URL=$(PROJECT_GIT)/project/mdnsd.git | PKG_SOURCE_URL=$(PROJECT_GIT)/project/mdnsd.git | ||||||
| PKG_SOURCE_PROTO:=git | PKG_SOURCE_PROTO:=git | ||||||
|   | |||||||
| @@ -33,7 +33,7 @@ start_service() { | |||||||
|  |  | ||||||
| 	procd_open_instance | 	procd_open_instance | ||||||
| 	procd_set_param command "$PROG" | 	procd_set_param command "$PROG" | ||||||
| 	procd_set_param seccomp /etc/seccomp/umdns.json | 	[ -f /etc/seccomp/umdns.json ] && procd_set_param seccomp /etc/seccomp/umdns.json | ||||||
| 	procd_set_param respawn | 	procd_set_param respawn | ||||||
| 	procd_open_trigger | 	procd_open_trigger | ||||||
| 	procd_add_config_trigger "config.change" "umdns" /etc/init.d/umdns reload | 	procd_add_config_trigger "config.change" "umdns" /etc/init.d/umdns reload | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user