[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

fakeroot-0.4.4-9.2 still fails, but here is a patch



Hi, Wichert,

Thanks for your quick response.
Tried fakeroot-0.4.4-9.2, but the problem is still there.
Finally figured out: seteuid() (possiblly setegid() too) needs
to be wrapped, besides (or instead of?) setuid(). Don't know
if there is any impact on security. But I am happy now.

Attached is the little patch, just for convenience.

- T.

diff -Nur fakeroot-0.4.4.orig/libfakeroot.c fakeroot-0.4.4/libfakeroot.c
--- fakeroot-0.4.4.orig/libfakeroot.c   Fri Apr 13 09:56:00 2001
+++ fakeroot-0.4.4/libfakeroot.c        Sat Aug  4 10:55:06 2001
@@ -659,3 +659,11 @@
 int initgroups(const char* user, gid_t group){
   return 0;
 }
+
+int seteuid(uid_t id){
+  return 0;
+}
+
+int setegid(uid_t id){
+  return 0;
+}

On Sat, Aug 04, 2001 at 12:09:42PM +0200, Wichert Akkerman wrote:
> Previously T.R.Y. wrote:
> > dpkg-buildpackage: build architecture is i386
> >  fakeroot debian/rules clean
> > make: *** user_access: seteuid: Operation not permitted.  Stop.
> 
> That looks familiar. The version of fakeroot you are using does not
> wrap the setuid() call which make suddenly started using for some reason.
> That was fixed in version 0.4.4-9.1, so if you try that (or a later)
> version things should work.
> 
> Wichert.



Reply to: