[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1211515306.20341.19.camel@shrek.rexursive.com>
Date: Fri, 23 May 2008 14:01:46 +1000
From: Bojan Smojver <bojan@...ursive.com>
To: Chris Wright <chrisw@...s-sol.org>
Cc: Dave Jones <davej@...emonkey.org.uk>,
Andrew Morgan <morgan@...nel.org>,
Linux Kernel <linux-kernel@...r.kernel.org>
Subject: Re: capget() overflows buffers.
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists