diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-08-06 11:48:51 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-08-06 11:48:51 +0200 |
commit | b09cd6786047e4572f98a7703992fe96e4312da7 (patch) | |
tree | 04f0d8201424f71950fc4b924a975f933d638843 /sys/src/9/port/segment.c | |
parent | d275add1a89e77c69ef10bd6ed239b48c693bc42 (diff) |
kernel: validnamedup() the name argument for segattach()
this moves the name validation out of segattach() to syssegattach()
to make sure the segment name cannot be changed by the user while
segattach looks at it.
Diffstat (limited to 'sys/src/9/port/segment.c')
-rw-r--r-- | sys/src/9/port/segment.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/src/9/port/segment.c b/sys/src/9/port/segment.c index d7124caef..a9eb26eaf 100644 --- a/sys/src/9/port/segment.c +++ b/sys/src/9/port/segment.c @@ -604,9 +604,6 @@ segattach(Proc *p, ulong attr, char *name, uintptr va, uintptr len) if(va != 0 && va >= USTKTOP) error(Ebadarg); - validaddr((uintptr)name, 1, 0); - vmemchr(name, 0, ~0); - for(sno = 0; sno < NSEG; sno++) if(p->seg[sno] == nil && sno != ESEG) break; |