Re: [ANNOUNCE] UidBind LSM 0.1

Roberto De Ioris
2007-04-23T21:05:10Z

[-- Attachment #1: Type: text/plain, Size: 1110 bytes --]

Il giorno lun, 23/04/2007 alle 14.38 -0400, Gerhard Mack ha scritto:
> On Mon, 23 Apr 2007, Roberto De Ioris wrote:
> > Hi all,
> > this is a very simple module that allows bind() to tcp/udp port (>=1024)
> > only for the uids defined in a configfs tree.
> >
> > It is a first version, it only works for PF_INET sockets and makes no
> > difference between tcp and udp (i am working on this)
> >
> > For (little) more info see
> >
> > http://projects.unbit.it/uidbind/
> >
> > Patch attached is for vanilla 2.6.20.7
>
> Is it possible to lock a range of ports to a uid?

I think i can implement something like a configfs item named
'8081-8090', instead of only '8081'.
I will need to validate the range, but its not too difficult.

>
> Also, is it possible to lock a uid to one ip address? For example usera
> can only bind to 10.0.0.23 while userb can only bind to 10.0.0.24.

This is simple to add and i have already a patch for it.
In the next few days i will post it.