mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	dahdiras: Only set plugin dahdi.so to pppd if we're running as root.
Users of this should set plugin dahdi.so in their options file. ASTERISK-16676 Change-Id: I6d01ad0a10e9fea477876d0941c3f38aac357e91
This commit is contained in:
		
				
					committed by
					
						 Kevin Harwell
						Kevin Harwell
					
				
			
			
				
	
			
			
			
						parent
						
							40e93b0240
						
					
				
				
					commit
					4f92dcd66b
				
			| @@ -113,8 +113,10 @@ static pid_t spawn_ras(struct ast_channel *chan, char *args) | ||||
| 		c = strsep(&stringp, ","); | ||||
| 	} | ||||
|  | ||||
| 	argv[argc++] = "plugin"; | ||||
| 	argv[argc++] = "dahdi.so"; | ||||
| 	if (geteuid() == 0) { | ||||
| 		argv[argc++] = "plugin"; | ||||
| 		argv[argc++] = "dahdi.so"; | ||||
| 	} | ||||
| 	argv[argc++] = "stdin"; | ||||
|  | ||||
| 	/* Finally launch PPP */ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user