[BACK]Return to doas.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / doas

Diff for /src/usr.bin/doas/doas.c between version 1.44 and 1.45

version 1.44, 2015/10/22 12:43:26 version 1.45, 2015/10/24 19:23:48
Line 421 
Line 421 
         if (!pw)          if (!pw)
                 errx(1, "no passwd entry for target");                  errx(1, "no passwd entry for target");
   
         if (pledge("stdio rpath id exec", NULL) == -1)  
                 err(1, "pledge");  
   
         if (setusercontext(NULL, pw, target, LOGIN_SETGROUP |          if (setusercontext(NULL, pw, target, LOGIN_SETGROUP |
             LOGIN_SETPRIORITY | LOGIN_SETRESOURCES | LOGIN_SETUMASK |              LOGIN_SETPRIORITY | LOGIN_SETRESOURCES | LOGIN_SETUMASK |
             LOGIN_SETUSER) != 0)              LOGIN_SETUSER) != 0)

Legend:
Removed from v.1.44  
changed lines
  Added in v.1.45