The libselinux utilities are mostly wrappers around libselinux functionality accessing the selinuxfs, which is largely usable for unprivileged users. Install the utilities into the normal path to be found in scripts run by unprivileged users. Signed-off-by: Christian Göttsche <cgzones@xxxxxxxxxxxxxx> --- libselinux/utils/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libselinux/utils/Makefile b/libselinux/utils/Makefile index 801066cb..739f2020 100644 --- a/libselinux/utils/Makefile +++ b/libselinux/utils/Makefile @@ -1,6 +1,6 @@ # Installation directories. PREFIX ?= /usr -SBINDIR ?= $(PREFIX)/sbin +BINDIR ?= $(PREFIX)/bin OS ?= $(shell uname) @@ -56,8 +56,8 @@ sefcontext_compile: LDLIBS += ../src/libselinux.a $(PCRE_LDLIBS) -lsepol all: $(TARGETS) install: all - -mkdir -p $(DESTDIR)$(SBINDIR) - install -m 755 $(TARGETS) $(DESTDIR)$(SBINDIR) + -mkdir -p $(DESTDIR)$(BINDIR) + install -m 755 $(TARGETS) $(DESTDIR)$(BINDIR) clean: rm -f $(TARGETS) *.o *~ -- 2.36.1