]> granicus.if.org Git - sudo/commitdiff
Move the invocation of check_noexec into the main "check" target
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 3 May 2017 17:58:40 +0000 (11:58 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 3 May 2017 17:58:40 +0000 (11:58 -0600)
but only run it if not cross compiling and whe CHECK_NOEXEC is not
empty.

configure
configure.ac
src/Makefile.in

index d4bd09ced8bdb9149d2dafa3c57f412cbd06a89f..362179b9fb4c34470863740d4ca19baa82cfdf24 100755 (executable)
--- a/configure
+++ b/configure
@@ -26341,7 +26341,7 @@ if test X"$with_noexec" != X"no" -o X"$with_selinux" != X"no" -o "$enabled_share
 
        # Can't use asan with LD_PRELOAD
        if test "$enable_asan" != "yes"; then
-           CHECK_NOEXEC=check_sudo_noexec
+           CHECK_NOEXEC=check_noexec
        fi
 
        noexec_file="$with_noexec"
index 0730eef5412994447abdce2b52493cdd6012d11b..232b2d732bcaa96408d101b2ff86bca1ba1cdeeb 100644 (file)
@@ -4221,7 +4221,7 @@ if test X"$with_noexec" != X"no" -o X"$with_selinux" != X"no" -o "$enabled_share
 
        # Can't use asan with LD_PRELOAD
        if test "$enable_asan" != "yes"; then
-           CHECK_NOEXEC=check_sudo_noexec
+           CHECK_NOEXEC=check_noexec
        fi
 
        noexec_file="$with_noexec"
index 3a6ec60a2758db4e3fe5d028b09e87f7f135b9b2..22b62e1d2a5e6b36d5fef536b62f458f1aea8a71 100644 (file)
@@ -161,7 +161,7 @@ sudo_noexec.la: libsudo_noexec.la
 sesh: $(SESH_OBJS) $(LT_LIBS)
        $(LIBTOOL) $(LTFLAGS) --mode=link $(CC) -o $@ $(SESH_OBJS) $(LDFLAGS) $(ASAN_LDFLAGS) $(PIE_LDFLAGS) $(SSP_LDFLAGS) $(LIBS)
 
-check_noexec: $(CHECK_NOEXEC_OBJS) $(top_builddir)/lib/util/libsudo_util.la
+check_noexec: $(CHECK_NOEXEC_OBJS) $(top_builddir)/lib/util/libsudo_util.la sudo_noexec.la
        $(LIBTOOL) $(LTFLAGS) --mode=link $(CC) -o $@ $(CHECK_NOEXEC_OBJS) $(TEST_LDFLAGS) $(ASAN_LDFLAGS) $(PIE_LDFLAGS) $(SSP_LDFLAGS) $(TEST_LIBS)
 
 check_ttyname: $(CHECK_TTYNAME_OBJS) $(top_builddir)/lib/util/libsudo_util.la
@@ -236,11 +236,9 @@ cppcheck:
 check: $(TEST_PROGS)
        @if test X"$(cross_compiling)" != X"yes"; then \
            ./check_ttyname; \
-       fi
-
-check_sudo_noexec: sudo_noexec.la check_noexec
-       @if test X"$(cross_compiling)" != X"yes"; then \
-           ./check_noexec .libs/$(noexecfile); \
+           if test X"@CHECK_NOEXEC@" != X""; then \
+               ./check_noexec .libs/$(noexecfile); \
+           fi; \
        fi
 
 clean: