lkml.org 
[lkml]   [2008]   [May]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: capget() overflows buffers.
From
Date
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    [W:2.031 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site