plan9fox/sys/src
cinap_lenrek 427e925eea cwfs: add optional uid argument to allow command, unify permission override code
the allow command now takes an optional uid argument for the user
to be granted temporary god status on the fileserver for maintenance.

this was kenji okomotos idea, so thanks :)

remove wstatallow and writeallow flags. instead, we have global:

int allowed;

that contains the uid of the currently allowed user id or -1
if permission checking is globally disabled for the fileserver.
when zero, normal permission checking takes place.

added int isallowed(File*) function that returns non-zero when the
context is the console, or the allowed user. this is also used internally
by iaccess(), so all the extra code of in the callers of iaccess()
is gone now.

dont conflate allowed user with noauth flag and auto-allow on ream.
the installer already knows about noauth and allow flags so theres no
problem with bootstraping.
2014-08-11 22:36:59 +02:00
..
9 kernel: more nil vs 0 cleanup in chan.c 2014-08-08 17:02:10 +02:00
ape expr: fix missing type declarations for match(), which broke on amd64 as pointers dont fit into a long 2014-07-12 03:02:21 +02:00
boot 9bootfat: only check for fat at block 0 on floppy drives (thanks aap) 2013-09-23 21:12:41 +02:00
cmd cwfs: add optional uid argument to allow command, unify permission override code 2014-08-11 22:36:59 +02:00
games games/md: add -2 -3 -a and trailing newline to usage 2014-07-22 17:38:44 -04:00
lib9p remove executable bit from /sys/src/lib9p/ramfs.c 2014-07-03 00:17:28 +02:00
libaml libaml: fix formating 2013-09-07 16:22:35 +02:00
libauth libauth: dont print blobs in auth_proxy error strings 2014-05-24 19:49:54 +02:00
libauthsrv libauthsrv: recognize amd64 $cputype in readnvram() to look for default locations 2014-03-26 23:47:19 +01:00
libavl
libbin
libbio bio: Brdstr, Bopen: set malloc tag to the caller 2014-05-02 04:27:29 +02:00
libc libc: avoid static table and supurious reads in nsec() 2014-05-23 18:56:20 +02:00
libcomplete
libcontrol fix threadsetname usage in few places 2014-05-03 13:07:52 +02:00
libdisk Add alignment hints for e512 ATA drives. 2012-09-09 17:22:12 +12:00
libdraw libdraw: add missing borderop() (thanks aiju) 2014-07-21 18:10:58 +02:00
libfis libfis: do not lie about logical sector units 2012-10-06 22:56:05 +02:00
libflate
libframe libframe: use correct text color on frinsert depending on selection (thanks sl) 2014-07-17 23:29:55 +02:00
libgeometry
libhtml libhtml: fix potential linked list corruption 2013-09-05 00:55:58 +02:00
libhttpd
libip libip: use snprint() in myetheraddr() to prevent accidents 2014-04-28 02:32:06 +02:00
libjson libjson: check for empty string in jsonparse() 2013-11-10 20:11:46 -05:00
liblex liblex: fix allprint() definition (from sources) 2012-10-03 18:18:01 +02:00
libmach libmach: fix break point instruction for little endian MIPS (from sources) 2014-07-13 01:24:55 +02:00
libmemdraw libmemdraw: improve readbyte() and writebyte() routines 2014-04-12 21:59:52 +02:00
libmemlayer draw: fix drawing of replicated source image on memlayer with a clip rectangle 2013-12-09 03:35:01 +01:00
libmp libc and ape support for amd64 2014-02-01 10:31:41 +01:00
libndb ndb: recognize ip6.arpa postfix in mkptrname() 2012-08-02 22:20:55 +02:00
liboventi
libplumb libplumb: search for plumber only at /mnt/plumb, and don't try to mount $plumbsrv if the search fails 2013-10-31 04:26:01 -04:00
libregexp
libscribble
libsec libsec: use u32int instead of uint when we need 32 bit (thanks erik) 2014-06-12 14:05:10 +02:00
libstdio libstdio: avoid issues with aliasing in dtoa() on amd64 (from 9atom, thanks to erik and charles) 2014-06-12 20:14:12 +02:00
libString
libsunrpc
libthread libthread: avoid calling thread waiting for fork/execed process to finish if we dont have to 2013-12-06 05:03:35 +01:00
libventi libventi: handle nil connection in rpc as error instead of crashing (from sources) 2013-01-25 14:19:18 +01:00
mkfile make libjson from /sys/src/cmd/btc/json.c 2013-10-27 15:44:33 -04:00
mkfile.proto import updated compilers from sources 2012-07-30 19:11:16 +02:00
NOTICE