lkml.org 
[lkml]   [2008]   [May]   [23]   [last100]   RSS Feed
Views: [more markup]   [less markup]   [headers]   [forward]  
 
Messages in this thread
/
SubjectRe: capget() overflows buffers.
FromBojan Smojver <>
DateFri, 23 May 2008 14:01:46 +1000
On Thu, 2008-05-22 at 19:06 -0700, Chris Wright wrote:

> 1) switch to using the libcap interface, arguably the best sol'n since
> you know longer have to directly care about the kernel interface.
> only drawback is the additional library dependency.

I'm thinking Squid folks may want to pick this up long term.

> 2) force head->version to the older version, something like:
> 
> #ifdef  _LINUX_CAPABILITY_VERSION_1
>   head->version = _LINUX_CAPABILITY_VERSION_1;
> #else
>   head->version = _LINUX_CAPABILITY_VERSION;
> #endif
> 
> this has the drawback of always using the older 32bit caps, probably
> fine here, since you're not using new caps.

Probably the best short term suggestion. I will post this in my original
bug report.

Thank you for your suggestions!

-- 
Bojan



\
 
 \ /
  Last update: 2008-05-23 06:05    [from the cache]
©2003-2008