ref: ab103ba3496b359f040afa845065976514392071
parent: 7bcdd1b5d896816f6d403f86cd315819d0d03d07
author: cinap_lenrek <[email protected]>
date: Wed Dec 23 08:09:31 EST 2020
devproc: allow anyone to change user of its own processes to "none"
--- a/sys/src/9/port/devproc.c
+++ b/sys/src/9/port/devproc.c
@@ -539,7 +539,7 @@
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);
}