Re: sockfs - a filesystem for reserved port permissions

Darren Reed (darrenr@cyber.com.au)
Fri, 19 Sep 1997 02:37:37 +1000 (EST)


In some mail I received from Malcolm Beattie, sie wrote
>
> Dean Gaudet writes:
> > Unfortunately I don't think this will work with 2.0.30 and later because
> > the anonymous socket allocation code also needs to know these permissions.
> > That's the code which calculates the "random" port for a socket that's
> > bound to port 0.
>
> Surely anonymous sockets shouldn't get bound to port numbers less
> than 1024 (i.e. PROT_SOCK)? The kernel patch I made was a bit wrong
> though. Instead of
[...]

Why not make "1024" configurable ? >:-) But in addition, to defining
anonymous range, I'm suggesting also defining the "root-only" range
with a similar variable.

Afterall, that it implise "root" priviledges is a BSDism which is absent
on PC's.

Darren