diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2020-12-23 13:09:31 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2020-12-23 13:09:31 +0100 |
commit | ab103ba3496b359f040afa845065976514392071 (patch) | |
tree | 3a8c82895e238976e2944a070efa7535f37954fe | |
parent | 7bcdd1b5d896816f6d403f86cd315819d0d03d07 (diff) | |
download | plan9front-ab103ba3496b359f040afa845065976514392071.tar.xz |
devproc: allow anyone to change user of its own processes to "none"
-rw-r--r-- | sys/src/9/port/devproc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/9/port/devproc.c b/sys/src/9/port/devproc.c index ec630306f..bf2c70a40 100644 --- a/sys/src/9/port/devproc.c +++ b/sys/src/9/port/devproc.c @@ -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); } |