Re: capget() overflows buffers.
From: Bojan Smojver
Date: Fri May 23 2008 - 00:01:59 EST
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/