Use the sys_privctl library function.
This commit is contained in:
parent
cf7db577ae
commit
ee2253ec52
1 changed files with 1 additions and 2 deletions
|
@ -372,8 +372,7 @@ struct rproc *rp;
|
|||
* Now, set the privilege structure for the child process to let is run.
|
||||
* This should succeed: we tested number in use above.
|
||||
*/
|
||||
m.PR_PROC_NR = child_proc_nr;
|
||||
if ((s = _taskcall(SYSTEM, SYS_PRIVCTL, &m)) < 0) { /* set privileges */
|
||||
if ((s = sys_privctl(child_proc_nr, SYS_PRIV_INIT, 0, NULL)) < 0) {
|
||||
report("RS","call to SYSTEM failed", s); /* to let child run */
|
||||
if(child_pid > 0) kill(child_pid, SIGKILL); /* kill driver */
|
||||
else report("RS", "didn't kill pid", child_pid);
|
||||
|
|
Loading…
Reference in a new issue