[apparmor] [PATCH] binutils: Install to /bin instead of /sbin

Tyler Hicks tyhicks at canonical.com
Thu Dec 17 02:30:23 UTC 2015


aa-enabled should live in /bin, rather than /sbin, since it requires no
root privileges.

Signed-off-by: Tyler Hicks <tyhicks at canonical.com>
---
 binutils/Makefile | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/binutils/Makefile b/binutils/Makefile
index fc6a8f3..3b99c3e 100644
--- a/binutils/Makefile
+++ b/binutils/Makefile
@@ -18,6 +18,7 @@ COMMONDIR=../common/
 include $(COMMONDIR)/Make.rules
 
 DESTDIR=/
+BINDIR=${DESTDIR}bin
 LOCALEDIR=/usr/share/locale
 MANPAGES=aa-enabled.8
 
@@ -133,8 +134,8 @@ install: install-indep install-arch
 
 .PHONY: install-arch
 install-arch: arch
-	install -m 755 -d $(DESTDIR)/sbin
-	install -m 755 ${TOOLS} $(DESTDIR)/sbin
+	install -m 755 -d ${BINDIR}
+	install -m 755 ${TOOLS} ${BINDIR}
 
 .PHONY: install-indep
 install-indep:
-- 
2.5.0




More information about the AppArmor mailing list