From: Karel Zak Date: Tue, 5 Jun 2012 15:38:09 +0000 (+0200) Subject: build-sys: suid su in make install X-Git-Tag: v2.22-rc1~313 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d07dc5e4eebdd80c08be5ba941505c3603bca010;p=thirdparty%2Futil-linux.git build-sys: suid su in make install Signed-off-by: Karel Zak --- diff --git a/login-utils/Makefile.am b/login-utils/Makefile.am index f55119199b..e061ab5edd 100644 --- a/login-utils/Makefile.am +++ b/login-utils/Makefile.am @@ -111,8 +111,6 @@ vipw_LDADD = if HAVE_SELINUX vipw_LDADD += -lselinux endif -install-exec-hook:: - cd $(DESTDIR)$(usrsbin_execdir) && ln -sf vipw vigr endif # BUILD_VIPW @@ -122,3 +120,14 @@ test_islocal_CPPFLAGS = -DTEST_PROGRAM $(AM_CPPFLAGS) test_logindefs_SOURCES = logindefs.c logindefs.h test_logindefs_CPPFLAGS = -DTEST_PROGRAM $(AM_CPPFLAGS) + + +install-exec-hook: +if BUILD_SU +if MAKEINSTALL_DO_SETUID + chmod 4755 $(DESTDIR)$(bindir)/su +endif +endif +if BUILD_VIPW + cd $(DESTDIR)$(usrsbin_execdir) && ln -sf vipw vigr +endif