mirror of
git://git.9front.org/plan9front/plan9front
synced 2025-01-12 11:10:06 +00:00
lib9p: add "authok" flag to Srv struct
We want to implement "none" attaches for hjfs, but only if the 9p-"channel" ran a successfull authentication before, to prevent anonymous remote mounts as "none". Add a flag to the Srv struct for this.
This commit is contained in:
parent
07aa9bfeef
commit
a97ee572b9
2 changed files with 2 additions and 0 deletions
|
@ -233,6 +233,7 @@ struct Srv {
|
|||
Ref rref; /* requests in flight */
|
||||
|
||||
int spid; /* pid of srv() caller */
|
||||
int authok; /* auth was done on this channel (for none) */
|
||||
|
||||
void (*forker)(void (*)(void*), void*, int);
|
||||
void (*free)(Srv*);
|
||||
|
|
|
@ -30,6 +30,7 @@ listensrv(Srv *os, char *addr)
|
|||
memset(&s->sref, 0, sizeof(s->sref));
|
||||
memset(&s->rref, 0, sizeof(s->rref));
|
||||
s->spid = 0;
|
||||
s->authok = 0;
|
||||
s->free = nil;
|
||||
|
||||
if(s->forker == nil)
|
||||
|
|
Loading…
Reference in a new issue