Skip to content
Snippets Groups Projects
Commit 4f92dcd6 authored by Jaco Kroon's avatar Jaco Kroon Committed by Kevin Harwell
Browse files

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
parent 40e93b02
Branches
Tags
No related merge requests found
...@@ -113,8 +113,10 @@ static pid_t spawn_ras(struct ast_channel *chan, char *args) ...@@ -113,8 +113,10 @@ static pid_t spawn_ras(struct ast_channel *chan, char *args)
c = strsep(&stringp, ","); c = strsep(&stringp, ",");
} }
argv[argc++] = "plugin"; if (geteuid() == 0) {
argv[argc++] = "dahdi.so"; argv[argc++] = "plugin";
argv[argc++] = "dahdi.so";
}
argv[argc++] = "stdin"; argv[argc++] = "stdin";
/* Finally launch PPP */ /* Finally launch PPP */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment