devproc: allow anyone to change user of its own processes to "none"
This commit is contained in:
parent
7bcdd1b5d8
commit
ab103ba349
1 changed files with 1 additions and 1 deletions
|
@ -539,7 +539,7 @@ procwstat(Chan *c, uchar *db, int n)
|
|||
error(Eperm);
|
||||
|
||||
if(!emptystr(d->uid) && strcmp(d->uid, p->user) != 0){
|
||||
if(!iseve())
|
||||
if(strcmp(d->uid, "none") != 0 && !iseve())
|
||||
error(Eperm);
|
||||
kstrdup(&p->user, d->uid);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue