From 8a843e03d0cbdf532f9820e475cff1238b114bb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20=27Flameeyes=27=20Petten=C3=B2?= Date: Fri, 6 Apr 2007 16:24:09 +0200 Subject: Properly use chcon over only xineplug and xinepost libraries. This reduces the number of objects that are allowed to contain TEXT section relocations (skipping for instance libxine and the vidix drivers). This is still suboptimal because only those plugins that actually contains text relocation should be allowed to contain them (that is what is done with IMPURE_TEXT_LDFLAGS for Solaris and Darwin). --- misc/Makefile.common | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/misc/Makefile.common b/misc/Makefile.common index 357c19666..3bae6f001 100644 --- a/misc/Makefile.common +++ b/misc/Makefile.common @@ -18,14 +18,18 @@ install-data-hook: fi; \ fi; \ if test -x /usr/bin/chcon -a "`id -u`" -eq 0; then \ - list='$(lib_LTLIBRARIES)'; \ - if test -n "$$list" ; then \ + list='$(xineplug_LTLIBRARIES)'; \ for p in $$list; do \ p="`echo $$p | sed -e 's/\.la$$/\.so/g;s|^.*/||'`"; \ - echo " chcon system_u:object_r:texrel_shlib_t $(DESTDIR)$(libdir)/$$p"; \ - chcon system_u:object_r:texrel_shlib_t $(DESTDIR)$(libdir)/$$p || :; \ + echo " chcon system_u:object_r:texrel_shlib_t $(DESTDIR)$(xineplugdir)/$$p"; \ + chcon system_u:object_r:texrel_shlib_t $(DESTDIR)$(xineplugdir)/$$p || :; \ + done; \ + list='$(xinepost_LTLIBRARIES)'; \ + for p in $$list; do \ + p="`echo $$p | sed -e 's/\.la$$/\.so/g;s|^.*/||'`"; \ + echo " chcon system_u:object_r:texrel_shlib_t $(DESTDIR)$(xinepostdir)/$$p"; \ + chcon system_u:object_r:texrel_shlib_t $(DESTDIR)$(xinepostdir)/$$p || :; \ done; \ - fi; \ fi pass1: -- cgit v1.2.3