blob: e2f8b3b057355789246f2ddeee59da3e5755b5ef [file] [log] [blame]
Brad Bishopd7bf8c12018-02-25 22:55:05 -05001From 3e13a006fe3dff9489269274093bf868532036e2 Mon Sep 17 00:00:00 2001
2From: Saul Wold <sgw@linux.intel.com>
3Date: Tue, 5 Sep 2017 16:02:55 -0700
4Subject: [PATCH] staprun/stapbpf: don't support installing a non-root
5
6Since we are in a known environment and installing as root and
7expect to be running as root, don't create the group or chmod
8the binaries.
9
10Upstream-Status: Inappropriate [Embedded]
11Signed-off-by: Saul Wold <sgw@linux.intel.com>
12---
13 stapbpf/Makefile.am | 14 +++++++-------
14 staprun/Makefile.am | 12 ++++++------
15 2 files changed, 13 insertions(+), 13 deletions(-)
16
Brad Bishop19323692019-04-05 15:28:33 -040017Index: git/stapbpf/Makefile.am
18===================================================================
19--- git.orig/stapbpf/Makefile.am
20+++ git/stapbpf/Makefile.am
21@@ -41,10 +41,10 @@
Brad Bishopd7bf8c12018-02-25 22:55:05 -050022
23 # Why the "id -u" condition? This way, an unprivileged user can run
24 # make install, and have "sudo stap ...." or "sudo stapbpf ...." work later.
25-install-exec-hook:
Brad Bishop19323692019-04-05 15:28:33 -040026- if [ `id -u` -eq 0 ] && (getent group stapusr >/dev/null \
27- || groupadd -f -g 156 -r stapusr); then \
28- chgrp stapusr "$(DESTDIR)$(bindir)/stapbpf" \
Brad Bishopd7bf8c12018-02-25 22:55:05 -050029- && chmod 04110 "$(DESTDIR)$(bindir)/stapbpf"; \
30- fi
31+#install-exec-hook:
Brad Bishop19323692019-04-05 15:28:33 -040032+## if [ `id -u` -eq 0 ] && (getent group stapusr >/dev/null \
33+## || groupadd -f -g 156 -r stapusr); then \
34+## chgrp stapusr "$(DESTDIR)$(bindir)/stapbpf" \
Brad Bishopd7bf8c12018-02-25 22:55:05 -050035+# && chmod 04110 "$(DESTDIR)$(bindir)/stapbpf"; \
36+# fi
37 endif