Date: Wed, 31 Aug 2005 21:48:08 +0200 From: Jilles Tjoelker <jilles@stack.nl> To: Michael Bushkov <bushman@rsu.ru> Cc: freebsd-current@freebsd.org, Dan Nelson <dnelson@allantgroup.com> Subject: Re: [PATCH] caching daemon release and nsswitch patches Message-ID: <20050831194808.GA12742@stack.nl> In-Reply-To: <20050831231233.T72814@stinger.cc.rsu.ru> References: <20050827170633.Y5409@stinger.cc.rsu.ru> <43123F3B.8070002@FreeBSD.org> <20050829115740.N5409@stinger.cc.rsu.ru> <20050829163025.GA25664@dan.emsphone.com> <20050830172127.E5409@stinger.cc.rsu.ru> <20050831190059.GA23652@stack.nl> <20050831231233.T72814@stinger.cc.rsu.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Aug 31, 2005 at 11:18:19PM +0400, Michael Bushkov wrote: > >On Tue, Aug 30, 2005 at 05:32:52PM +0400, Michael Bushkov wrote: > >>We can't ensure that, I guess. In the upcoming version (before the 1st of > >>September), the cache would be per-user. This would solve all the security > >>problems. In a little while, I'll implement the ability for cached to act > >>as nscd. So you'll be able to choose the behaviour. > >What about setuid/setgid programs then? > >setuid root programs can use root's cache, perhaps a similar thing could > >be done for other setuid programs, but what about setgid? > >perhaps don't cache at all for set*id programs (issetugid(2))? > Per-user cache uses euid as the user identifier. So every setuid program > will use the cache, which corresponds to its euid. > But how can setgid affect the cache operations? Do you see some potential > issue? User X puts some garbled information in the cache for his uid, then starts a setgid program. That setgid program will use the bad data in the cache which is potentially exploitable. -- Jilles Tjoelker
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050831194808.GA12742>