Commit graph

19 commits

Author SHA1 Message Date
cinap_lenrek b76a78c1a1 cwfs: fix %.*s format in cmd_printconf() 2019-02-25 04:36:37 +01:00
cinap_lenrek 0ce50ebc57 cwfs: remove 9p1 support 2015-08-21 18:43:25 +02:00
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
cinap_lenrek 4c639475ce cwfs: fix 1GB memsize limitation
the malloc pool allocator is limited in its allocation
size. as almost all data structures in cwfs are never
freed, use brk() in ialloc() instead of mallocalign().
this means memory returned by ialloc() cannot be freed!

to make sure we do not call free by accident, remove
the #define malloc(n) ialloc(n, 0) macro and use ialloc()
directly as in the original code to show the intend
of permanent allocations.
2014-05-03 00:51:45 +02:00
cinap_lenrek 52b500af61 cwfs: make none attach work
allow attach as none. (this was supposed to work but it
doesnt for 9p2000 because we have to check for
afid being NOFID instead of checking the uname string).

and add "nonone" flag to disable this.
2012-12-07 06:30:26 +01:00
cinap_lenrek ffc58b3429 cwfs: make sure we do a full dump after toggling noatime 2012-07-24 19:42:18 +02:00
cinap_lenrek 8099d78f44 cwfs: noatime flag 2012-07-14 23:49:17 +02:00
cinap_lenrek 53f5bdfd06 cwfs: set whochan for who command, cleanup 2012-07-12 21:00:12 +02:00
cinap_lenrek 67bb0a2c7a cwfs: store newcache format option in config 2011-06-11 14:19:07 +00:00
cinap_lenrek f7b678fd6b cwfs: allow reseting noauth and readonly config options 2011-05-01 00:48:29 +00:00
cinap_lenrek 06db9d4d68 cwfs: back to previous version 2011-04-29 14:45:17 +00:00
cinap_lenrek 9e0948ab2f cwfs: fix config mode 2011-04-29 14:22:04 +00:00
cinap_lenrek eb7a73034c cwfs: remove startup delay 2011-04-29 09:43:03 +00:00
cinap_lenrek d1a1034cbe cwfs: reduce verbosity, added -d options if you want it anyway 2011-04-28 19:40:57 +00:00
cinap_lenrek 65b058830b cwfs: ignore nvram check error 2011-04-17 10:50:35 +00:00
cinap_lenrek 95758309f3 cwfs: make noauth a storable config option so one can boot without factotum and nvram 2011-04-17 09:29:38 +00:00
cinap_lenrek 67e93d6a0a updating cwfs and moving installer in /rc/bin 2011-04-12 15:53:55 +00:00
Taru Karttunen a9060cc06b Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
Taru Karttunen e5888a1ffd Import sources from 2011-03-30 iso image 2011-03-30 15:46:40 +03:00