ref: fa84b85cc90cf1fc811828cd36f1f57242373237
parent: 1bede8374b6d10239dc38474bca85cec3c356b29
author: Ori Bernstein <ori@eigenstate.org>
date: Thu Nov 30 20:17:20 EST 2023
fs: when passed '-S', allow anyone to mount in permissive mode
--- a/fs.c
+++ b/fs.c
@@ -965,7 +965,7 @@
f.dgid = d.gid;
f.dmode = d.mode;
if(m->aname[0] == '%'){
- if(!ingroup(uid, admid))
+ if(!permissive && !ingroup(uid, admid))
error(Eperm);
f.permit = 1;
}