[PATCH] warning: `squid' uses 32-bit capabilities

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Tue, 06 Oct 2009 00:46:07 +1300

Amos Jeffries wrote:
> On Sun, 04 Oct 2009 13:48:07 +0200, Alexander Huemer
> <alexander.huemer_at_sbg.ac.at> wrote:
>> hi,
>>
>>
>> i am using squid-3.0.19 on a gentoo linux x86 system, kernel 2.6.31.1,
>> libcap-2.17.
>> when starting squid i get the following message in the system log
>>
>> Oct 03 21:46:23 [kernel] warning: `squid' uses 32-bit capabilities
>> (legacy support in use)
>>
>> i believe this is because of the code in function restoreCapabilities,
>> located src/tools.cc, lines 1356-EOF.
>> is there a chance to patch that area so that it is aware of
>> _LINUX_CAPABILITY_VERSION_3 ?
>> that should make that warning go away. i believe that because of [1].
>> i also checked the latest beta of squid (3.1.0.13) where the code is
>> similar.
>> in case this should go on the dev mailing list, please tell me, i will
>> be happy to post again.
>>
>> kind regards and thanks in advance
>> -alex
>>
>> [1]: http://bugs.gentoo.org/220167

I'm going to dare and hope that the fix really is this simple :)

Requires a suitably new version of libcap2 (specifically 2.10+) is
available for linkage.

Without the right linkage at build Squid will continue to trigger kernel
messages.

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE7 or 3.0.STABLE19
   Current Beta Squid 3.1.0.14

Received on Mon Oct 05 2009 - 11:53:09 MDT

This archive was generated by hypermail 2.2.0 : Wed Oct 28 2009 - 12:00:05 MDT