From ab103ba3496b359f040afa845065976514392071 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Wed, 23 Dec 2020 13:09:31 +0100 Subject: [PATCH] devproc: allow anyone to change user of its own processes to "none" --- sys/src/9/port/devproc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }