2002-09-27 22:57:30

by Olaf Dietsche

[permalink] [raw]
Subject: Re: [PATCH] accessfs v0.6 ported to 2.5.35-lsm1 - 1/2

Greg KH <[email protected]> writes:

> On Fri, Sep 27, 2002 at 08:55:52PM +0200, Olaf Dietsche wrote:
>>
>> +static int cap_ip_prot_sock (int port)
>> +{
>> + if (port && port < PROT_SOCK && !capable(CAP_NET_BIND_SERVICE))
>> + return -EACCES;
>> +
>> + return 0;
>> +}
>> +
>
> Do we really want to force all of the security modules to implement this
> logic (yes, it's the same discussion again...)

I don't understand what you mean. There must be _some_ implementation
for this hook. Of course, everybody's free to do his own.

Regards, Olaf.