Add target for "make splint". A few files need extra guards to avoid
errors on systems where they would not otherwise be compiled. No warnings from splint.
This commit is contained in:
11
Makefile.in
11
Makefile.in
@@ -86,6 +86,9 @@ XGETTEXT_OPTS = -F -k_ -kN_ -kU_ --copyright-holder="Todd C. Miller" \
|
|||||||
# Default cppcheck options when run from the top-level Makefile
|
# Default cppcheck options when run from the top-level Makefile
|
||||||
CPPCHECK_OPTS = -q --force --enable=warning,performance,portability --suppress=constStatement --error-exitcode=1 --inline-suppr -Dva_copy=va_copy -U__cplusplus -UQUAD_MAX -UQUAD_MIN -UUQUAD_MAX -U_POSIX_HOST_NAME_MAX -U_POSIX_PATH_MAX -U__NBBY -DNSIG=64
|
CPPCHECK_OPTS = -q --force --enable=warning,performance,portability --suppress=constStatement --error-exitcode=1 --inline-suppr -Dva_copy=va_copy -U__cplusplus -UQUAD_MAX -UQUAD_MIN -UUQUAD_MAX -U_POSIX_HOST_NAME_MAX -U_POSIX_PATH_MAX -U__NBBY -DNSIG=64
|
||||||
|
|
||||||
|
# Default splint options when run from the top-level Makefile
|
||||||
|
SPLINT_OPTS = -D__restrict= -checks
|
||||||
|
|
||||||
all: config.status
|
all: config.status
|
||||||
for d in $(SUBDIRS); do \
|
for d in $(SUBDIRS); do \
|
||||||
(cd $$d && exec $(MAKE) $@) && continue; \
|
(cd $$d && exec $(MAKE) $@) && continue; \
|
||||||
@@ -106,6 +109,14 @@ cppcheck: config.status
|
|||||||
done; \
|
done; \
|
||||||
exit $$rval
|
exit $$rval
|
||||||
|
|
||||||
|
splint: config.status
|
||||||
|
rval=0; \
|
||||||
|
for d in $(SUBDIRS); do \
|
||||||
|
echo splinting $$d; \
|
||||||
|
(cd $$d && exec $(MAKE) SPLINT_OPTS="$(SPLINT_OPTS)" $@) || rval=`expr $$rval + $$?`; \
|
||||||
|
done; \
|
||||||
|
exit $$rval
|
||||||
|
|
||||||
install-dirs install-binaries install-includes install-plugin: config.status pre-install
|
install-dirs install-binaries install-includes install-plugin: config.status pre-install
|
||||||
for d in $(SUBDIRS); do \
|
for d in $(SUBDIRS); do \
|
||||||
(cd $$d && exec $(MAKE) "INSTALL_OWNER=$(INSTALL_OWNER)" $@) && continue; \
|
(cd $$d && exec $(MAKE) "INSTALL_OWNER=$(INSTALL_OWNER)" $@) && continue; \
|
||||||
|
@@ -338,6 +338,8 @@ uninstall:
|
|||||||
$(DESTDIR)$(mandirform)/sudoers.$(mansectform) \
|
$(DESTDIR)$(mandirform)/sudoers.$(mansectform) \
|
||||||
$(DESTDIR)$(mandirform)/sudoers.ldap.$(mansectform)
|
$(DESTDIR)$(mandirform)/sudoers.ldap.$(mansectform)
|
||||||
|
|
||||||
|
splint:
|
||||||
|
|
||||||
cppcheck:
|
cppcheck:
|
||||||
|
|
||||||
check:
|
check:
|
||||||
|
@@ -77,6 +77,8 @@ install-plugin:
|
|||||||
uninstall:
|
uninstall:
|
||||||
-rm -rf $(DESTDIR)$(exampledir)
|
-rm -rf $(DESTDIR)$(exampledir)
|
||||||
|
|
||||||
|
splint:
|
||||||
|
|
||||||
cppcheck:
|
cppcheck:
|
||||||
|
|
||||||
check:
|
check:
|
||||||
|
@@ -73,6 +73,8 @@ install-plugin:
|
|||||||
uninstall:
|
uninstall:
|
||||||
-rm -f $(DESTDIR)$(includedir)/sudo_plugin.h
|
-rm -f $(DESTDIR)$(includedir)/sudo_plugin.h
|
||||||
|
|
||||||
|
splint:
|
||||||
|
|
||||||
cppcheck:
|
cppcheck:
|
||||||
|
|
||||||
check:
|
check:
|
||||||
|
@@ -77,6 +77,9 @@ SHLIB_VERSION = 0:0:0
|
|||||||
# cppcheck options, usually set in the top-level Makefile
|
# cppcheck options, usually set in the top-level Makefile
|
||||||
CPPCHECK_OPTS = -q --force --enable=warning,performance,portability --suppress=constStatement --error-exitcode=1 --inline-suppr -Dva_copy=va_copy -U__cplusplus -UQUAD_MAX -UQUAD_MIN -UUQUAD_MAX -U_POSIX_HOST_NAME_MAX -U_POSIX_PATH_MAX -U__NBBY -DNSIG=64
|
CPPCHECK_OPTS = -q --force --enable=warning,performance,portability --suppress=constStatement --error-exitcode=1 --inline-suppr -Dva_copy=va_copy -U__cplusplus -UQUAD_MAX -UQUAD_MIN -UUQUAD_MAX -U_POSIX_HOST_NAME_MAX -U_POSIX_PATH_MAX -U__NBBY -DNSIG=64
|
||||||
|
|
||||||
|
# splint options, usually set in the top-level Makefile
|
||||||
|
SPLINT_OPTS = -D__restrict= -checks
|
||||||
|
|
||||||
# Regression tests
|
# Regression tests
|
||||||
TEST_PROGS = atofoo_test conf_test hltq_test parseln_test progname_test @COMPAT_TEST_PROGS@
|
TEST_PROGS = atofoo_test conf_test hltq_test parseln_test progname_test @COMPAT_TEST_PROGS@
|
||||||
TEST_LIBS = @LIBS@
|
TEST_LIBS = @LIBS@
|
||||||
@@ -211,6 +214,9 @@ install-plugin:
|
|||||||
uninstall:
|
uninstall:
|
||||||
$(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libexecdir)/sudo/libsudo_util.la
|
$(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libexecdir)/sudo/libsudo_util.la
|
||||||
|
|
||||||
|
splint:
|
||||||
|
splint $(SPLINT_OPTS) -I$(incdir) -I$(top_builddir) -I$(top_srcdir) $(srcdir)/*.c
|
||||||
|
|
||||||
cppcheck:
|
cppcheck:
|
||||||
cppcheck $(CPPCHECK_OPTS) -I$(incdir) -I$(top_builddir) -I$(top_srcdir) $(srcdir)/*.c
|
cppcheck $(CPPCHECK_OPTS) -I$(incdir) -I$(top_builddir) -I$(top_srcdir) $(srcdir)/*.c
|
||||||
|
|
||||||
|
@@ -134,6 +134,8 @@ install-plugin:
|
|||||||
uninstall:
|
uninstall:
|
||||||
$(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libexecdir)/sudo/libsudo_z.la
|
$(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libexecdir)/sudo/libsudo_z.la
|
||||||
|
|
||||||
|
splint:
|
||||||
|
|
||||||
cppcheck:
|
cppcheck:
|
||||||
|
|
||||||
check:
|
check:
|
||||||
|
@@ -61,6 +61,9 @@ SSP_LDFLAGS = @SSP_LDFLAGS@
|
|||||||
# cppcheck options, usually set in the top-level Makefile
|
# cppcheck options, usually set in the top-level Makefile
|
||||||
CPPCHECK_OPTS = -q --force --enable=warning,performance,portability --suppress=constStatement --error-exitcode=1 --inline-suppr -Dva_copy=va_copy -U__cplusplus -UQUAD_MAX -UQUAD_MIN -UUQUAD_MAX -U_POSIX_HOST_NAME_MAX -U_POSIX_PATH_MAX -U__NBBY -DNSIG=64
|
CPPCHECK_OPTS = -q --force --enable=warning,performance,portability --suppress=constStatement --error-exitcode=1 --inline-suppr -Dva_copy=va_copy -U__cplusplus -UQUAD_MAX -UQUAD_MIN -UUQUAD_MAX -U_POSIX_HOST_NAME_MAX -U_POSIX_PATH_MAX -U__NBBY -DNSIG=64
|
||||||
|
|
||||||
|
# splint options, usually set in the top-level Makefile
|
||||||
|
SPLINT_OPTS = -D__restrict= -checks
|
||||||
|
|
||||||
# Where to install things...
|
# Where to install things...
|
||||||
prefix = @prefix@
|
prefix = @prefix@
|
||||||
exec_prefix = @exec_prefix@
|
exec_prefix = @exec_prefix@
|
||||||
@@ -137,6 +140,9 @@ uninstall:
|
|||||||
-$(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(plugindir)/group_file.la
|
-$(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(plugindir)/group_file.la
|
||||||
-rm -f $(DESTDIR)$(plugindir)/group_file.so~
|
-rm -f $(DESTDIR)$(plugindir)/group_file.so~
|
||||||
|
|
||||||
|
splint:
|
||||||
|
splint $(SPLINT_OPTS) -I$(incdir) -I$(top_builddir) -I$(top_srcdir) $(srcdir)/*.c
|
||||||
|
|
||||||
cppcheck:
|
cppcheck:
|
||||||
cppcheck $(CPPCHECK_OPTS) -I$(incdir) -I$(top_builddir) -I$(top_srcdir) $(srcdir)/*.c
|
cppcheck $(CPPCHECK_OPTS) -I$(incdir) -I$(top_builddir) -I$(top_srcdir) $(srcdir)/*.c
|
||||||
|
|
||||||
|
@@ -60,6 +60,9 @@ SSP_LDFLAGS = @SSP_LDFLAGS@
|
|||||||
# cppcheck options, usually set in the top-level Makefile
|
# cppcheck options, usually set in the top-level Makefile
|
||||||
CPPCHECK_OPTS = -q --force --enable=warning,performance,portability --suppress=constStatement --error-exitcode=1 --inline-suppr -Dva_copy=va_copy -U__cplusplus -UQUAD_MAX -UQUAD_MIN -UUQUAD_MAX -U_POSIX_HOST_NAME_MAX -U_POSIX_PATH_MAX -U__NBBY -DNSIG=64
|
CPPCHECK_OPTS = -q --force --enable=warning,performance,portability --suppress=constStatement --error-exitcode=1 --inline-suppr -Dva_copy=va_copy -U__cplusplus -UQUAD_MAX -UQUAD_MIN -UUQUAD_MAX -U_POSIX_HOST_NAME_MAX -U_POSIX_PATH_MAX -U__NBBY -DNSIG=64
|
||||||
|
|
||||||
|
# splint options, usually set in the top-level Makefile
|
||||||
|
SPLINT_OPTS = -D__restrict= -checks
|
||||||
|
|
||||||
# Where to install things...
|
# Where to install things...
|
||||||
prefix = @prefix@
|
prefix = @prefix@
|
||||||
exec_prefix = @exec_prefix@
|
exec_prefix = @exec_prefix@
|
||||||
@@ -136,6 +139,9 @@ uninstall:
|
|||||||
-$(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(plugindir)/sample_plugin.la
|
-$(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(plugindir)/sample_plugin.la
|
||||||
-rm -f $(DESTDIR)$(plugindir)/sample_plugin.so~
|
-rm -f $(DESTDIR)$(plugindir)/sample_plugin.so~
|
||||||
|
|
||||||
|
splint:
|
||||||
|
splint $(SPLINT_OPTS) -I$(incdir) -I$(top_builddir) -I$(top_srcdir) $(srcdir)/*.c
|
||||||
|
|
||||||
cppcheck:
|
cppcheck:
|
||||||
cppcheck $(CPPCHECK_OPTS) -I$(incdir) -I$(top_builddir) -I$(top_srcdir) $(srcdir)/*.c
|
cppcheck $(CPPCHECK_OPTS) -I$(incdir) -I$(top_builddir) -I$(top_srcdir) $(srcdir)/*.c
|
||||||
|
|
||||||
|
@@ -79,6 +79,9 @@ SSP_LDFLAGS = @SSP_LDFLAGS@
|
|||||||
# cppcheck options, usually set in the top-level Makefile
|
# cppcheck options, usually set in the top-level Makefile
|
||||||
CPPCHECK_OPTS = -q --force --enable=warning,performance,portability --suppress=constStatement --error-exitcode=1 --inline-suppr -Dva_copy=va_copy -U__cplusplus -UQUAD_MAX -UQUAD_MIN -UUQUAD_MAX -U_POSIX_HOST_NAME_MAX -U_POSIX_PATH_MAX -U__NBBY -DNSIG=64
|
CPPCHECK_OPTS = -q --force --enable=warning,performance,portability --suppress=constStatement --error-exitcode=1 --inline-suppr -Dva_copy=va_copy -U__cplusplus -UQUAD_MAX -UQUAD_MIN -UUQUAD_MAX -U_POSIX_HOST_NAME_MAX -U_POSIX_PATH_MAX -U__NBBY -DNSIG=64
|
||||||
|
|
||||||
|
# splint options, usually set in the top-level Makefile
|
||||||
|
SPLINT_OPTS = -D__restrict= -checks
|
||||||
|
|
||||||
# Where to install things...
|
# Where to install things...
|
||||||
prefix = @prefix@
|
prefix = @prefix@
|
||||||
exec_prefix = @exec_prefix@
|
exec_prefix = @exec_prefix@
|
||||||
@@ -341,6 +344,9 @@ uninstall:
|
|||||||
-cmp $(DESTDIR)$(sudoersdir)/sudoers $(srcdir)/sudoers >/dev/null && \
|
-cmp $(DESTDIR)$(sudoersdir)/sudoers $(srcdir)/sudoers >/dev/null && \
|
||||||
rm -f $(DESTDIR)$(sudoersdir)/sudoers
|
rm -f $(DESTDIR)$(sudoersdir)/sudoers
|
||||||
|
|
||||||
|
splint:
|
||||||
|
splint $(SPLINT_OPTS) -I$(incdir) -I$(top_builddir) -I$(devdir) -I$(srcdir) -I$(top_srcdir) $(srcdir)/*.c $(srcdir)/auth/*.c
|
||||||
|
|
||||||
cppcheck:
|
cppcheck:
|
||||||
cppcheck $(CPPCHECK_OPTS) -I$(incdir) -I$(top_builddir) -I$(devdir) -I$(srcdir) -I$(top_srcdir) $(srcdir)/*.c $(srcdir)/auth/*.c
|
cppcheck $(CPPCHECK_OPTS) -I$(incdir) -I$(top_builddir) -I$(devdir) -I$(srcdir) -I$(top_srcdir) $(srcdir)/*.c $(srcdir)/auth/*.c
|
||||||
|
|
||||||
|
@@ -21,6 +21,8 @@
|
|||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
|
#ifdef HAVE_AFS
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#ifdef STDC_HEADERS
|
#ifdef STDC_HEADERS
|
||||||
@@ -81,3 +83,5 @@ sudo_afs_verify(struct passwd *pw, char *pass, sudo_auth *auth)
|
|||||||
|
|
||||||
debug_return_int(AUTH_FAILURE);
|
debug_return_int(AUTH_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif HAVE_AFS
|
||||||
|
@@ -20,6 +20,8 @@
|
|||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
|
#ifdef HAVE_AIXAUTH
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#ifdef STDC_HEADERS
|
#ifdef STDC_HEADERS
|
||||||
@@ -183,3 +185,5 @@ sudo_aix_cleanup(struct passwd *pw, sudo_auth *auth)
|
|||||||
|
|
||||||
debug_return_int(AUTH_SUCCESS);
|
debug_return_int(AUTH_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif /* HAVE_AIXAUTH */
|
||||||
|
@@ -21,6 +21,8 @@
|
|||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
|
#ifdef HAVE_BSD_AUTH_H
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#ifdef STDC_HEADERS
|
#ifdef STDC_HEADERS
|
||||||
@@ -183,3 +185,5 @@ bsdauth_cleanup(struct passwd *pw, sudo_auth *auth)
|
|||||||
|
|
||||||
debug_return_int(AUTH_SUCCESS);
|
debug_return_int(AUTH_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif /* HAVE_BSD_AUTH_H */
|
||||||
|
@@ -35,6 +35,8 @@
|
|||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
|
#ifdef HAVE_DCE
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#ifdef STDC_HEADERS
|
#ifdef STDC_HEADERS
|
||||||
@@ -196,3 +198,5 @@ check_dce_status(error_status_t input_status, char *comment)
|
|||||||
(void) fprintf(stderr, "%s %s\n", comment, error_string);
|
(void) fprintf(stderr, "%s %s\n", comment, error_string);
|
||||||
debug_return_int(1);
|
debug_return_int(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif /* HAVE_DCE */
|
||||||
|
@@ -21,6 +21,8 @@
|
|||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
|
#ifdef HAVE_FWTK
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#ifdef STDC_HEADERS
|
#ifdef STDC_HEADERS
|
||||||
@@ -152,3 +154,5 @@ sudo_fwtk_cleanup(struct passwd *pw, sudo_auth *auth)
|
|||||||
auth_close();
|
auth_close();
|
||||||
debug_return_int(AUTH_SUCCESS);
|
debug_return_int(AUTH_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif /* HAVE_FWTK */
|
||||||
|
@@ -24,6 +24,8 @@
|
|||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
|
#ifdef HAVE_KERB5
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#ifdef STDC_HEADERS
|
#ifdef STDC_HEADERS
|
||||||
@@ -326,3 +328,5 @@ verify_krb_v5_tgt(krb5_context sudo_context, krb5_creds *cred, char *auth_name)
|
|||||||
debug_return_int(error);
|
debug_return_int(error);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif /* HAVE_KERB5 */
|
||||||
|
@@ -20,6 +20,8 @@
|
|||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
|
#ifdef HAVE_PAM
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#ifdef STDC_HEADERS
|
#ifdef STDC_HEADERS
|
||||||
@@ -408,3 +410,5 @@ done:
|
|||||||
}
|
}
|
||||||
debug_return_int(ret);
|
debug_return_int(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif /* HAVE_PAM */
|
||||||
|
@@ -21,6 +21,8 @@
|
|||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
|
#if defined(HAVE_SKEY) || defined(HAVE_OPIE)
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#ifdef STDC_HEADERS
|
#ifdef STDC_HEADERS
|
||||||
@@ -133,3 +135,5 @@ sudo_rfc1938_verify(struct passwd *pw, char *pass, sudo_auth *auth)
|
|||||||
else
|
else
|
||||||
debug_return_int(AUTH_FAILURE);
|
debug_return_int(AUTH_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif /* HAVE_SKEY || HAVE_OPIE */
|
||||||
|
@@ -20,6 +20,8 @@
|
|||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
|
#ifdef HAVE_GETPRPWNAM
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#ifdef STDC_HEADERS
|
#ifdef STDC_HEADERS
|
||||||
@@ -116,3 +118,5 @@ sudo_secureware_cleanup(pw, auth)
|
|||||||
}
|
}
|
||||||
debug_return_int(AUTH_SUCCESS);
|
debug_return_int(AUTH_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif /* HAVE_GETPRPWNAM */
|
||||||
|
@@ -25,6 +25,8 @@
|
|||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
|
#ifdef HAVE_SECURID
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#ifdef STDC_HEADERS
|
#ifdef STDC_HEADERS
|
||||||
@@ -222,3 +224,5 @@ then enter the new token code.\n", \
|
|||||||
/* Return stored state to calling process */
|
/* Return stored state to calling process */
|
||||||
debug_return_int(rval);
|
debug_return_int(rval);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif /* HAVE_SECURID */
|
||||||
|
@@ -23,6 +23,8 @@
|
|||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
|
#ifdef HAVE_SIA_SES_INIT
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#ifdef STDC_HEADERS
|
#ifdef STDC_HEADERS
|
||||||
@@ -153,3 +155,5 @@ sudo_sia_cleanup(struct passwd *pw, sudo_auth *auth)
|
|||||||
sudo_efree(sudo_argv);
|
sudo_efree(sudo_argv);
|
||||||
debug_return_int(AUTH_SUCCESS);
|
debug_return_int(AUTH_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif /* HAVE_SIA_SES_INIT */
|
||||||
|
@@ -17,6 +17,8 @@
|
|||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
|
#ifdef HAVE_BSM_AUDIT
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
#include <bsm/audit.h>
|
#include <bsm/audit.h>
|
||||||
@@ -260,3 +262,5 @@ bsm_audit_failure(char *exec_args[], char const *const fmt, va_list ap)
|
|||||||
}
|
}
|
||||||
debug_return_int(0);
|
debug_return_int(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif /* HAVE_BSM_AUDIT */
|
||||||
|
@@ -16,6 +16,8 @@
|
|||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
|
#ifdef HAVE_LINUX_AUDIT
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#ifdef STDC_HEADERS
|
#ifdef STDC_HEADERS
|
||||||
@@ -103,3 +105,5 @@ done:
|
|||||||
|
|
||||||
debug_return_int(rc);
|
debug_return_int(rc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif /* HAVE_LINUX_AUDIT */
|
||||||
|
@@ -16,6 +16,8 @@
|
|||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
|
#ifdef HAVE_SOLARIS_AUDIT
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@@ -123,3 +125,5 @@ solaris_audit_failure(int argc, char *argv[], char const *const fmt, va_list ap)
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif /* HAVE_SOLARIS_AUDIT */
|
||||||
|
@@ -19,6 +19,8 @@
|
|||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
|
#ifdef HAVE_SSSD
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
@@ -1463,3 +1465,5 @@ sudo_sss_display_privs(struct sudo_nss *nss, struct passwd *pw,
|
|||||||
|
|
||||||
debug_return_int(count);
|
debug_return_int(count);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif /* HAVE_SSSD */
|
||||||
|
@@ -61,6 +61,9 @@ SSP_LDFLAGS = @SSP_LDFLAGS@
|
|||||||
# cppcheck options, usually set in the top-level Makefile
|
# cppcheck options, usually set in the top-level Makefile
|
||||||
CPPCHECK_OPTS = -q --force --enable=warning,performance,portability --suppress=constStatement --error-exitcode=1 --inline-suppr -Dva_copy=va_copy -U__cplusplus -UQUAD_MAX -UQUAD_MIN -UUQUAD_MAX -U_POSIX_HOST_NAME_MAX -U_POSIX_PATH_MAX -U__NBBY -DNSIG=64
|
CPPCHECK_OPTS = -q --force --enable=warning,performance,portability --suppress=constStatement --error-exitcode=1 --inline-suppr -Dva_copy=va_copy -U__cplusplus -UQUAD_MAX -UQUAD_MIN -UUQUAD_MAX -U_POSIX_HOST_NAME_MAX -U_POSIX_PATH_MAX -U__NBBY -DNSIG=64
|
||||||
|
|
||||||
|
# splint options, usually set in the top-level Makefile
|
||||||
|
SPLINT_OPTS = -D__restrict= -checks
|
||||||
|
|
||||||
# Where to install things...
|
# Where to install things...
|
||||||
prefix = @prefix@
|
prefix = @prefix@
|
||||||
exec_prefix = @exec_prefix@
|
exec_prefix = @exec_prefix@
|
||||||
@@ -137,6 +140,9 @@ uninstall:
|
|||||||
-$(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(plugindir)/system_group.la
|
-$(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(plugindir)/system_group.la
|
||||||
-rm -f $(DESTDIR)$(plugindir)/system_group.so~
|
-rm -f $(DESTDIR)$(plugindir)/system_group.so~
|
||||||
|
|
||||||
|
splint:
|
||||||
|
splint $(SPLINT_OPTS) -I$(incdir) -I$(top_builddir) -I$(top_srcdir) $(srcdir)/*.c
|
||||||
|
|
||||||
cppcheck:
|
cppcheck:
|
||||||
cppcheck $(CPPCHECK_OPTS) -I$(incdir) -I$(top_builddir) -I$(top_srcdir) $(srcdir)/*.c
|
cppcheck $(CPPCHECK_OPTS) -I$(incdir) -I$(top_builddir) -I$(top_srcdir) $(srcdir)/*.c
|
||||||
|
|
||||||
|
@@ -62,6 +62,9 @@ SSP_LDFLAGS = @SSP_LDFLAGS@
|
|||||||
# cppcheck options, usually set in the top-level Makefile
|
# cppcheck options, usually set in the top-level Makefile
|
||||||
CPPCHECK_OPTS = -q --force --enable=warning,performance,portability --suppress=constStatement --error-exitcode=1 --inline-suppr -Dva_copy=va_copy -U__cplusplus -UQUAD_MAX -UQUAD_MIN -UUQUAD_MAX -U_POSIX_HOST_NAME_MAX -U_POSIX_PATH_MAX -U__NBBY -DNSIG=64
|
CPPCHECK_OPTS = -q --force --enable=warning,performance,portability --suppress=constStatement --error-exitcode=1 --inline-suppr -Dva_copy=va_copy -U__cplusplus -UQUAD_MAX -UQUAD_MIN -UUQUAD_MAX -U_POSIX_HOST_NAME_MAX -U_POSIX_PATH_MAX -U__NBBY -DNSIG=64
|
||||||
|
|
||||||
|
# splint options, usually set in the top-level Makefile
|
||||||
|
SPLINT_OPTS = -D__restrict= -checks
|
||||||
|
|
||||||
# Where to install things...
|
# Where to install things...
|
||||||
prefix = @prefix@
|
prefix = @prefix@
|
||||||
exec_prefix = @exec_prefix@
|
exec_prefix = @exec_prefix@
|
||||||
@@ -194,6 +197,9 @@ uninstall:
|
|||||||
-test -n "$(INIT_SCRIPT)" && \
|
-test -n "$(INIT_SCRIPT)" && \
|
||||||
rm -f $(DESTDIR)$(RC_LINK) $(DESTDIR)$(INIT_DIR)/sudo
|
rm -f $(DESTDIR)$(RC_LINK) $(DESTDIR)$(INIT_DIR)/sudo
|
||||||
|
|
||||||
|
splint:
|
||||||
|
splint $(SPLINT_OPTS) -I$(incdir) -I$(top_builddir) -I. -I$(srcdir) -I$(top_srcdir) $(srcdir)/*.c
|
||||||
|
|
||||||
cppcheck:
|
cppcheck:
|
||||||
cppcheck $(CPPCHECK_OPTS) -I$(incdir) -I$(top_builddir) -I. -I$(srcdir) -I$(top_srcdir) $(srcdir)/*.c
|
cppcheck $(CPPCHECK_OPTS) -I$(incdir) -I$(top_builddir) -I. -I$(srcdir) -I$(top_srcdir) $(srcdir)/*.c
|
||||||
|
|
||||||
|
@@ -26,6 +26,8 @@
|
|||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
|
#ifdef HAVE_SELINUX
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@@ -418,3 +420,5 @@ selinux_execve(const char *path, char *const argv[], char *const envp[],
|
|||||||
errno = serrno;
|
errno = serrno;
|
||||||
debug_return;
|
debug_return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif /* HAVE_SELINUX */
|
||||||
|
Reference in New Issue
Block a user