Re: [MERGE] Use libcap instead of direct linux capability syscalls

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Mon, 19 Oct 2009 12:10:22 +1300

Henrik Nordstrom wrote:
> fre 2009-10-16 klockan 02:04 +0200 skrev Henrik Nordstrom:
>> fre 2009-10-16 klockan 11:03 +1300 skrev Amos Jeffries:
>>
>>> /* NP: keep these two if-endif separate. Non-Linux work perfectly well
>> Sorry.. thought I had fixed that already..
>>
>>> +#define PUSH_CAP(cap) cap_list[ncaps++] = (cap)
>>>
>>> I can just see that converting to:
>>> CAP_NET_ADMIN_ist[nCAP_NET_ADMINs++]=(CAP_NET_ADMIN) ...
>> Nope.. preprocessor is tokens based. But as this macro is farily simple
>> now it can just as well be expanded. I think the plan was to eventually
>> C++ encapsulate these details, but that's overkill here.
>>
>> Updated patch attaced.
>
>
> Crap. libcap on centos is not usable.
>
> Regards
> Henrik
>

Um, is that function libcap2 specific?

It may be related to the LIBCAP_BROKEN identifier or another such test
for the specific function may be worth adding...

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE7 or 3.0.STABLE19
   Current Beta Squid 3.1.0.14
Received on Sun Oct 18 2009 - 23:10:26 MDT

This archive was generated by hypermail 2.2.0 : Tue Oct 20 2009 - 12:00:05 MDT