mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 07:26:15 +01:00
Revert "libgirepository: Refuse to run in setuid applications"
This reverts commit 98bb6c91b710a95efe4cfeb303daeec3381b9c98. It breaks programs simply executed *transitively* from a setuid binary like the dbus daemon launch helper. https://bugzilla.redhat.com/show_bug.cgi?id=1285991 Conflicts: girepository/girepository.c
This commit is contained in:
parent
6b55207f25
commit
569b1dc9a8
@ -27,11 +27,6 @@
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#ifdef HAVE_GETAUXVAL
|
||||
#include <unistd.h>
|
||||
#include <sys/auxv.h>
|
||||
#endif
|
||||
|
||||
#include <glib.h>
|
||||
#include <glib/gprintf.h>
|
||||
#include <gmodule.h>
|
||||
@ -152,14 +147,6 @@ init_globals (void)
|
||||
if (!g_once_init_enter (&initialized))
|
||||
return;
|
||||
|
||||
#ifdef HAVE_GETAUXVAL
|
||||
if (getauxval (AT_SECURE))
|
||||
{
|
||||
g_printerr ("error: libgirepository.so (gobject-introspection) is not audited for use in setuid applications\nSee https://bugzilla.gnome.org/show_bug.cgi?id=755472\n");
|
||||
_exit (1);
|
||||
}
|
||||
#endif
|
||||
|
||||
if (default_repository == NULL)
|
||||
default_repository = g_object_new (G_TYPE_IREPOSITORY, NULL);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user