Messages in this thread |  | | | Subject | Re: capget() overflows buffers. | | From | Bojan Smojver <> | | Date | Fri, 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
|  |