Compare commits
	
		
			1 커밋
		
	
	
		
			WIP/enosys
			...
			8f38dc4480
		
	
	| 작성자 | SHA1 | 날짜 | |
|---|---|---|---|
| 8f38dc4480 | 
							
								
								
									
										7
									
								
								exile.c
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								exile.c
									
									
									
									
									
								
							| @@ -1410,6 +1410,11 @@ static int check_policy_sanity(struct exile_policy *policy) | |||||||
| 		{ | 		{ | ||||||
| 			if(syscall_policy->syscall == EXILE_SYSCALL_MATCH_ALL) | 			if(syscall_policy->syscall == EXILE_SYSCALL_MATCH_ALL) | ||||||
| 			{ | 			{ | ||||||
|  | 				if(policy->vow_promises != 0) | ||||||
|  | 				{ | ||||||
|  | 					EXILE_LOG_ERROR("It's not possible to specify a default, all matching syscall policy while also using vows\n"); | ||||||
|  | 					return -1; | ||||||
|  | 				} | ||||||
| 				last_match_all = i; | 				last_match_all = i; | ||||||
| 				match_all_policy = syscall_policy->policy; | 				match_all_policy = syscall_policy->policy; | ||||||
| 			} | 			} | ||||||
| @@ -1420,7 +1425,7 @@ static int check_policy_sanity(struct exile_policy *policy) | |||||||
| 			syscall_policy = syscall_policy->next; | 			syscall_policy = syscall_policy->next; | ||||||
| 			++i; | 			++i; | ||||||
| 		} | 		} | ||||||
| 		if(last_match_all == -1 || i - last_match_all != 1) | 		if(policy->vow_promises == 0 && (last_match_all == -1 || i - last_match_all != 1)) | ||||||
| 		{ | 		{ | ||||||
| 			EXILE_LOG_ERROR("The last entry in the syscall policy list must match all syscalls (default rule)\n"); | 			EXILE_LOG_ERROR("The last entry in the syscall policy list must match all syscalls (default rule)\n"); | ||||||
| 			return -1; | 			return -1; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user