Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 276986 | Differences between
and this patch

Collapse All | Expand All

(-)a/src/Makefile.am (-2 / +2 lines)
Lines 147-155 PREOPEN_LIBS = $(modlibexec_LTLIBRARIES) Link Here
147
endif
147
endif
148
148
149
if FORCE_PREOPEN
149
if FORCE_PREOPEN
150
pulseaudio_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) -dlpreopen force $(foreach f,$(PREOPEN_LIBS),-dlpreopen $(f))
150
pulseaudio_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) -Wl,-z,now -dlpreopen force $(foreach f,$(PREOPEN_LIBS),-dlpreopen $(f))
151
else
151
else
152
pulseaudio_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) -dlopen force $(foreach f,$(PREOPEN_LIBS),-dlopen $(f))
152
pulseaudio_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) -Wl,-z,now -dlopen force $(foreach f,$(PREOPEN_LIBS),-dlopen $(f))
153
endif
153
endif
154
154
155
if HAVE_POLKIT
155
if HAVE_POLKIT
(-)a/src/daemon/main.c (-20 lines)
Lines 340-364 int main(int argc, char *argv[]) { Link Here
340
#endif
340
#endif
341
341
342
342
343
#if defined(__linux__) && defined(__OPTIMIZE__)
344
    /*
345
       Disable lazy relocations to make usage of external libraries
346
       more deterministic for our RT threads. We abuse __OPTIMIZE__ as
347
       a check whether we are a debug build or not.
348
    */
349
350
    if (!getenv("LD_BIND_NOW")) {
351
        char *rp;
352
353
        /* We have to execute ourselves, because the libc caches the
354
         * value of $LD_BIND_NOW on initialization. */
355
356
        putenv(pa_xstrdup("LD_BIND_NOW=1"));
357
        pa_assert_se(rp = pa_readlink("/proc/self/exe"));
358
        pa_assert_se(execv(rp, argv) == 0);
359
    }
360
#endif
361
362
#ifdef HAVE_GETUID
343
#ifdef HAVE_GETUID
363
    real_root = getuid() == 0;
344
    real_root = getuid() == 0;
364
    suid_root = !real_root && geteuid() == 0;
345
    suid_root = !real_root && geteuid() == 0;
365
- 

Return to bug 276986