[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v2] libs/light: make it build without setresuid()
On 26/01/2021 22:47, Manuel Bouyer wrote: > diff --git a/tools/libs/light/libxl_setresuid.c > b/tools/libs/light/libxl_setresuid.c > new file mode 100644 > index 0000000000..ac5cb5db53 > --- /dev/null > +++ b/tools/libs/light/libxl_setresuid.c > @@ -0,0 +1,23 @@ > +/* > + * Copyright (C) 2021 > + * Author Manuel Bouyer <bouyer@xxxxxxxxxx> > + * > + * This program is free software; you can redistribute it and/or modify > + * it under the terms of the GNU Lesser General Public License as published > + * by the Free Software Foundation; version 2.1 only. with the special > + * exception on linking described in file LICENSE. > + * > + * This program is distributed in the hope that it will be useful, > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > + * GNU Lesser General Public License for more details. > + */ > + > +#include "libxl_osdeps.h" /* must come before any other headers */ > + > +#include "libxl_internal.h" > + > +int libxl__setresuid(uid_t ruid, uid_t euid, uid_t suid) > +{ > + setresuid(ruid, euid, suid); > +} Given the freeze, and discussions on IRC, I have committed most of this series. This particular patch doesn't compile, but I fixed it up. Still outstanding are "NetBSD: use system-provided headers", the followon patches requested in "libs/light: pass some infos to qemu", and "xenpmd.c: use dynamic allocation" which failed like this: https://gitlab.com/xen-project/people/andyhhp/xen/-/jobs/996140268 This latter one I didn't feel confident fixing in a way which didn't break NetBSD, particularly at this point when I'm also racing to get other content ready as well. ~Andrew
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |