==> Synchronizing chroot copy [/home/alhp/workspace2/chroot/root] -> [build_805fabff-d700-4b24-9478-a16713bd770b]...done ==> Making package: munge 0.5.15-5.2 (Sun Dec 10 03:41:03 2023) ==> Retrieving sources... -> Downloading munge-0.5.15.tar.gz... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 276k 0 276k 0 0 496k 0 --:--:-- --:--:-- --:--:-- 496k -> Found munge.sysusers -> Found munge.tmpfiles ==> Validating source files with sha512sums... munge-0.5.15.tar.gz ... Passed munge.sysusers ... Passed munge.tmpfiles ... Passed ==> Making package: munge 0.5.15-5.2 (Sun Dec 10 03:41:20 2023) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Installing missing dependencies... [?25lresolving dependencies... looking for conflicting packages... Package (10) New Version Net Change core/argon2 20190702-5 0.10 MiB core/cryptsetup 2.6.1-3 2.66 MiB core/dbus 1.14.10-1 0.89 MiB core/device-mapper 2.03.22-2 0.75 MiB core/hwdata 0.377-1 8.95 MiB core/kbd 2.6.3-1 3.14 MiB core/kmod 31-1 0.29 MiB core/popt 1.19-1 0.23 MiB core/procps-ng 4.0.4-2 2.50 MiB core/systemd 255-1 31.27 MiB Total Installed Size: 50.78 MiB :: Proceed with installation? [Y/n] checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing device-mapper... installing popt... installing argon2... installing cryptsetup... installing dbus... installing kbd... installing kmod... installing hwdata... installing systemd... warning: directory permissions differ on /var/log/journal/ filesystem: 755 package: 2755 Creating group 'sys' with GID 3. Creating group 'mem' with GID 8. Creating group 'ftp' with GID 11. Creating group 'mail' with GID 12. Creating group 'log' with GID 19. Creating group 'smmsp' with GID 25. Creating group 'proc' with GID 26. Creating group 'games' with GID 50. Creating group 'lock' with GID 54. Creating group 'network' with GID 90. Creating group 'floppy' with GID 94. Creating group 'scanner' with GID 96. Creating group 'power' with GID 98. Creating group 'nobody' with GID 65534. Creating group 'adm' with GID 999. Creating group 'wheel' with GID 998. Creating group 'utmp' with GID 997. Creating group 'audio' with GID 996. Creating group 'disk' with GID 995. Creating group 'input' with GID 994. Creating group 'kmem' with GID 993. Creating group 'kvm' with GID 992. Creating group 'lp' with GID 991. Creating group 'optical' with GID 990. Creating group 'render' with GID 989. Creating group 'sgx' with GID 988. Creating group 'storage' with GID 987. Creating group 'tty' with GID 5. Creating group 'uucp' with GID 986. Creating group 'video' with GID 985. Creating group 'users' with GID 984. Creating group 'groups' with GID 983. Creating group 'systemd-journal' with GID 982. Creating group 'rfkill' with GID 981. Creating group 'bin' with GID 1. Creating user 'bin' (n/a) with UID 1 and GID 1. Creating group 'daemon' with GID 2. Creating user 'daemon' (n/a) with UID 2 and GID 2. Creating user 'mail' (n/a) with UID 8 and GID 12. Creating user 'ftp' (n/a) with UID 14 and GID 11. Creating group 'http' with GID 33. Creating user 'http' (n/a) with UID 33 and GID 33. Creating user 'nobody' (Kernel Overflow User) with UID 65534 and GID 65534. Creating group 'dbus' with GID 81. Creating user 'dbus' (System Message Bus) with UID 81 and GID 81. Creating group 'systemd-coredump' with GID 980. Creating user 'systemd-coredump' (systemd Core Dumper) with UID 980 and GID 980. Creating group 'systemd-network' with GID 979. Creating user 'systemd-network' (systemd Network Management) with UID 979 and GID 979. Creating group 'systemd-oom' with GID 978. Creating user 'systemd-oom' (systemd Userspace OOM Killer) with UID 978 and GID 978. Creating group 'systemd-journal-remote' with GID 977. Creating user 'systemd-journal-remote' (systemd Journal Remote) with UID 977 and GID 977. Creating group 'systemd-journal-upload' with GID 976. Creating user 'systemd-journal-upload' (systemd Journal Upload) with UID 976 and GID 976. Creating group 'systemd-resolve' with GID 975. Creating user 'systemd-resolve' (systemd Resolver) with UID 975 and GID 975. Creating group 'systemd-timesync' with GID 974. Creating user 'systemd-timesync' (systemd Time Synchronization) with UID 974 and GID 974. Creating group 'tss' with GID 973. Creating user 'tss' (tss user for tpm2) with UID 973 and GID 973. Creating group 'uuidd' with GID 68. Creating user 'uuidd' (n/a) with UID 68 and GID 68. Created symlink /etc/systemd/system/getty.target.wants/getty@tty1.service → /usr/lib/systemd/system/getty@.service. Created symlink /etc/systemd/system/multi-user.target.wants/remote-fs.target → /usr/lib/systemd/system/remote-fs.target. Optional dependencies for systemd libmicrohttpd: systemd-journal-gatewayd and systemd-journal-remote quota-tools: kernel-level quota management systemd-sysvcompat: symlink package to provide sysvinit binaries systemd-ukify: combine kernel and initrd into a signed Unified Kernel Image polkit: allow administration as unprivileged user curl: systemd-journal-upload, machinectl pull-tar and pull-raw [installed] gnutls: systemd-journal-gatewayd and systemd-journal-remote [installed] qrencode: show QR codes iptables: firewall features libbpf: support BPF programs libpwquality: check password quality libfido2: unlocking LUKS2 volumes with FIDO2 token libp11-kit: support PKCS#11 [installed] tpm2-tss: unlocking LUKS2 volumes with TPM2 [installed] installing procps-ng... :: Running post-transaction hooks... ( 1/10) Creating system user accounts... ( 2/10) Updating journal message catalog... ( 3/10) Reloading system manager configuration... Skipped: Current root is not booted. ( 4/10) Reloading user manager configuration... Skipped: Current root is not booted. ( 5/10) Updating udev hardware database... ( 6/10) Applying kernel sysctl settings... Skipped: Current root is not booted. ( 7/10) Creating temporary files... ( 8/10) Reloading device manager configuration... Skipped: Device manager is not running. ( 9/10) Arming ConditionNeedsUpdate... (10/10) Reloading system bus configuration... Skipped: Current root is not booted. [?25h==> Retrieving sources... -> Found munge-0.5.15.tar.gz -> Found munge.sysusers -> Found munge.tmpfiles ==> WARNING: Skipping all source file integrity checks. ==> Extracting sources... -> Extracting munge-0.5.15.tar.gz with bsdtar ==> Starting build()... autoreconf: export WARNINGS=none autoreconf: Entering directory '.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal --force -I m4 autoreconf: configure.ac: tracing autoreconf: running: libtoolize --copy --force libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'. libtoolize: copying file 'build-aux/ltmain.sh' libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'. libtoolize: copying file 'm4/libtool.m4' libtoolize: copying file 'm4/ltoptions.m4' libtoolize: copying file 'm4/ltsugar.m4' libtoolize: copying file 'm4/ltversion.m4' libtoolize: copying file 'm4/lt~obsolete.m4' autoreconf: configure.ac: not using Intltool autoreconf: configure.ac: not using Gtkdoc autoreconf: running: aclocal --force -I m4 autoreconf: running: /usr/bin/autoconf --force autoreconf: running: /usr/bin/autoheader --force autoreconf: running: automake --add-missing --copy --force-missing configure.ac:31: installing 'build-aux/compile' configure.ac:32: installing 'build-aux/config.guess' configure.ac:32: installing 'build-aux/config.sub' configure.ac:28: installing 'build-aux/install-sh' configure.ac:28: installing 'build-aux/missing' src/common/Makefile.am: installing 'build-aux/depcomp' parallel-tests: installing 'build-aux/test-driver' autoreconf: Leaving directory '.' checking for MUNGE socket pathname... default checking for runstatedir... /run checking for systemdunitdir... ${prefix}/lib/systemd/system checking for sysvinitddir... disabled checking for sysconfigdir... ${sysconfdir}/default checking for logrotateddir... disabled checking for pkgconfigdir... ${libdir}/pkgconfig checking for a sense of humor... yes checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a race-free mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether to enable maintainer-specific portions of Makefiles... no checking whether make supports nested variables... (cached) yes checking whether make supports the include directive... yes (GNU style) checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether the compiler supports GNU C... yes checking whether gcc accepts -g... yes checking for gcc option to enable C11 features... none needed checking whether gcc understands -c and -o together... yes checking dependency style of gcc... gcc3 checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.h... yes checking for unistd.h... yes checking for wchar.h... yes checking for minix/config.h... no checking whether it is safe to define __EXTENSIONS__... yes checking whether _XOPEN_SOURCE should be defined... no checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking how to print strings... printf checking for a sed that does not truncate output... /usr/bin/sed checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for fgrep... /usr/bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for file... file checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for ar... ar checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for a working dd... /usr/bin/dd checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1 checking for mt... no checking if : is a manifest tool... no checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking for specified code architecture... no checking for gawk... (cached) gawk checking for gcc... (cached) gcc checking whether the compiler supports GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to enable C11 features... (cached) none needed checking whether gcc understands -c and -o together... (cached) yes checking dependency style of gcc... (cached) gcc3 checking whether ln -s works... yes checking whether make sets $(MAKE)... (cached) yes checking for a sed that does not truncate output... (cached) /usr/bin/sed checking whether debugging is enabled... no checking how to link against pthreads... -lpthread checking for BZ2_bzBuffToBuffCompress in default libs... no checking for BZ2_bzBuffToBuffCompress in -lbz2... yes checking for clock_gettime in default libs... yes checking for compress in default libs... no checking for compress in -lz... yes checking for library containing gethostbyname... none required checking for library containing socket... none required checking for libgcrypt-config... /usr/bin/libgcrypt-config checking for LIBGCRYPT - version >= 1.2.0... yes (1.10.3-unknown) checking LIBGCRYPT API version... okay fgrep: warning: fgrep is obsolescent; using grep -F fgrep: warning: fgrep is obsolescent; using grep -F checking for OpenSSL installation... /usr checking which cryptographic library to use... openssl checking for CRYPTO_THREADID_set_callback... no checking for CRYPTO_num_locks... no checking for CRYPTO_set_id_callback... no checking for CRYPTO_set_locking_callback... no checking for ERR_free_strings... no checking for ERR_load_crypto_strings... no checking for EVP_CIPHER_CTX_cleanup... no checking for EVP_CIPHER_CTX_free... yes checking for EVP_CIPHER_CTX_init... no checking for EVP_CIPHER_CTX_new... yes checking for EVP_CipherFinal... yes checking for EVP_CipherFinal_ex... yes checking for EVP_CipherInit... yes checking for EVP_CipherInit_ex... yes checking for EVP_CipherUpdate... yes checking for EVP_DigestFinal... yes checking for EVP_DigestFinal_ex... yes checking for EVP_DigestInit... yes checking for EVP_DigestInit_ex... yes checking for EVP_DigestUpdate... yes checking for EVP_MAC_CTX_free... yes checking for EVP_MAC_CTX_new... yes checking for EVP_MAC_fetch... yes checking for EVP_MAC_final... yes checking for EVP_MAC_init... yes checking for EVP_MAC_update... yes checking for EVP_MD_CTX_cleanup... no checking for EVP_MD_CTX_copy... yes checking for EVP_MD_CTX_copy_ex... yes checking for EVP_MD_CTX_create... no checking for EVP_MD_CTX_destroy... no checking for EVP_MD_CTX_free... yes checking for EVP_MD_CTX_init... no checking for EVP_MD_CTX_new... yes checking for EVP_Q_mac... yes checking for EVP_aes_128_cbc... yes checking for EVP_aes_256_cbc... yes checking for EVP_sha256... yes checking for EVP_sha512... yes checking for HMAC... yes checking for HMAC_CTX_cleanup... no checking for HMAC_CTX_free... yes checking for HMAC_CTX_init... no checking for HMAC_CTX_new... yes checking for HMAC_Final... yes checking for HMAC_Init... yes checking for HMAC_Init_ex... yes checking for HMAC_Update... yes checking for HMAC_cleanup... no checking for RAND_cleanup... no checking for RAND_pseudo_bytes... yes checking if EVP_CIPHER_CTX_cleanup returns int... no checking if EVP_CipherInit returns int... yes checking if EVP_CipherUpdate returns int... yes checking if EVP_DigestUpdate returns int... yes checking if HMAC_Final returns int... yes checking if HMAC_Init_ex returns int... yes checking if HMAC_Update returns int... yes checking for openssl/core.h... yes checking for openssl/core_names.h... yes checking for openssl/hmac.h... yes checking for openssl/provider.h... yes checking for CRYPTO_dynlock... yes checking for EVP_MAC *... yes checking for EVP_MAC_CTX *... yes checking for OSSL_PARAM *... yes checking for OSSL_PROVIDER *... yes checking for bzlib.h... yes checking for ifaddrs.h... yes checking for standards.h... no checking for sys/random.h... yes checking for zlib.h... yes checking for an ANSI C-conforming const... yes checking how to run the C preprocessor... gcc -E checking for uid_t in sys/types.h... yes checking for socklen_t... yes checking for clock_nanosleep... yes checking for getentropy... yes checking for getifaddrs... yes checking for getrandom... yes checking for localtime_r... yes checking for mlockall... yes checking for sysconf... yes checking for inet_ntop... yes checking for strlcat... yes checking for strlcpy... yes checking for getgrent... yes checking for getgrent_r (AIX)... no checking for getgrent_r (GNU)... yes checking for getgrent_r (SunOS)... no checking for getgrnam... yes checking for getgrnam_r (POSIX)... yes checking for getgrnam_r (SunOS)... no checking for getpwnam... yes checking for getpwnam_r (AIX)... no checking for getpwnam_r (POSIX)... yes checking for getpwnam_r (SunOS)... no configure: checking authentication support checking for getpeereid... no checking for getpeerucred... no checking for ucred.h... no checking for struct ucred... yes checking for SO_PEERCRED sockopt... yes checking for struct xucred... no checking for LOCAL_PEERCRED sockopt... no checking for struct strrecvfd... no checking if file descriptors can be passed over a fifo... no checking for /dev/spx... no checking for authentication method... AUTH_METHOD_SO_PEERCRED checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating src/common/Makefile config.status: creating src/etc/Makefile config.status: creating src/libcommon/Makefile config.status: creating src/libmissing/Makefile config.status: creating src/libmunge/Makefile config.status: creating src/libtap/Makefile config.status: creating src/munge/Makefile config.status: creating src/munged/Makefile config.status: creating src/mungekey/Makefile config.status: creating t/Makefile config.status: creating config.h config.status: executing depfiles commands config.status: executing libtool commands make all-recursive make[1]: Entering directory '/startdir/src/munge-munge-0.5.15' Making all in src make[2]: Entering directory '/startdir/src/munge-munge-0.5.15/src' Making all in common make[3]: Entering directory '/startdir/src/munge-munge-0.5.15/src/common' make[3]: Nothing to be done for 'all'. make[3]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/common' Making all in etc make[3]: Entering directory '/startdir/src/munge-munge-0.5.15/src/etc' GEN munge.logrotate.conf GEN munge.pkgconfig.pc GEN munge.systemd.service GEN munge.systemd.sysconfig GEN munge.sysvinit.init GEN munge.sysvinit.sysconfig GEN munge.tmpfiles.conf make[3]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/etc' Making all in libcommon make[3]: Entering directory '/startdir/src/munge-munge-0.5.15/src/libcommon' CC libcommon_la-daemonpipe.lo CC libcommon_la-fd.lo CC libcommon_la-license.lo CC libcommon_la-log.lo CC libcommon_la-m_msg.lo CC libcommon_la-str.lo CC libcommon_la-version.lo GEN munge.7 CCLD libcommon.la make[3]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/libcommon' Making all in libmissing make[3]: Entering directory '/startdir/src/munge-munge-0.5.15/src/libmissing' CC getopt.lo CC getopt1.lo CCLD libmissing.la make[3]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/libmissing' Making all in libmunge make[3]: Entering directory '/startdir/src/munge-munge-0.5.15/src/libmunge' CC libmunge_la-auth_send.lo CC libmunge_la-ctx.lo CC libmunge_la-decode.lo CC libmunge_la-encode.lo CC libmunge_la-enum.lo CC libmunge_la-m_msg_client.lo CC libmunge_la-strerror.lo GEN munge.3 GEN munge_ctx.3 GEN munge_enum.3 make[4]: Entering directory '/startdir/src/munge-munge-0.5.15/src/libcommon' make[4]: 'libcommon.la' is up to date. make[4]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/libcommon' CCLD libmunge.la make[3]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/libmunge' Making all in libtap make[3]: Entering directory '/startdir/src/munge-munge-0.5.15/src/libtap' make[3]: Nothing to be done for 'all'. make[3]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/libtap' Making all in munge make[3]: Entering directory '/startdir/src/munge-munge-0.5.15/src/munge' CC munge-munge.o CC munge-read.o CC munge-query.o CC munge-xgetgr.o CC munge-xgetpw.o CC munge-xsignal.o make[4]: Entering directory '/startdir/src/munge-munge-0.5.15/src/libcommon' make[4]: 'libcommon.la' is up to date. make[4]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/libcommon' CC remunge-remunge.o CC remunge-query.o CC remunge-xgetgr.o CC remunge-xgetpw.o make[4]: Entering directory '/startdir/src/munge-munge-0.5.15/src/libmissing' make[4]: 'libmissing.la' is up to date. make[4]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/libmissing' make[4]: Entering directory '/startdir/src/munge-munge-0.5.15/src/libmunge' CC remunge-xsignal.o make[5]: Entering directory '/startdir/src/munge-munge-0.5.15/src/libcommon' make[5]: 'libcommon.la' is up to date. make[5]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/libcommon' make[4]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/libmunge' CC unmunge-unmunge.o CC unmunge-read.o CC unmunge-xsignal.o GEN munge.1 GEN remunge.1 GEN unmunge.1 CCLD munge CCLD remunge CCLD unmunge make[3]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/munge' Making all in munged make[3]: Entering directory '/startdir/src/munge-munge-0.5.15/src/munged' CC munged-munged.o CC munged-auth_recv.o CC munged-base64.o CC munged-cipher.o CC munged-clock.o CC munged-conf.o CC munged-cred.o CC munged-dec.o CC munged-enc.o CC munged-gids.o CC munged-hash.o CC munged-job.o CC munged-lock.o CC munged-net.o CC munged-path.o CC munged-random.o CC munged-replay.o CC munged-thread.o CC munged-timer.o CC munged-work.o CC munged-zip.o CC munged-crypto.o CC munged-entropy.o CC munged-mac.o CC munged-md.o CC munged-query.o CC munged-rotate.o CC munged-xgetgr.o CC munged-xgetpw.o CC munged-xsignal.o make[4]: Entering directory '/startdir/src/munge-munge-0.5.15/src/libcommon' make[4]: 'libcommon.la' is up to date. make[4]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/libcommon' make[4]: Entering directory '/startdir/src/munge-munge-0.5.15/src/libmissing' make[4]: 'libmissing.la' is up to date. make[4]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/libmissing' GEN munged.8 make[4]: Entering directory '/startdir/src/munge-munge-0.5.15/src/libmunge' make[5]: Entering directory '/startdir/src/munge-munge-0.5.15/src/libcommon' make[5]: 'libcommon.la' is up to date. make[5]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/libcommon' make[4]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/libmunge' CCLD munged make[3]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/munged' Making all in mungekey make[3]: Entering directory '/startdir/src/munge-munge-0.5.15/src/mungekey' CC mungekey-mungekey.o CC mungekey-conf.o CC mungekey-key.o CC mungekey-crypto.o CC mungekey-entropy.o CC mungekey-hkdf.o CC mungekey-mac.o CC mungekey-md.o CC mungekey-rotate.o CC mungekey-xsignal.o GEN mungekey.8 make[4]: Entering directory '/startdir/src/munge-munge-0.5.15/src/libmunge' make[4]: Entering directory '/startdir/src/munge-munge-0.5.15/src/libmissing' make[4]: 'libmissing.la' is up to date. make[4]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/libmissing' make[5]: Entering directory '/startdir/src/munge-munge-0.5.15/src/libcommon' make[5]: 'libcommon.la' is up to date. make[5]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/libcommon' make[4]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/libmunge' make[4]: Entering directory '/startdir/src/munge-munge-0.5.15/src/libcommon' make[4]: 'libcommon.la' is up to date. make[4]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/libcommon' CCLD mungekey make[3]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/mungekey' make[3]: Entering directory '/startdir/src/munge-munge-0.5.15/src' make[3]: Nothing to be done for 'all-am'. make[3]: Leaving directory '/startdir/src/munge-munge-0.5.15/src' make[2]: Leaving directory '/startdir/src/munge-munge-0.5.15/src' Making all in t make[2]: Entering directory '/startdir/src/munge-munge-0.5.15/t' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/startdir/src/munge-munge-0.5.15/t' make[2]: Entering directory '/startdir/src/munge-munge-0.5.15' GEN munge.spec make[2]: Leaving directory '/startdir/src/munge-munge-0.5.15' make[1]: Leaving directory '/startdir/src/munge-munge-0.5.15' ==> Starting check()... Making check in src make[1]: Entering directory '/startdir/src/munge-munge-0.5.15/src' Making check in common make[2]: Entering directory '/startdir/src/munge-munge-0.5.15/src/common' make hkdf_api_test hkdf_rfc_test mac_test make[3]: Entering directory '/startdir/src/munge-munge-0.5.15/src/common' CC hkdf_api_test-crypto.o CC hkdf_rfc_test-crypto.o CC mac_test-crypto.o CC hkdf_rfc_test-hkdf.o CC hkdf_api_test-hkdf.o CC hkdf_rfc_test-mac.o CC mac_test-mac.o CC hkdf_api_test-mac.o CC hkdf_rfc_test-md.o CC mac_test-md.o CC hkdf_api_test-md.o CC hkdf_rfc_test-hkdf_rfc_test.o CC hkdf_api_test-hkdf_api_test.o CC mac_test-mac_test.o make[4]: Entering directory '/startdir/src/munge-munge-0.5.15/src/libcommon' make[4]: 'libcommon.la' is up to date. make[4]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/libcommon' make[4]: Entering directory '/startdir/src/munge-munge-0.5.15/src/libmunge' make[5]: Entering directory '/startdir/src/munge-munge-0.5.15/src/libcommon' make[5]: 'libcommon.la' is up to date. make[5]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/libcommon' make[4]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/libmunge' make[4]: Entering directory '/startdir/src/munge-munge-0.5.15/src/libtap' CC libtap_la-tap.lo CCLD libtap.la make[4]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/libtap' CCLD hkdf_api_test CCLD hkdf_rfc_test CCLD mac_test make[3]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/common' make check-TESTS make[3]: Entering directory '/startdir/src/munge-munge-0.5.15/src/common' make[4]: Entering directory '/startdir/src/munge-munge-0.5.15/src/libcommon' make[4]: 'libcommon.la' is up to date. make[4]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/libcommon' make[4]: Entering directory '/startdir/src/munge-munge-0.5.15/src/libmunge' make[5]: Entering directory '/startdir/src/munge-munge-0.5.15/src/libcommon' make[5]: 'libcommon.la' is up to date. make[5]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/libcommon' make[4]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/libmunge' make[4]: Entering directory '/startdir/src/munge-munge-0.5.15/src/libtap' make[4]: 'libtap.la' is up to date. make[4]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/libtap' make[4]: Entering directory '/startdir/src/munge-munge-0.5.15/src/common' make[5]: Entering directory '/startdir/src/munge-munge-0.5.15/src/libcommon' make[5]: 'libcommon.la' is up to date. make[5]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/libcommon' make[5]: Entering directory '/startdir/src/munge-munge-0.5.15/src/libmunge' make[6]: Entering directory '/startdir/src/munge-munge-0.5.15/src/libcommon' make[6]: 'libcommon.la' is up to date. make[6]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/libcommon' make[5]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/libmunge' make[5]: Entering directory '/startdir/src/munge-munge-0.5.15/src/libtap' make[5]: 'libtap.la' is up to date. make[5]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/libtap' PASS: hkdf_rfc_test PASS: hkdf_api_test PASS: mac_test ============================================================================ Testsuite summary for MUNGE 0.5.15 ============================================================================ # TOTAL: 3 # PASS: 3 # SKIP: 0 # XFAIL: 0 # FAIL: 0 # XPASS: 0 # ERROR: 0 ============================================================================ make[4]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/common' make[3]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/common' make[2]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/common' Making check in etc make[2]: Entering directory '/startdir/src/munge-munge-0.5.15/src/etc' make[2]: Nothing to be done for 'check'. make[2]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/etc' Making check in libcommon make[2]: Entering directory '/startdir/src/munge-munge-0.5.15/src/libcommon' make[2]: Nothing to be done for 'check'. make[2]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/libcommon' Making check in libmissing make[2]: Entering directory '/startdir/src/munge-munge-0.5.15/src/libmissing' make[2]: Nothing to be done for 'check'. make[2]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/libmissing' Making check in libmunge make[2]: Entering directory '/startdir/src/munge-munge-0.5.15/src/libmunge' make[3]: Entering directory '/startdir/src/munge-munge-0.5.15/src/libcommon' make[3]: 'libcommon.la' is up to date. make[3]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/libcommon' make[2]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/libmunge' Making check in libtap make[2]: Entering directory '/startdir/src/munge-munge-0.5.15/src/libtap' make libtap.la make[3]: Entering directory '/startdir/src/munge-munge-0.5.15/src/libtap' make[3]: 'libtap.la' is up to date. make[3]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/libtap' make[2]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/libtap' Making check in munge make[2]: Entering directory '/startdir/src/munge-munge-0.5.15/src/munge' make[3]: Entering directory '/startdir/src/munge-munge-0.5.15/src/libmissing' make[3]: 'libmissing.la' is up to date. make[3]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/libmissing' make[3]: Entering directory '/startdir/src/munge-munge-0.5.15/src/libcommon' make[3]: 'libcommon.la' is up to date. make[3]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/libcommon' make[3]: Entering directory '/startdir/src/munge-munge-0.5.15/src/libmunge' make[4]: Entering directory '/startdir/src/munge-munge-0.5.15/src/libcommon' make[4]: 'libcommon.la' is up to date. make[4]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/libcommon' make[3]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/libmunge' make[2]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/munge' Making check in munged make[2]: Entering directory '/startdir/src/munge-munge-0.5.15/src/munged' make[3]: Entering directory '/startdir/src/munge-munge-0.5.15/src/libcommon' make[3]: 'libcommon.la' is up to date. make[3]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/libcommon' make[3]: Entering directory '/startdir/src/munge-munge-0.5.15/src/libmissing' make[3]: 'libmissing.la' is up to date. make[3]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/libmissing' make[3]: Entering directory '/startdir/src/munge-munge-0.5.15/src/libmunge' make[4]: Entering directory '/startdir/src/munge-munge-0.5.15/src/libcommon' make[4]: 'libcommon.la' is up to date. make[4]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/libcommon' make[3]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/libmunge' make base64_test make[3]: Entering directory '/startdir/src/munge-munge-0.5.15/src/munged' CC base64_test-base64.o CC base64_test-base64_test.o make[4]: Entering directory '/startdir/src/munge-munge-0.5.15/src/libtap' make[4]: 'libtap.la' is up to date. make[4]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/libtap' CCLD base64_test make[3]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/munged' make check-TESTS make[3]: Entering directory '/startdir/src/munge-munge-0.5.15/src/munged' make[4]: Entering directory '/startdir/src/munge-munge-0.5.15/src/libtap' make[4]: 'libtap.la' is up to date. make[4]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/libtap' make[4]: Entering directory '/startdir/src/munge-munge-0.5.15/src/munged' make[5]: Entering directory '/startdir/src/munge-munge-0.5.15/src/libtap' make[5]: 'libtap.la' is up to date. make[5]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/libtap' PASS: base64_test ============================================================================ Testsuite summary for MUNGE 0.5.15 ============================================================================ # TOTAL: 1 # PASS: 1 # SKIP: 0 # XFAIL: 0 # FAIL: 0 # XPASS: 0 # ERROR: 0 ============================================================================ make[4]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/munged' make[3]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/munged' make[2]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/munged' Making check in mungekey make[2]: Entering directory '/startdir/src/munge-munge-0.5.15/src/mungekey' make[3]: Entering directory '/startdir/src/munge-munge-0.5.15/src/libcommon' make[3]: 'libcommon.la' is up to date. make[3]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/libcommon' make[3]: Entering directory '/startdir/src/munge-munge-0.5.15/src/libmissing' make[3]: 'libmissing.la' is up to date. make[3]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/libmissing' make[3]: Entering directory '/startdir/src/munge-munge-0.5.15/src/libmunge' make[4]: Entering directory '/startdir/src/munge-munge-0.5.15/src/libcommon' make[4]: 'libcommon.la' is up to date. make[4]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/libcommon' make[3]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/libmunge' make[2]: Leaving directory '/startdir/src/munge-munge-0.5.15/src/mungekey' make[2]: Entering directory '/startdir/src/munge-munge-0.5.15/src' make[2]: Nothing to be done for 'check-am'. make[2]: Leaving directory '/startdir/src/munge-munge-0.5.15/src' make[1]: Leaving directory '/startdir/src/munge-munge-0.5.15/src' Making check in t make[1]: Entering directory '/startdir/src/munge-munge-0.5.15/t' make check-TESTS make[2]: Entering directory '/startdir/src/munge-munge-0.5.15/t' make[3]: Entering directory '/startdir/src/munge-munge-0.5.15/t' SKIP: 0022-munge-valgrind.t - skipping valgrind tests; long test not specified SKIP: 0021-munged-valgrind.t - skipping valgrind tests; long test not specified PASS: 0002-smiple.t 1 - expr string match of absolute path with "/" regex PASS: 0002-smiple.t 2 - expr string match of absolute path with "\/" regex PASS: 0002-smiple.t 3 - expr string match of long opt PASS: 0002-smiple.t 4 - expr string match of long opt w/ preceding "--" parm PASS: 0002-smiple.t 5 - expr string match of long opt w/ prepended "X" char SKIP: 0025-mungekey-valgrind.t - skipping valgrind tests; long test not specified PASS: 0001-env-vars.t 1 - MUNGE_BUILD_DIR directory exists PASS: 0001-env-vars.t 2 - MUNGE_SOURCE_DIR directory exists SKIP: 0023-unmunge-valgrind.t - skipping valgrind tests; long test not specified PASS: 0104-munged-security-pidfile.t 1 - setup XFAIL: 0104-munged-security-pidfile.t 2 - finish writing tests # TODO known breakage PASS: 0104-munged-security-pidfile.t 3 - cleanup PASS: 0105-munged-security-seedfile.t 1 - setup XFAIL: 0105-munged-security-seedfile.t 2 - finish writing tests # TODO known breakage PASS: 0105-munged-security-seedfile.t 3 - cleanup PASS: 0099-credential-decode.t 1 - setup PASS: 0099-credential-decode.t 2 - start munged with known key PASS: 0099-credential-decode.t 3 - decode known credential PASS: 0099-credential-decode.t 4 - verify expected output PASS: 0099-credential-decode.t 5 - stop munged PASS: 0099-credential-decode.t 6 - cleanup PASS: 0010-basic.t 1 - setup PASS: 0010-basic.t 2 - create key PASS: 0010-basic.t 3 - check keyfile creation PASS: 0010-basic.t 4 - start munged PASS: 0010-basic.t 5 - check pidfile creation PASS: 0010-basic.t 6 - check process is running PASS: 0010-basic.t 7 - check socket creation PASS: 0010-basic.t 8 - check logfile creation PASS: 0010-basic.t 9 - encode credential PASS: 0010-basic.t 10 - examine credential PASS: 0010-basic.t 11 - decode credential PASS: 0010-basic.t 12 - replay credential FAIL: 0010-basic.t 13 - check logfile for replay PASS: 0010-basic.t 14 - stop munged PASS: 0010-basic.t 15 - check socket removal PASS: 0010-basic.t 16 - check process has exited PASS: 0010-basic.t 17 - check pidfile removal PASS: 0010-basic.t 18 - check seedfile creation PASS: 0010-basic.t 19 - check logfile for stop PASS: 0010-basic.t 20 - cleanup ERROR: 0010-basic.t - exited with status 1 PASS: 0100-munged-lock.t 1 - setup PASS: 0100-munged-lock.t 2 - start munged with open umask PASS: 0100-munged-lock.t 3 - check pidfile after munged success PASS: 0100-munged-lock.t 4 - check lockfile existence PASS: 0100-munged-lock.t 5 - check lockfile type PASS: 0100-munged-lock.t 6 - check lockfile permissions PASS: 0100-munged-lock.t 7 - start munged with in-use socket PASS: 0100-munged-lock.t 8 - check pidfile after munged failure PASS: 0100-munged-lock.t 9 - stop munged using lockfile-derived pid PASS: 0100-munged-lock.t 10 - check lockfile removal PASS: 0100-munged-lock.t 11 - start munged with 0600 bogus lockfile PASS: 0100-munged-lock.t 12 - start munged with 0222 bogus lockfile PASS: 0100-munged-lock.t 13 - start munged with inactive non-zero-length lockfile PASS: 0100-munged-lock.t 14 - check for lockfile truncation after successful start PASS: 0100-munged-lock.t 15 - stop munged using sigkill to prevent cleanup PASS: 0100-munged-lock.t 16 - check for leftover socket from unclean shutdown PASS: 0100-munged-lock.t 17 - check for leftover lockfile from unclean shutdown PASS: 0100-munged-lock.t 18 - check for leftover pidfile from unclean shutdown PASS: 0100-munged-lock.t 19 - start munged with leftover socket from unclean shutdown PASS: 0100-munged-lock.t 20 - stop munged PASS: 0100-munged-lock.t 21 - check lockfile removal again SKIP: 0100-munged-lock.t 22 # SKIP stop unprivileged munged as root (missing SUDO) PASS: 0100-munged-lock.t 23 - cleanup PASS: 0011-munged-cmdline.t 1 - setup PASS: 0011-munged-cmdline.t 2 - munged invalid option PASS: 0011-munged-cmdline.t 3 - munged -h PASS: 0011-munged-cmdline.t 4 - munged --help PASS: 0011-munged-cmdline.t 5 - munged -L PASS: 0011-munged-cmdline.t 6 - munged --license PASS: 0011-munged-cmdline.t 7 - munged -V PASS: 0011-munged-cmdline.t 8 - munged --version PASS: 0011-munged-cmdline.t 9 - munged -s PASS: 0011-munged-cmdline.t 10 - munged --stop PASS: 0011-munged-cmdline.t 11 - munged --stop for missing socket PASS: 0011-munged-cmdline.t 12 - munged -v PASS: 0011-munged-cmdline.t 13 - munged --verbose PASS: 0011-munged-cmdline.t 14 - munged seedfile creation with relative pathname PASS: 0011-munged-cmdline.t 15 - munged socket cleanup with relative pathname XFAIL: 0011-munged-cmdline.t 16 - finish writing tests # TODO known breakage PASS: 0011-munged-cmdline.t 17 - cleanup PASS: 0101-munged-security-socket.t 1 - setup PASS: 0101-munged-security-socket.t 2 - socket dir perms PASS: 0101-munged-security-socket.t 3 - socket type and perms PASS: 0101-munged-security-socket.t 4 - socket dir owned by euid SKIP: 0101-munged-security-socket.t 5 # SKIP alt socket dir setup (missing SUDO) SKIP: 0101-munged-security-socket.t 6 # SKIP socket dir owned by root (missing SUDO,ALT of ALT,SUDO) SKIP: 0101-munged-security-socket.t 7 # SKIP socket dir owned by other failure (missing SUDO,ALT of ALT,SUDO) SKIP: 0101-munged-security-socket.t 8 # SKIP socket dir owned by other override (missing SUDO,ALT of ALT,SUDO) SKIP: 0101-munged-security-socket.t 9 # SKIP alt socket dir cleanup (missing ALT) PASS: 0101-munged-security-socket.t 10 - socket dir writable by trusted group PASS: 0101-munged-security-socket.t 11 - socket dir writable by untrusted group failure PASS: 0101-munged-security-socket.t 12 - socket dir writable by group failure PASS: 0101-munged-security-socket.t 13 - socket dir writable by group override PASS: 0101-munged-security-socket.t 14 - socket dir writable by group with sticky bit PASS: 0101-munged-security-socket.t 15 - socket dir writable by other failure PASS: 0101-munged-security-socket.t 16 - socket dir writable by other override PASS: 0101-munged-security-socket.t 17 - socket dir writable by other with sticky bit PASS: 0101-munged-security-socket.t 18 - socket dir inaccessible by all failure PASS: 0101-munged-security-socket.t 19 - socket dir inaccessible by all override PASS: 0101-munged-security-socket.t 20 - cleanup PASS: 0110-munged-origin-addr.t 1 - setup PASS: 0110-munged-origin-addr.t 2 - munged --origin help PASS: 0110-munged-origin-addr.t 3 - munged --origin failure PASS: 0110-munged-origin-addr.t 4 - munged --origin override PASS: 0110-munged-origin-addr.t 5 - munged --origin null address PASS: 0110-munged-origin-addr.t 6 - munged --origin null address metadata PASS: 0110-munged-origin-addr.t 7 - munged --origin null address warning PASS: 0110-munged-origin-addr.t 8 - munged --origin local IP address PASS: 0110-munged-origin-addr.t 9 - munged --origin local IP address metadata PASS: 0110-munged-origin-addr.t 10 - munged --origin interface name lookup PASS: 0110-munged-origin-addr.t 11 - munged --origin interface name PASS: 0110-munged-origin-addr.t 12 - munged --origin interface name metadata PASS: 0110-munged-origin-addr.t 13 - munged --origin non-interface IP address PASS: 0110-munged-origin-addr.t 14 - munged --origin non-interface IP address metadata PASS: 0110-munged-origin-addr.t 15 - cleanup PASS: 0015-mungekey-cmdline.t 1 - mungekey invalid short option PASS: 0015-mungekey-cmdline.t 2 - mungekey invalid long option PASS: 0015-mungekey-cmdline.t 3 - mungekey invalid non-printable short option SKIP: 0015-mungekey-cmdline.t 4 # SKIP mungekey unimplemented option (missing DEBUG) PASS: 0015-mungekey-cmdline.t 5 - mungekey unrecognized option PASS: 0015-mungekey-cmdline.t 6 - mungekey lone hyphen option PASS: 0015-mungekey-cmdline.t 7 - mungekey -h PASS: 0015-mungekey-cmdline.t 8 - mungekey --help PASS: 0015-mungekey-cmdline.t 9 - mungekey -L PASS: 0015-mungekey-cmdline.t 10 - mungekey --license PASS: 0015-mungekey-cmdline.t 11 - mungekey -V PASS: 0015-mungekey-cmdline.t 12 - mungekey --version PASS: 0015-mungekey-cmdline.t 13 - mungekey -c PASS: 0015-mungekey-cmdline.t 14 - mungekey --create PASS: 0015-mungekey-cmdline.t 15 - mungekey -b PASS: 0015-mungekey-cmdline.t 16 - mungekey --bits PASS: 0015-mungekey-cmdline.t 17 - mungekey --bits rounding-up to next byte PASS: 0015-mungekey-cmdline.t 18 - mungekey --bits unspecified and using default PASS: 0015-mungekey-cmdline.t 19 - mungekey --bits with minimum value PASS: 0015-mungekey-cmdline.t 20 - mungekey --bits with maximum value PASS: 0015-mungekey-cmdline.t 21 - mungekey --bits below minimum value PASS: 0015-mungekey-cmdline.t 22 - mungekey --bits above maximum value PASS: 0015-mungekey-cmdline.t 23 - mungekey --bits error message with minimum value PASS: 0015-mungekey-cmdline.t 24 - mungekey --bits error message with maximum value PASS: 0015-mungekey-cmdline.t 25 - mungekey --bits with zero value PASS: 0015-mungekey-cmdline.t 26 - mungekey --bits with negative value PASS: 0015-mungekey-cmdline.t 27 - mungekey -b without required value PASS: 0015-mungekey-cmdline.t 28 - mungekey --bits without required value PASS: 0015-mungekey-cmdline.t 29 - mungekey -f PASS: 0015-mungekey-cmdline.t 30 - mungekey --force PASS: 0015-mungekey-cmdline.t 31 - mungekey without --force and with existing keyfile PASS: 0015-mungekey-cmdline.t 32 - mungekey -k PASS: 0015-mungekey-cmdline.t 33 - mungekey --keyfile PASS: 0015-mungekey-cmdline.t 34 - mungekey -k without required value PASS: 0015-mungekey-cmdline.t 35 - mungekey --keyfile without required value PASS: 0015-mungekey-cmdline.t 36 - mungekey -v PASS: 0015-mungekey-cmdline.t 37 - mungekey --verbose PASS: 0015-mungekey-cmdline.t 38 - mungekey --verbose number of bits PASS: 0015-mungekey-cmdline.t 39 - mungekey without --verbose PASS: 0015-mungekey-cmdline.t 40 - mungekey long_ind re-initialized for getopt_long() PASS: 0015-mungekey-cmdline.t 41 - mungekey defaults to create key PASS: 0103-munged-security-logfile.t 1 - setup PASS: 0103-munged-security-logfile.t 2 - logfile regular file PASS: 0103-munged-security-logfile.t 3 - logfile symlink to regular file failure PASS: 0103-munged-security-logfile.t 4 - logfile symlink to regular file override PASS: 0103-munged-security-logfile.t 5 - logfile missing PASS: 0103-munged-security-logfile.t 6 - logfile symlink to missing file failure PASS: 0103-munged-security-logfile.t 7 - logfile symlink to missing file override PASS: 0103-munged-security-logfile.t 8 - logfile non-regular-file failure PASS: 0103-munged-security-logfile.t 9 - logfile non-regular-file override failure PASS: 0103-munged-security-logfile.t 10 - logfile not writable by user failure XFAIL: 0103-munged-security-logfile.t 11 - logfile writable by trusted group # TODO known breakage PASS: 0103-munged-security-logfile.t 12 - logfile writable by untrusted group failure PASS: 0103-munged-security-logfile.t 13 - logfile writable by group failure PASS: 0103-munged-security-logfile.t 14 - logfile writable by group override PASS: 0103-munged-security-logfile.t 15 - logfile writable by other failure PASS: 0103-munged-security-logfile.t 16 - logfile writable by other override PASS: 0103-munged-security-logfile.t 17 - logfile readable by all PASS: 0103-munged-security-logfile.t 18 - logfile dir owned by euid SKIP: 0103-munged-security-logfile.t 19 # SKIP alt logfile dir setup (missing SUDO) SKIP: 0103-munged-security-logfile.t 20 # SKIP logfile dir owned by root (missing SUDO,ALT of ALT,SUDO) SKIP: 0103-munged-security-logfile.t 21 # SKIP logfile dir owned by other failure (missing SUDO,ALT of ALT,SUDO) SKIP: 0103-munged-security-logfile.t 22 # SKIP logfile dir owned by other override (missing SUDO,ALT of ALT,SUDO) SKIP: 0103-munged-security-logfile.t 23 # SKIP alt logfile dir cleanup (missing SUDO,ALT of ALT,SUDO) PASS: 0103-munged-security-logfile.t 24 - logfile dir writable by trusted group PASS: 0103-munged-security-logfile.t 25 - logfile dir writable by untrusted group failure PASS: 0103-munged-security-logfile.t 26 - logfile dir writable by group PASS: 0103-munged-security-logfile.t 27 - logfile dir writable by group with sticky bit PASS: 0103-munged-security-logfile.t 28 - logfile dir writable by other failure PASS: 0103-munged-security-logfile.t 29 - logfile dir writable by other override PASS: 0103-munged-security-logfile.t 30 - logfile dir writable by other with sticky bit PASS: 0103-munged-security-logfile.t 31 - logfile failure writes single message to stderr PASS: 0103-munged-security-logfile.t 32 - cleanup PASS: 0102-munged-security-keyfile.t 1 - setup PASS: 0102-munged-security-keyfile.t 2 - keyfile regular file PASS: 0102-munged-security-keyfile.t 3 - keyfile missing failure PASS: 0102-munged-security-keyfile.t 4 - keyfile non-regular-file failure PASS: 0102-munged-security-keyfile.t 5 - keyfile non-regular-file override failure PASS: 0102-munged-security-keyfile.t 6 - keyfile symlink to regular file failure PASS: 0102-munged-security-keyfile.t 7 - keyfile symlink to regular file override PASS: 0102-munged-security-keyfile.t 8 - keyfile owned by euid XFAIL: 0102-munged-security-keyfile.t 9 - keyfile readable by trusted group # TODO known breakage PASS: 0102-munged-security-keyfile.t 10 - keyfile readable by untrusted group failure XFAIL: 0102-munged-security-keyfile.t 11 - keyfile writable by trusted group # TODO known breakage PASS: 0102-munged-security-keyfile.t 12 - keyfile writable by untrusted group failure PASS: 0102-munged-security-keyfile.t 13 - keyfile readable by group failure PASS: 0102-munged-security-keyfile.t 14 - keyfile readable by group override PASS: 0102-munged-security-keyfile.t 15 - keyfile writable by group failure PASS: 0102-munged-security-keyfile.t 16 - keyfile writable by group override PASS: 0102-munged-security-keyfile.t 17 - keyfile readable by other failure PASS: 0102-munged-security-keyfile.t 18 - keyfile readable by other override PASS: 0102-munged-security-keyfile.t 19 - keyfile writable by other failure PASS: 0102-munged-security-keyfile.t 20 - keyfile writable by other override PASS: 0102-munged-security-keyfile.t 21 - keyfile secure perms PASS: 0102-munged-security-keyfile.t 22 - keyfile dir owned by euid SKIP: 0102-munged-security-keyfile.t 23 # SKIP alt keyfile dir setup (missing SUDO) SKIP: 0102-munged-security-keyfile.t 24 # SKIP keyfile dir owned by root (missing SUDO,ALT of ALT,SUDO) SKIP: 0102-munged-security-keyfile.t 25 # SKIP keyfile dir owned by other failure (missing SUDO,ALT of ALT,SUDO) SKIP: 0102-munged-security-keyfile.t 26 # SKIP keyfile dir owned by other override (missing SUDO,ALT of ALT,SUDO) SKIP: 0102-munged-security-keyfile.t 27 # SKIP alt keyfile dir cleanup (missing SUDO,ALT of ALT,SUDO) PASS: 0102-munged-security-keyfile.t 28 - keyfile dir writable by trusted group PASS: 0102-munged-security-keyfile.t 29 - keyfile dir writable by untrusted group failure PASS: 0102-munged-security-keyfile.t 30 - keyfile dir writable by group failure PASS: 0102-munged-security-keyfile.t 31 - keyfile dir writable by group override PASS: 0102-munged-security-keyfile.t 32 - keyfile dir writable by group with sticky bit PASS: 0102-munged-security-keyfile.t 33 - keyfile dir writable by other failure PASS: 0102-munged-security-keyfile.t 34 - keyfile dir writable by other override PASS: 0102-munged-security-keyfile.t 35 - keyfile dir writable by other with sticky bit PASS: 0102-munged-security-keyfile.t 36 - cleanup PASS: 0013-unmunge-cmdline.t 1 - unmunge invalid option PASS: 0013-unmunge-cmdline.t 2 - unmunge -h PASS: 0013-unmunge-cmdline.t 3 - unmunge --help PASS: 0013-unmunge-cmdline.t 4 - unmunge -L PASS: 0013-unmunge-cmdline.t 5 - unmunge --license PASS: 0013-unmunge-cmdline.t 6 - unmunge -V PASS: 0013-unmunge-cmdline.t 7 - unmunge --version PASS: 0013-unmunge-cmdline.t 8 - start munged PASS: 0013-unmunge-cmdline.t 9 - unmunge -S PASS: 0013-unmunge-cmdline.t 10 - unmunge --socket PASS: 0013-unmunge-cmdline.t 11 - unmunge --socket for missing socket PASS: 0013-unmunge-cmdline.t 12 - unmunge --socket for invalid socket (file) PASS: 0013-unmunge-cmdline.t 13 - unmunge --socket for invalid socket (directory) PASS: 0013-unmunge-cmdline.t 14 - unmunge reading from /dev/null PASS: 0013-unmunge-cmdline.t 15 - unmunge -i PASS: 0013-unmunge-cmdline.t 16 - unmunge --input PASS: 0013-unmunge-cmdline.t 17 - unmunge --input from stdin via "-" PASS: 0013-unmunge-cmdline.t 18 - unmunge --input from /dev/null PASS: 0013-unmunge-cmdline.t 19 - unmunge --input from missing file PASS: 0013-unmunge-cmdline.t 20 - unmunge -n PASS: 0013-unmunge-cmdline.t 21 - unmunge --no-output PASS: 0013-unmunge-cmdline.t 22 - unmunge -m PASS: 0013-unmunge-cmdline.t 23 - unmunge --metadata PASS: 0013-unmunge-cmdline.t 24 - unmunge --metadata to stdout via "-" along with payload PASS: 0013-unmunge-cmdline.t 25 - unmunge --metadata to /dev/null with payload on stdout PASS: 0013-unmunge-cmdline.t 26 - unmunge -o PASS: 0013-unmunge-cmdline.t 27 - unmunge --output PASS: 0013-unmunge-cmdline.t 28 - unmunge --output to stdout via "-" along with metadata PASS: 0013-unmunge-cmdline.t 29 - unmunge --output to /dev/null with metadata on stdout PASS: 0013-unmunge-cmdline.t 30 - unmunge -K PASS: 0013-unmunge-cmdline.t 31 - unmunge --list-keys PASS: 0013-unmunge-cmdline.t 32 - unmunge -k PASS: 0013-unmunge-cmdline.t 33 - unmunge --keys PASS: 0013-unmunge-cmdline.t 34 - unmunge --keys for ignoring invalid key PASS: 0013-unmunge-cmdline.t 35 - unmunge --keys for single uppercase key PASS: 0013-unmunge-cmdline.t 36 - unmunge --keys for single lowercase key PASS: 0013-unmunge-cmdline.t 37 - unmunge --keys for multiple keys split by " " PASS: 0013-unmunge-cmdline.t 38 - unmunge --keys for multiple keys split by "," PASS: 0013-unmunge-cmdline.t 39 - unmunge --keys for multiple keys split by ";" PASS: 0013-unmunge-cmdline.t 40 - unmunge --keys for multiple keys split by "." PASS: 0013-unmunge-cmdline.t 41 - unmunge --keys for each key PASS: 0013-unmunge-cmdline.t 42 - unmunge -N PASS: 0013-unmunge-cmdline.t 43 - unmunge --numeric PASS: 0013-unmunge-cmdline.t 44 - stop munged PASS: 0013-unmunge-cmdline.t 45 - cleanup PASS: 0012-munge-cmdline.t 1 - munge invalid option PASS: 0012-munge-cmdline.t 2 - munge -h PASS: 0012-munge-cmdline.t 3 - munge --help PASS: 0012-munge-cmdline.t 4 - munge -L PASS: 0012-munge-cmdline.t 5 - munge --license PASS: 0012-munge-cmdline.t 6 - munge -V PASS: 0012-munge-cmdline.t 7 - munge --version PASS: 0012-munge-cmdline.t 8 - start munged PASS: 0012-munge-cmdline.t 9 - munge -S PASS: 0012-munge-cmdline.t 10 - munge --socket PASS: 0012-munge-cmdline.t 11 - munge --socket for missing socket PASS: 0012-munge-cmdline.t 12 - munge --socket for invalid socket (file) PASS: 0012-munge-cmdline.t 13 - munge --socket for invalid socket (directory) PASS: 0012-munge-cmdline.t 14 - munge reading from stdin PASS: 0012-munge-cmdline.t 15 - munge reading from /dev/null PASS: 0012-munge-cmdline.t 16 - munge -n PASS: 0012-munge-cmdline.t 17 - munge --no-input PASS: 0012-munge-cmdline.t 18 - munge -s PASS: 0012-munge-cmdline.t 19 - munge --string PASS: 0012-munge-cmdline.t 20 - munge -i PASS: 0012-munge-cmdline.t 21 - munge --input PASS: 0012-munge-cmdline.t 22 - munge --input from stdin via "-" PASS: 0012-munge-cmdline.t 23 - munge --input from /dev/null PASS: 0012-munge-cmdline.t 24 - munge --input from missing file PASS: 0012-munge-cmdline.t 25 - munge -o PASS: 0012-munge-cmdline.t 26 - munge --output PASS: 0012-munge-cmdline.t 27 - munge --output to stdout via "-" PASS: 0012-munge-cmdline.t 28 - munge --output to /dev/null PASS: 0012-munge-cmdline.t 29 - munge -C PASS: 0012-munge-cmdline.t 30 - munge --list-ciphers PASS: 0012-munge-cmdline.t 31 - munge -c for default by name PASS: 0012-munge-cmdline.t 32 - munge --cipher for default by name PASS: 0012-munge-cmdline.t 33 - munge --cipher for default by number PASS: 0012-munge-cmdline.t 34 - munge --cipher for none by name PASS: 0012-munge-cmdline.t 35 - munge --cipher for none by number PASS: 0012-munge-cmdline.t 36 - munge --cipher for invalid name PASS: 0012-munge-cmdline.t 37 - munge --cipher for invalid positive number PASS: 0012-munge-cmdline.t 38 - munge --cipher for invalid negative number PASS: 0012-munge-cmdline.t 39 - munge --cipher for each cipher by name PASS: 0012-munge-cmdline.t 40 - munge --cipher for each cipher by number PASS: 0012-munge-cmdline.t 41 - munge -M PASS: 0012-munge-cmdline.t 42 - munge --list-macs PASS: 0012-munge-cmdline.t 43 - munge -m for default by name PASS: 0012-munge-cmdline.t 44 - munge --mac for default by name PASS: 0012-munge-cmdline.t 45 - munge --mac for default by number PASS: 0012-munge-cmdline.t 46 - munge --mac for none by name PASS: 0012-munge-cmdline.t 47 - munge --mac for none by number PASS: 0012-munge-cmdline.t 48 - munge --mac for invalid name PASS: 0012-munge-cmdline.t 49 - munge --mac for invalid positive number PASS: 0012-munge-cmdline.t 50 - munge --mac for invalid negative number PASS: 0012-munge-cmdline.t 51 - munge --mac for each mac by name PASS: 0012-munge-cmdline.t 52 - munge --mac for each mac by number PASS: 0012-munge-cmdline.t 53 - munge -Z PASS: 0012-munge-cmdline.t 54 - munge --list-zips PASS: 0012-munge-cmdline.t 55 - munge -z for default by name PASS: 0012-munge-cmdline.t 56 - munge --zip for default by name PASS: 0012-munge-cmdline.t 57 - munge --zip for default by number PASS: 0012-munge-cmdline.t 58 - munge --zip for none by name PASS: 0012-munge-cmdline.t 59 - munge --zip for none by number PASS: 0012-munge-cmdline.t 60 - munge --zip for invalid name PASS: 0012-munge-cmdline.t 61 - munge --zip for invalid positive number PASS: 0012-munge-cmdline.t 62 - munge --zip for invalid negative number PASS: 0012-munge-cmdline.t 63 - munge --zip for each zip by name PASS: 0012-munge-cmdline.t 64 - munge --zip for each zip by number PASS: 0012-munge-cmdline.t 65 - munge -u by name PASS: 0012-munge-cmdline.t 66 - munge --restrict-uid by name PASS: 0012-munge-cmdline.t 67 - munge --restrict-uid by number PASS: 0012-munge-cmdline.t 68 - munge --restrict-uid for invalid name PASS: 0012-munge-cmdline.t 69 - munge --restrict-uid for invalid number PASS: 0012-munge-cmdline.t 70 - munge -U for effective user by name PASS: 0012-munge-cmdline.t 71 - munge --uid for effective user by name PASS: 0012-munge-cmdline.t 72 - munge --uid for effective user by number SKIP: 0012-munge-cmdline.t 73 # SKIP munge --uid for root user by name via sudo (missing SUDO) SKIP: 0012-munge-cmdline.t 74 # SKIP munge --uid for root user by number via sudo (missing SUDO) PASS: 0012-munge-cmdline.t 75 - munge --uid for invalid name PASS: 0012-munge-cmdline.t 76 - munge --uid for invalid number PASS: 0012-munge-cmdline.t 77 - munge -g by name PASS: 0012-munge-cmdline.t 78 - munge --restrict-gid by name PASS: 0012-munge-cmdline.t 79 - munge --restrict-gid by number PASS: 0012-munge-cmdline.t 80 - munge --restrict-gid for invalid name PASS: 0012-munge-cmdline.t 81 - munge --restrict-gid for invalid number PASS: 0012-munge-cmdline.t 82 - munge -G for effective group by name PASS: 0012-munge-cmdline.t 83 - munge --gid for effective group by name PASS: 0012-munge-cmdline.t 84 - munge --gid for effective group by number SKIP: 0012-munge-cmdline.t 85 # SKIP munge --gid for root group by name via sudo (missing SUDO) SKIP: 0012-munge-cmdline.t 86 # SKIP munge --gid for root group by number via sudo (missing SUDO) PASS: 0012-munge-cmdline.t 87 - munge --gid for invalid name PASS: 0012-munge-cmdline.t 88 - munge --gid for invalid number PASS: 0012-munge-cmdline.t 89 - munge -t for default value PASS: 0012-munge-cmdline.t 90 - munge --ttl for default value PASS: 0012-munge-cmdline.t 91 - munge --ttl for maximum value PASS: 0012-munge-cmdline.t 92 - munge --ttl for non-default value PASS: 0012-munge-cmdline.t 93 - munge --ttl for invalid string value PASS: 0012-munge-cmdline.t 94 - munge --ttl for invalid positive number PASS: 0012-munge-cmdline.t 95 - munge --ttl for invalid negative number PASS: 0012-munge-cmdline.t 96 - stop munged PASS: 0012-munge-cmdline.t 97 - cleanup ==================================== MUNGE 0.5.15: t/test-suite.log ==================================== # TOTAL: 370 # PASS: 337 # SKIP: 25 # XFAIL: 6 # FAIL: 1 # XPASS: 0 # ERROR: 1 .. contents:: :depth: 2 ERROR: 0010-basic ================= expecting success: munged_setup ok 1 - setup PASS: 0010-basic.t 1 - setup expecting success: munged_create_key ok 2 - create key PASS: 0010-basic.t 2 - create key expecting success: test -s "${MUNGE_KEYFILE}" ok 3 - check keyfile creation PASS: 0010-basic.t 3 - check keyfile creation expecting success: munged_start_daemon ok 4 - start munged PASS: 0010-basic.t 4 - start munged expecting success: test -s "${MUNGE_PIDFILE}" ok 5 - check pidfile creation PASS: 0010-basic.t 5 - check pidfile creation expecting success: PID=$(cat "${MUNGE_PIDFILE}") && ps -p "${PID}" -ww | grep munged 10014 ? 00:00:00 munged ok 6 - check process is running PASS: 0010-basic.t 6 - check process is running expecting success: test -S "${MUNGE_SOCKET}" ok 7 - check socket creation PASS: 0010-basic.t 7 - check socket creation expecting success: test -s "${MUNGE_LOGFILE}" ok 8 - check logfile creation PASS: 0010-basic.t 8 - check logfile creation expecting success: "${MUNGE}" --socket="${MUNGE_SOCKET}" cred.$$ ok 9 - encode credential PASS: 0010-basic.t 9 - encode credential expecting success: test "$(expr X"$(cat cred.$$)" : "XMUNGE:.*:$")" -gt 0 ok 10 - examine credential PASS: 0010-basic.t 10 - examine credential expecting success: "${UNMUNGE}" --socket="${MUNGE_SOCKET}" /dev/null ok 11 - decode credential PASS: 0010-basic.t 11 - decode credential expecting success: test_must_fail "${UNMUNGE}" --socket="${MUNGE_SOCKET}" /dev/null ok 12 - replay credential PASS: 0010-basic.t 12 - replay credential expecting success: grep "Replayed credential" "${MUNGE_LOGFILE}" not ok 13 - check logfile for replay FAIL: 0010-basic.t 13 - check logfile for replay # # grep "Replayed credential" "${MUNGE_LOGFILE}" # expecting success: munged_stop_daemon munged: Notice: Terminated daemon bound to socket "/tmp/munged.sock.8971" (pid 10014) ok 14 - stop munged PASS: 0010-basic.t 14 - stop munged expecting success: test "x${MUNGE_SOCKET}" != x && test ! -S "${MUNGE_SOCKET}" ok 15 - check socket removal PASS: 0010-basic.t 15 - check socket removal expecting success: test "x${PID}" != x && ! ps -p "${PID}" >/dev/null ok 16 - check process has exited PASS: 0010-basic.t 16 - check process has exited expecting success: test "x${MUNGE_PIDFILE}" != x && test ! -f "${MUNGE_PIDFILE}" ok 17 - check pidfile removal PASS: 0010-basic.t 17 - check pidfile removal expecting success: test -s "${MUNGE_SEEDFILE}" ok 18 - check seedfile creation PASS: 0010-basic.t 18 - check seedfile creation expecting success: grep "Stopping" "${MUNGE_LOGFILE}" 2023-12-10 02:44:00 +0000 Notice: Stopping munge-0.5.15 daemon (pid 10014) ok 19 - check logfile for stop PASS: 0010-basic.t 19 - check logfile for stop expecting success: munged_cleanup ok 20 - cleanup PASS: 0010-basic.t 20 - cleanup # failed 1 among 20 test(s) 1..20 ERROR: 0010-basic.t - exited with status 1 PASS: 0011-munged-cmdline ========================= expecting success: munged_setup && munged_create_key ok 1 - setup PASS: 0011-munged-cmdline.t 1 - setup expecting success: test_must_fail "${MUNGED}" --invalid-option munged: Error: Invalid option "--invalid-option" ok 2 - munged invalid option PASS: 0011-munged-cmdline.t 2 - munged invalid option expecting success: "${MUNGED}" "${OPT_HELP}" | grep -q "^Usage:" ok 3 - munged -h PASS: 0011-munged-cmdline.t 3 - munged -h expecting success: "${MUNGED}" "${OPT_HELP}" | grep -q "^Usage:" ok 4 - munged --help PASS: 0011-munged-cmdline.t 4 - munged --help expecting success: "${MUNGED}" "${OPT_LICENSE}" | grep -q "GNU General Public License" ok 5 - munged -L PASS: 0011-munged-cmdline.t 5 - munged -L expecting success: "${MUNGED}" "${OPT_LICENSE}" | grep -q "GNU General Public License" ok 6 - munged --license PASS: 0011-munged-cmdline.t 6 - munged --license expecting success: "${MUNGED}" "${OPT_VERSION}" | grep -q "^munge-[0-9.]*" ok 7 - munged -V PASS: 0011-munged-cmdline.t 7 - munged -V expecting success: "${MUNGED}" "${OPT_VERSION}" | grep -q "^munge-[0-9.]*" ok 8 - munged --version PASS: 0011-munged-cmdline.t 8 - munged --version expecting success: munged_start_daemon && "${MUNGED}" "${OPT_STOP}" --socket="${MUNGE_SOCKET}" ok 9 - munged -s PASS: 0011-munged-cmdline.t 9 - munged -s expecting success: munged_start_daemon && "${MUNGED}" "${OPT_STOP}" --socket="${MUNGE_SOCKET}" ok 10 - munged --stop PASS: 0011-munged-cmdline.t 10 - munged --stop expecting success: test_must_fail "${MUNGED}" --stop --socket=missing.socket.$$ ok 11 - munged --stop for missing socket PASS: 0011-munged-cmdline.t 11 - munged --stop for missing socket expecting success: munged_start_daemon && "${MUNGED}" "${OPT_VERBOSE}" --stop --socket="${MUNGE_SOCKET}" 2>&1 | egrep -q "(Terminated|Killed) daemon" egrep: warning: egrep is obsolescent; using grep -E ok 12 - munged -v PASS: 0011-munged-cmdline.t 12 - munged -v expecting success: munged_start_daemon && "${MUNGED}" "${OPT_VERBOSE}" --stop --socket="${MUNGE_SOCKET}" 2>&1 | egrep -q "(Terminated|Killed) daemon" egrep: warning: egrep is obsolescent; using grep -E ok 13 - munged --verbose PASS: 0011-munged-cmdline.t 13 - munged --verbose expecting success: local SEEDFILE="seed.$$" && munged_start_daemon --seed-file="${SEEDFILE}" && munged_stop_daemon && test -s "${SEEDFILE}" munged: Notice: Terminated daemon bound to socket "/tmp/munged.sock.8972" (pid 11698) ok 14 - munged seedfile creation with relative pathname PASS: 0011-munged-cmdline.t 14 - munged seedfile creation with relative pathname expecting success: local SOCKET="socket.$$" && cd "${MUNGE_SOCKETDIR}" && munged_start_daemon --socket="${SOCKET}" && munged_stop_daemon --socket="${SOCKET}" && test ! -S "${SOCKET}" munged: Notice: Terminated daemon bound to socket "/tmp/socket.8972" (pid 12141) ok 15 - munged socket cleanup with relative pathname PASS: 0011-munged-cmdline.t 15 - munged socket cleanup with relative pathname checking known breakage: false not ok 16 - finish writing tests # TODO known breakage XFAIL: 0011-munged-cmdline.t 16 - finish writing tests # TODO known breakage expecting success: munged_cleanup ok 17 - cleanup PASS: 0011-munged-cmdline.t 17 - cleanup # still have 1 known breakage(s) # passed all remaining 16 test(s) 1..17 PASS: 0012-munge-cmdline ======================== expecting success: test_must_fail "${MUNGE}" --invalid-option munge: Error: Invalid option "--invalid-option" ok 1 - munge invalid option PASS: 0012-munge-cmdline.t 1 - munge invalid option expecting success: "${MUNGE}" "${OPT_HELP}" | grep -q "^Usage:" ok 2 - munge -h PASS: 0012-munge-cmdline.t 2 - munge -h expecting success: "${MUNGE}" "${OPT_HELP}" | grep -q "^Usage:" ok 3 - munge --help PASS: 0012-munge-cmdline.t 3 - munge --help expecting success: "${MUNGE}" "${OPT_LICENSE}" | grep -q "GNU General Public License" ok 4 - munge -L PASS: 0012-munge-cmdline.t 4 - munge -L expecting success: "${MUNGE}" "${OPT_LICENSE}" | grep -q "GNU General Public License" ok 5 - munge --license PASS: 0012-munge-cmdline.t 5 - munge --license expecting success: "${MUNGE}" "${OPT_VERSION}" | grep -q "^munge-[0-9.]*" ok 6 - munge -V PASS: 0012-munge-cmdline.t 6 - munge -V expecting success: "${MUNGE}" "${OPT_VERSION}" | grep -q "^munge-[0-9.]*" ok 7 - munge --version PASS: 0012-munge-cmdline.t 7 - munge --version expecting success: munged_setup && munged_create_key && munged_start_daemon ok 8 - start munged PASS: 0012-munge-cmdline.t 8 - start munged expecting success: "${MUNGE}" "${OPT_SOCKET}" "${MUNGE_SOCKET}" in.$$ && "${MUNGE}" --socket="${MUNGE_SOCKET}" in.$$ && "${MUNGE}" --socket="${MUNGE_SOCKET}" "${OPT_INPUT}" in.$$ | "${UNMUNGE}" --socket="${MUNGE_SOCKET}" --no-output --output=out.$$ && test_cmp in.$$ out.$$ ok 20 - munge -i PASS: 0012-munge-cmdline.t 20 - munge -i expecting success: echo -n xyzzy-$$ >in.$$ && "${MUNGE}" --socket="${MUNGE_SOCKET}" "${OPT_INPUT}" in.$$ | "${UNMUNGE}" --socket="${MUNGE_SOCKET}" --no-output --output=out.$$ && test_cmp in.$$ out.$$ ok 21 - munge --input PASS: 0012-munge-cmdline.t 21 - munge --input expecting success: echo -n xyzzy-$$ >in.$$ && "${MUNGE}" --socket="${MUNGE_SOCKET}" --input=- in.$$ && "${MUNGE}" --socket="${MUNGE_SOCKET}" "${OPT_OUTPUT}" cred.$$ in.$$ && "${MUNGE}" --socket="${MUNGE_SOCKET}" "${OPT_OUTPUT}" cred.$$ in.$$ && "${MUNGE}" --socket="${MUNGE_SOCKET}" --output=- in.$$ && "${MUNGE}" --socket="${MUNGE_SOCKET}" --output=/dev/null out.$$ && test ! -s out.$$ ok 28 - munge --output to /dev/null PASS: 0012-munge-cmdline.t 28 - munge --output to /dev/null expecting success: "${MUNGE}" "${OPT_LIST_CIPHERS}" | grep -q "^Cipher types:$" ok 29 - munge -C PASS: 0012-munge-cmdline.t 29 - munge -C expecting success: "${MUNGE}" "${OPT_LIST_CIPHERS}" | grep -q "^Cipher types:$" ok 30 - munge --list-ciphers PASS: 0012-munge-cmdline.t 30 - munge --list-ciphers expecting success: "${MUNGE}" --socket="${MUNGE_SOCKET}" --no-input \ "${OPT_CIPHER}" default | "${UNMUNGE}" --socket="${MUNGE_SOCKET}" --no-output ok 31 - munge -c for default by name PASS: 0012-munge-cmdline.t 31 - munge -c for default by name expecting success: "${MUNGE}" --socket="${MUNGE_SOCKET}" --no-input \ "${OPT_CIPHER}" default | "${UNMUNGE}" --socket="${MUNGE_SOCKET}" --no-output ok 32 - munge --cipher for default by name PASS: 0012-munge-cmdline.t 32 - munge --cipher for default by name expecting success: "${MUNGE}" --socket="${MUNGE_SOCKET}" --no-input --cipher=1 | "${UNMUNGE}" --socket="${MUNGE_SOCKET}" --no-output ok 33 - munge --cipher for default by number PASS: 0012-munge-cmdline.t 33 - munge --cipher for default by number expecting success: "${MUNGE}" --socket="${MUNGE_SOCKET}" --no-input --cipher=none | "${UNMUNGE}" --socket="${MUNGE_SOCKET}" | awk "/^CIPHER:/ { print \$2 }" >meta.$$ && test "$(cat meta.$$)" = none ok 34 - munge --cipher for none by name PASS: 0012-munge-cmdline.t 34 - munge --cipher for none by name expecting success: "${MUNGE}" --socket="${MUNGE_SOCKET}" --no-input --cipher=0 | "${UNMUNGE}" --socket="${MUNGE_SOCKET}" | awk "/^CIPHER:/ { print \$2 }" >meta.$$ && test "$(cat meta.$$)" = none ok 35 - munge --cipher for none by number PASS: 0012-munge-cmdline.t 35 - munge --cipher for none by number expecting success: test_must_fail "${MUNGE}" --socket="${MUNGE_SOCKET}" --no-input \ --cipher=invalid munge: Error: Invalid cipher type "invalid" ok 36 - munge --cipher for invalid name PASS: 0012-munge-cmdline.t 36 - munge --cipher for invalid name expecting success: test_must_fail "${MUNGE}" --socket="${MUNGE_SOCKET}" --no-input --cipher=88 munge: Error: Invalid cipher type "88" ok 37 - munge --cipher for invalid positive number PASS: 0012-munge-cmdline.t 37 - munge --cipher for invalid positive number expecting success: test_must_fail "${MUNGE}" --socket="${MUNGE_SOCKET}" --no-input --cipher=-1 munge: Error: Invalid cipher type "-1" ok 38 - munge --cipher for invalid negative number PASS: 0012-munge-cmdline.t 38 - munge --cipher for invalid negative number expecting success: local META NAME NUM EXTRA && >fail.$$ && "${MUNGE}" --list-ciphers | awk "/([0-9]+)/ { gsub(/[()]/, \"\"); print \$2, \$1 }" | while read NUM NAME EXTRA; do "${MUNGE}" --socket="${MUNGE_SOCKET}" --no-input --cipher="${NAME}" | "${UNMUNGE}" --socket="${MUNGE_SOCKET}" | awk "/^CIPHER:/ { print \$2 }" >meta.$$ && META=$(cat meta.$$) && if test "${NAME}" = "${META}" || test "${NAME}" = default; then test_debug "echo \"Decoded cipher [${NUM}/${NAME}] as [${META}]\"" else echo "Error: munge --cipher=${NAME} failed" echo "cipher ${NUM} ${NAME} ${META}" >>fail.$$; fi done && test ! -s fail.$$ ok 39 - munge --cipher for each cipher by name PASS: 0012-munge-cmdline.t 39 - munge --cipher for each cipher by name expecting success: local META NAME NUM EXTRA && >fail.$$ && "${MUNGE}" --list-ciphers | awk "/([0-9]+)/ { gsub(/[()]/, \"\"); print \$2, \$1 }" | while read NUM NAME EXTRA; do "${MUNGE}" --socket="${MUNGE_SOCKET}" --no-input --cipher="${NUM}" | "${UNMUNGE}" --socket="${MUNGE_SOCKET}" | awk "/^CIPHER:/ { print \$2 }" >meta.$$ && META=$(cat meta.$$) && if test "${NAME}" = "${META}" || test "${NAME}" = default; then test_debug "echo \"Decoded cipher [${NUM}/${NAME}] as [${META}]\"" else echo "Error: munge --cipher=${NUM} failed" echo "cipher ${NUM} ${NAME} ${META}" >>fail.$$; fi done && test ! -s fail.$$ ok 40 - munge --cipher for each cipher by number PASS: 0012-munge-cmdline.t 40 - munge --cipher for each cipher by number expecting success: "${MUNGE}" "${OPT_LIST_MACS}" | grep -q "^MAC types:$" ok 41 - munge -M PASS: 0012-munge-cmdline.t 41 - munge -M expecting success: "${MUNGE}" "${OPT_LIST_MACS}" | grep -q "^MAC types:$" ok 42 - munge --list-macs PASS: 0012-munge-cmdline.t 42 - munge --list-macs expecting success: "${MUNGE}" --socket="${MUNGE_SOCKET}" --no-input "${OPT_MAC}" default | "${UNMUNGE}" --socket="${MUNGE_SOCKET}" --no-output ok 43 - munge -m for default by name PASS: 0012-munge-cmdline.t 43 - munge -m for default by name expecting success: "${MUNGE}" --socket="${MUNGE_SOCKET}" --no-input "${OPT_MAC}" default | "${UNMUNGE}" --socket="${MUNGE_SOCKET}" --no-output ok 44 - munge --mac for default by name PASS: 0012-munge-cmdline.t 44 - munge --mac for default by name expecting success: "${MUNGE}" --socket="${MUNGE_SOCKET}" --no-input --mac=1 | "${UNMUNGE}" --socket="${MUNGE_SOCKET}" --no-output ok 45 - munge --mac for default by number PASS: 0012-munge-cmdline.t 45 - munge --mac for default by number expecting success: test_must_fail "${MUNGE}" --socket="${MUNGE_SOCKET}" --no-input --mac=none munge: Error: Invalid MAC type "none" ok 46 - munge --mac for none by name PASS: 0012-munge-cmdline.t 46 - munge --mac for none by name expecting success: test_must_fail "${MUNGE}" --socket="${MUNGE_SOCKET}" --no-input --mac=0 munge: Error: Invalid MAC type "0" ok 47 - munge --mac for none by number PASS: 0012-munge-cmdline.t 47 - munge --mac for none by number expecting success: test_must_fail "${MUNGE}" --socket="${MUNGE_SOCKET}" --no-input \ --mac=invalid munge: Error: Invalid MAC type "invalid" ok 48 - munge --mac for invalid name PASS: 0012-munge-cmdline.t 48 - munge --mac for invalid name expecting success: test_must_fail "${MUNGE}" --socket="${MUNGE_SOCKET}" --no-input --mac=88 munge: Error: Invalid MAC type "88" ok 49 - munge --mac for invalid positive number PASS: 0012-munge-cmdline.t 49 - munge --mac for invalid positive number expecting success: test_must_fail "${MUNGE}" --socket="${MUNGE_SOCKET}" --no-input --mac=-1 munge: Error: Invalid MAC type "-1" ok 50 - munge --mac for invalid negative number PASS: 0012-munge-cmdline.t 50 - munge --mac for invalid negative number expecting success: local META NAME NUM EXTRA && >fail.$$ && "${MUNGE}" --list-macs | awk "/([0-9]+)/ { gsub(/[()]/, \"\"); print \$2, \$1 }" | while read NUM NAME EXTRA; do "${MUNGE}" --socket="${MUNGE_SOCKET}" --no-input --mac="${NAME}" | "${UNMUNGE}" --socket="${MUNGE_SOCKET}" | awk "/^MAC:/ { print \$2 }" >meta.$$ && META=$(cat meta.$$) && if test "${NAME}" = "${META}" || test "${NAME}" = default; then test_debug "echo \"Decoded mac [${NUM}/${NAME}] as [${META}]\"" else echo "Error: munge --mac=${NAME} failed" echo "mac ${NUM} ${NAME} ${META}" >>fail.$$; fi done && test ! -s fail.$$ ok 51 - munge --mac for each mac by name PASS: 0012-munge-cmdline.t 51 - munge --mac for each mac by name expecting success: local META NAME NUM EXTRA && >fail.$$ && "${MUNGE}" --list-macs | awk "/([0-9]+)/ { gsub(/[()]/, \"\"); print \$2, \$1 }" | while read NUM NAME EXTRA; do "${MUNGE}" --socket="${MUNGE_SOCKET}" --no-input --mac="${NUM}" | "${UNMUNGE}" --socket="${MUNGE_SOCKET}" | awk "/^MAC:/ { print \$2 }" >meta.$$ && META=$(cat meta.$$) && if test "${NAME}" = "${META}" || test "${NAME}" = default; then test_debug "echo \"Decoded mac [${NUM}/${NAME}] as [${META}]\"" else echo "Error: munge --mac=${NUM} failed" echo "mac ${NUM} ${NAME} ${META}" >>fail.$$; fi done && test ! -s fail.$$ ok 52 - munge --mac for each mac by number PASS: 0012-munge-cmdline.t 52 - munge --mac for each mac by number expecting success: "${MUNGE}" "${OPT_LIST_ZIPS}" | grep -q "^Compression types:$" ok 53 - munge -Z PASS: 0012-munge-cmdline.t 53 - munge -Z expecting success: "${MUNGE}" "${OPT_LIST_ZIPS}" | grep -q "^Compression types:$" ok 54 - munge --list-zips PASS: 0012-munge-cmdline.t 54 - munge --list-zips expecting success: "${MUNGE}" --socket="${MUNGE_SOCKET}" --no-input \ "${OPT_ZIP}" default --string="$(printf %0128d 0)" | "${UNMUNGE}" --socket="${MUNGE_SOCKET}" --no-output ok 55 - munge -z for default by name PASS: 0012-munge-cmdline.t 55 - munge -z for default by name expecting success: "${MUNGE}" --socket="${MUNGE_SOCKET}" --no-input \ "${OPT_ZIP}" default --string="$(printf %0128d 0)" | "${UNMUNGE}" --socket="${MUNGE_SOCKET}" --no-output ok 56 - munge --zip for default by name PASS: 0012-munge-cmdline.t 56 - munge --zip for default by name expecting success: "${MUNGE}" --socket="${MUNGE_SOCKET}" --no-input --zip=1 \ --string="$(printf %0128d 0)" | "${UNMUNGE}" --socket="${MUNGE_SOCKET}" --no-output ok 57 - munge --zip for default by number PASS: 0012-munge-cmdline.t 57 - munge --zip for default by number expecting success: "${MUNGE}" --socket="${MUNGE_SOCKET}" --no-input --zip=none \ --string="$(printf %0128d 0)" | "${UNMUNGE}" --socket="${MUNGE_SOCKET}" | awk "/^ZIP:/ { print \$2 }" >meta.$$ && test "$(cat meta.$$)" = none ok 58 - munge --zip for none by name PASS: 0012-munge-cmdline.t 58 - munge --zip for none by name expecting success: "${MUNGE}" --socket="${MUNGE_SOCKET}" --no-input --zip=0 \ --string="$(printf %0128d 0)" | "${UNMUNGE}" --socket="${MUNGE_SOCKET}" | awk "/^ZIP:/ { print \$2 }" >meta.$$ && test "$(cat meta.$$)" = none ok 59 - munge --zip for none by number PASS: 0012-munge-cmdline.t 59 - munge --zip for none by number expecting success: test_must_fail "${MUNGE}" --socket="${MUNGE_SOCKET}" --no-input \ --zip=invalid munge: Error: Invalid compression type "invalid" ok 60 - munge --zip for invalid name PASS: 0012-munge-cmdline.t 60 - munge --zip for invalid name expecting success: test_must_fail "${MUNGE}" --socket="${MUNGE_SOCKET}" --no-input --zip=88 munge: Error: Invalid compression type "88" ok 61 - munge --zip for invalid positive number PASS: 0012-munge-cmdline.t 61 - munge --zip for invalid positive number expecting success: test_must_fail "${MUNGE}" --socket="${MUNGE_SOCKET}" --no-input --zip=-1 munge: Error: Invalid compression type "-1" ok 62 - munge --zip for invalid negative number PASS: 0012-munge-cmdline.t 62 - munge --zip for invalid negative number expecting success: local META NAME NUM EXTRA && >fail.$$ && "${MUNGE}" --list-zips | awk "/([0-9]+)/ { gsub(/[()]/, \"\"); print \$2, \$1 }" | while read NUM NAME EXTRA; do "${MUNGE}" --socket="${MUNGE_SOCKET}" --no-input --zip="${NAME}" \ --string="$(printf %0128d 0)" | "${UNMUNGE}" --socket="${MUNGE_SOCKET}" | awk "/^ZIP:/ { print \$2 }" >meta.$$ && META=$(cat meta.$$) && if test "${NAME}" = "${META}" || test "${NAME}" = default; then test_debug "echo \"Decoded zip [${NUM}/${NAME}] as [${META}]\"" else echo "Error: munge --zip=${NAME} failed" echo "zip ${NUM} ${NAME} ${META}" >>fail.$$; fi done && test ! -s fail.$$ ok 63 - munge --zip for each zip by name PASS: 0012-munge-cmdline.t 63 - munge --zip for each zip by name expecting success: local META NAME NUM EXTRA && >fail.$$ && "${MUNGE}" --list-zips | awk "/([0-9]+)/ { gsub(/[()]/, \"\"); print \$2, \$1 }" | while read NUM NAME EXTRA; do "${MUNGE}" --socket="${MUNGE_SOCKET}" --no-input --zip="${NUM}" \ --string="$(printf %0128d 0)" | "${UNMUNGE}" --socket="${MUNGE_SOCKET}" | awk "/^ZIP:/ { print \$2 }" >meta.$$ && META=$(cat meta.$$) && if test "${NAME}" = "${META}" || test "${NAME}" = default; then test_debug "echo \"Decoded zip [${NUM}/${NAME}] as [${META}]\"" else echo "Error: munge --zip=${NUM} failed" echo "zip ${NUM} ${NAME} ${META}" >>fail.$$; fi done && test ! -s fail.$$ ok 64 - munge --zip for each zip by number PASS: 0012-munge-cmdline.t 64 - munge --zip for each zip by number expecting success: local ID=$(id -u -n) META && "${MUNGE}" --socket="${MUNGE_SOCKET}" --no-input \ "${OPT_RESTRICT_UID}" "${ID}" | "${UNMUNGE}" --socket="${MUNGE_SOCKET}" | awk "/^UID_RESTRICTION:/ { print \$2 }" >meta.$$ && META=$(cat meta.$$) && test "${ID}" = "${META}" && test_debug "echo \"UID Restriction user [${ID}] matches [${META}]\"" ok 65 - munge -u by name PASS: 0012-munge-cmdline.t 65 - munge -u by name expecting success: local ID=$(id -u -n) META && "${MUNGE}" --socket="${MUNGE_SOCKET}" --no-input \ "${OPT_RESTRICT_UID}" "${ID}" | "${UNMUNGE}" --socket="${MUNGE_SOCKET}" | awk "/^UID_RESTRICTION:/ { print \$2 }" >meta.$$ && META=$(cat meta.$$) && test "${ID}" = "${META}" && test_debug "echo \"UID Restriction user [${ID}] matches [${META}]\"" ok 66 - munge --restrict-uid by name PASS: 0012-munge-cmdline.t 66 - munge --restrict-uid by name expecting success: local ID=$(id -u) META && "${MUNGE}" --socket="${MUNGE_SOCKET}" --no-input --restrict-uid="${ID}" | "${UNMUNGE}" --socket="${MUNGE_SOCKET}" | awk "/^UID_RESTRICTION:/ { gsub(/[()]/, \"\"); print \$3 }" >meta.$$ && META=$(cat meta.$$) && test "${ID}" = "${META}" && test_debug "echo \"UID Restriction user [${ID}] matches [${META}]\"" ok 67 - munge --restrict-uid by number PASS: 0012-munge-cmdline.t 67 - munge --restrict-uid by number expecting success: test_must_fail "${MUNGE}" --socket="${MUNGE_SOCKET}" --no-input \ --restrict-uid=invalid$$ munge: Error: Unrecognized user "invalid8975" ok 68 - munge --restrict-uid for invalid name PASS: 0012-munge-cmdline.t 68 - munge --restrict-uid for invalid name expecting success: test_must_fail "${MUNGE}" --socket="${MUNGE_SOCKET}" --no-input \ --restrict-uid=-1 munge: Error: Unrecognized user "-1" ok 69 - munge --restrict-uid for invalid number PASS: 0012-munge-cmdline.t 69 - munge --restrict-uid for invalid number expecting success: local ID=$(id -u -n) META && "${MUNGE}" --socket="${MUNGE_SOCKET}" --no-input "${OPT_UID}" "${ID}" | "${UNMUNGE}" --socket="${MUNGE_SOCKET}" | awk "/^UID:/ { print \$2 }" >meta.$$ && META=$(cat meta.$$) && test "${ID}" = "${META}" && test_debug "echo \"Effective user [${ID}] matches [${META}]\"" ok 70 - munge -U for effective user by name PASS: 0012-munge-cmdline.t 70 - munge -U for effective user by name expecting success: local ID=$(id -u -n) META && "${MUNGE}" --socket="${MUNGE_SOCKET}" --no-input "${OPT_UID}" "${ID}" | "${UNMUNGE}" --socket="${MUNGE_SOCKET}" | awk "/^UID:/ { print \$2 }" >meta.$$ && META=$(cat meta.$$) && test "${ID}" = "${META}" && test_debug "echo \"Effective user [${ID}] matches [${META}]\"" ok 71 - munge --uid for effective user by name PASS: 0012-munge-cmdline.t 71 - munge --uid for effective user by name expecting success: local ID=$(id -u) META && "${MUNGE}" --socket="${MUNGE_SOCKET}" --no-input --uid="${ID}" | "${UNMUNGE}" --socket="${MUNGE_SOCKET}" | awk "/^UID:/ { gsub(/[()]/, \"\"); print \$3 }" >meta.$$ && META=$(cat meta.$$) && test "${ID}" = "${META}" && test_debug "echo \"Effective uid [${ID}] matches [${META}]\"" ok 72 - munge --uid for effective user by number PASS: 0012-munge-cmdline.t 72 - munge --uid for effective user by number skipping test: munge --uid for root user by name via sudo local ID=root META && sudo LD_LIBRARY_PATH="${LD_LIBRARY_PATH}" "${MUNGE}" \ --socket="${MUNGE_SOCKET}" --no-input --uid="${ID}" | "${UNMUNGE}" --socket="${MUNGE_SOCKET}" | awk "/^UID:/ { print \$2 }" >meta.$$ && META=$(cat meta.$$) && test "${ID}" = "${META}" && test_debug "echo \"sudo user [${ID}] matches [${META}]\"" ok 73 # skip munge --uid for root user by name via sudo (missing SUDO) SKIP: 0012-munge-cmdline.t 73 # SKIP munge --uid for root user by name via sudo (missing SUDO) skipping test: munge --uid for root user by number via sudo local ID=0 META && sudo LD_LIBRARY_PATH="${LD_LIBRARY_PATH}" "${MUNGE}" \ --socket="${MUNGE_SOCKET}" --no-input --uid="${ID}" | "${UNMUNGE}" --socket="${MUNGE_SOCKET}" | awk "/^UID:/ { gsub(/[()]/, \"\"); print \$3 }" >meta.$$ && META=$(cat meta.$$) && test "${ID}" = "${META}" && test_debug "echo \"sudo uid [${ID}] matches [${META}]\"" ok 74 # skip munge --uid for root user by number via sudo (missing SUDO) SKIP: 0012-munge-cmdline.t 74 # SKIP munge --uid for root user by number via sudo (missing SUDO) expecting success: test_must_fail "${MUNGE}" --socket="${MUNGE_SOCKET}" --no-input \ --uid=invalid$$ munge: Error: Unrecognized user "invalid8975" ok 75 - munge --uid for invalid name PASS: 0012-munge-cmdline.t 75 - munge --uid for invalid name expecting success: test_must_fail "${MUNGE}" --socket="${MUNGE_SOCKET}" --no-input --uid=-1 munge: Error: Unrecognized user "-1" ok 76 - munge --uid for invalid number PASS: 0012-munge-cmdline.t 76 - munge --uid for invalid number expecting success: local ID=$(id -g -n) META && "${MUNGE}" --socket="${MUNGE_SOCKET}" --no-input \ "${OPT_RESTRICT_GID}" "${ID}" | "${UNMUNGE}" --socket="${MUNGE_SOCKET}" | awk "/^GID_RESTRICTION:/ { print \$2 }" >meta.$$ && META=$(cat meta.$$) && test "${ID}" = "${META}" && test_debug "echo \"GID Restriction GROUP [${ID}] matches [${META}]\"" ok 77 - munge -g by name PASS: 0012-munge-cmdline.t 77 - munge -g by name expecting success: local ID=$(id -g -n) META && "${MUNGE}" --socket="${MUNGE_SOCKET}" --no-input \ "${OPT_RESTRICT_GID}" "${ID}" | "${UNMUNGE}" --socket="${MUNGE_SOCKET}" | awk "/^GID_RESTRICTION:/ { print \$2 }" >meta.$$ && META=$(cat meta.$$) && test "${ID}" = "${META}" && test_debug "echo \"GID Restriction GROUP [${ID}] matches [${META}]\"" ok 78 - munge --restrict-gid by name PASS: 0012-munge-cmdline.t 78 - munge --restrict-gid by name expecting success: local ID=$(id -g) META && "${MUNGE}" --socket="${MUNGE_SOCKET}" --no-input --restrict-gid="${ID}" | "${UNMUNGE}" --socket="${MUNGE_SOCKET}" | awk "/^GID_RESTRICTION:/ { gsub(/[()]/, \"\"); print \$3 }" >meta.$$ && META=$(cat meta.$$) && test "${ID}" = "${META}" && test_debug "echo \"GID Restriction GROUP [${ID}] matches [${META}]\"" ok 79 - munge --restrict-gid by number PASS: 0012-munge-cmdline.t 79 - munge --restrict-gid by number expecting success: test_must_fail "${MUNGE}" --socket="${MUNGE_SOCKET}" --no-input \ --restrict-gid=invalid$$ munge: Error: Unrecognized group "invalid8975" ok 80 - munge --restrict-gid for invalid name PASS: 0012-munge-cmdline.t 80 - munge --restrict-gid for invalid name expecting success: test_must_fail "${MUNGE}" --socket="${MUNGE_SOCKET}" --no-input \ --restrict-gid=-1 munge: Error: Unrecognized group "-1" ok 81 - munge --restrict-gid for invalid number PASS: 0012-munge-cmdline.t 81 - munge --restrict-gid for invalid number expecting success: local ID=$(id -g -n) META && "${MUNGE}" --socket="${MUNGE_SOCKET}" --no-input "${OPT_GID}" "${ID}" | "${UNMUNGE}" --socket="${MUNGE_SOCKET}" | awk "/^GID:/ { print \$2 }" >meta.$$ && META=$(cat meta.$$) && test "${ID}" = "${META}" && test_debug "echo \"Effective group [${ID}] matches [${META}]\"" ok 82 - munge -G for effective group by name PASS: 0012-munge-cmdline.t 82 - munge -G for effective group by name expecting success: local ID=$(id -g -n) META && "${MUNGE}" --socket="${MUNGE_SOCKET}" --no-input "${OPT_GID}" "${ID}" | "${UNMUNGE}" --socket="${MUNGE_SOCKET}" | awk "/^GID:/ { print \$2 }" >meta.$$ && META=$(cat meta.$$) && test "${ID}" = "${META}" && test_debug "echo \"Effective group [${ID}] matches [${META}]\"" ok 83 - munge --gid for effective group by name PASS: 0012-munge-cmdline.t 83 - munge --gid for effective group by name expecting success: local ID=$(id -g) META && "${MUNGE}" --socket="${MUNGE_SOCKET}" --no-input --gid="${ID}" | "${UNMUNGE}" --socket="${MUNGE_SOCKET}" | awk "/^GID:/ { gsub(/[()]/, \"\"); print \$3 }" >meta.$$ && META=$(cat meta.$$) && test "${ID}" = "${META}" && test_debug "echo \"Effective gid [${ID}] matches [${META}]\"" ok 84 - munge --gid for effective group by number PASS: 0012-munge-cmdline.t 84 - munge --gid for effective group by number skipping test: munge --gid for root group by name via sudo local ID=$(id -g -n root) META && sudo LD_LIBRARY_PATH="${LD_LIBRARY_PATH}" "${MUNGE}" \ --socket="${MUNGE_SOCKET}" --no-input --gid="${ID}" | "${UNMUNGE}" --socket="${MUNGE_SOCKET}" | awk "/^GID:/ { print \$2 }" >meta.$$ && META=$(cat meta.$$) && test "${ID}" = "${META}" && test_debug "echo \"sudo group [${ID}] matches [${META}]\"" ok 85 # skip munge --gid for root group by name via sudo (missing SUDO) SKIP: 0012-munge-cmdline.t 85 # SKIP munge --gid for root group by name via sudo (missing SUDO) skipping test: munge --gid for root group by number via sudo local ID=0 META && sudo LD_LIBRARY_PATH="${LD_LIBRARY_PATH}" "${MUNGE}" \ --socket="${MUNGE_SOCKET}" --no-input --gid="${ID}" | "${UNMUNGE}" --socket="${MUNGE_SOCKET}" | awk "/^GID:/ { gsub(/[()]/, \"\"); print \$3 }" >meta.$$ && META=$(cat meta.$$) && test "${ID}" = "${META}" && test_debug "echo \"sudo gid [${ID}] matches [${META}]\"" ok 86 # skip munge --gid for root group by number via sudo (missing SUDO) SKIP: 0012-munge-cmdline.t 86 # SKIP munge --gid for root group by number via sudo (missing SUDO) expecting success: test_must_fail "${MUNGE}" --socket="${MUNGE_SOCKET}" --no-input \ --gid=invalid$$ munge: Error: Unrecognized group "invalid8975" ok 87 - munge --gid for invalid name PASS: 0012-munge-cmdline.t 87 - munge --gid for invalid name expecting success: test_must_fail "${MUNGE}" --socket="${MUNGE_SOCKET}" --no-input --gid=-1 munge: Error: Unrecognized group "-1" ok 88 - munge --gid for invalid number PASS: 0012-munge-cmdline.t 88 - munge --gid for invalid number expecting success: "${MUNGE}" --socket="${MUNGE_SOCKET}" --no-input "${OPT_TTL}" 0 | "${UNMUNGE}" --socket="${MUNGE_SOCKET}" --no-output ok 89 - munge -t for default value PASS: 0012-munge-cmdline.t 89 - munge -t for default value expecting success: "${MUNGE}" --socket="${MUNGE_SOCKET}" --no-input "${OPT_TTL}" 0 | "${UNMUNGE}" --socket="${MUNGE_SOCKET}" --no-output ok 90 - munge --ttl for default value PASS: 0012-munge-cmdline.t 90 - munge --ttl for default value expecting success: "${MUNGE}" --socket="${MUNGE_SOCKET}" --no-input --ttl=-1 | "${UNMUNGE}" --socket="${MUNGE_SOCKET}" --no-output ok 91 - munge --ttl for maximum value PASS: 0012-munge-cmdline.t 91 - munge --ttl for maximum value expecting success: local TTL=88 META && "${MUNGE}" --socket="${MUNGE_SOCKET}" --no-input --ttl="${TTL}" | "${UNMUNGE}" --socket="${MUNGE_SOCKET}" | awk "/^TTL:/ { print \$2 }" >meta.$$ && META=$(cat meta.$$) && test "${TTL}" = "${META}" && test_debug "echo \"TTL [${TTL}] matches [${META}]\"" ok 92 - munge --ttl for non-default value PASS: 0012-munge-cmdline.t 92 - munge --ttl for non-default value expecting success: test_must_fail "${MUNGE}" --socket="${MUNGE_SOCKET}" --no-input \ --ttl=invalid munge: Error: Invalid time-to-live 'invalid' ok 93 - munge --ttl for invalid string value PASS: 0012-munge-cmdline.t 93 - munge --ttl for invalid string value expecting success: test_must_fail "${MUNGE}" --socket="${MUNGE_SOCKET}" --no-input \ --ttl=4294967296 munge: Error: Exceeded maximum time-to-live of 4294967295 seconds ok 94 - munge --ttl for invalid positive number PASS: 0012-munge-cmdline.t 94 - munge --ttl for invalid positive number expecting success: test_must_fail "${MUNGE}" --socket="${MUNGE_SOCKET}" --no-input --ttl=-2 munge: Error: Invalid time-to-live '-2' ok 95 - munge --ttl for invalid negative number PASS: 0012-munge-cmdline.t 95 - munge --ttl for invalid negative number expecting success: munged_stop_daemon munged: Notice: Terminated daemon bound to socket "/tmp/munged.sock.8975" (pid 10485) ok 96 - stop munged PASS: 0012-munge-cmdline.t 96 - stop munged expecting success: munged_cleanup ok 97 - cleanup PASS: 0012-munge-cmdline.t 97 - cleanup # passed all 97 test(s) 1..97 PASS: 0015-mungekey-cmdline =========================== expecting success: test_must_fail "${MUNGEKEY}" -9 2>err.$$ && grep -q "Option \"-9\" is invalid" err.$$ ok 1 - mungekey invalid short option PASS: 0015-mungekey-cmdline.t 1 - mungekey invalid short option expecting success: test_must_fail "${MUNGEKEY}" --invalid-option 2>err.$$ && grep -q "Option \"--invalid-option\" is invalid" err.$$ ok 2 - mungekey invalid long option PASS: 0015-mungekey-cmdline.t 2 - mungekey invalid long option expecting success: test_must_fail "${MUNGEKEY}" - 2>err.$$ && grep -q "Failed to process command-line" err.$$ ok 3 - mungekey invalid non-printable short option PASS: 0015-mungekey-cmdline.t 3 - mungekey invalid non-printable short option skipping test: mungekey unimplemented option test_must_fail "${MUNGEKEY}" -8 2>err.$$ && grep -q "Option \"-8\" is not implemented" err.$$ ok 4 # skip mungekey unimplemented option (missing DEBUG) SKIP: 0015-mungekey-cmdline.t 4 # SKIP mungekey unimplemented option (missing DEBUG) expecting success: test_must_fail "${MUNGEKEY}" unrecognized-option 2>err.$$ && grep -q "Option \"unrecognized-option\" is unrecognized" err.$$ ok 5 - mungekey unrecognized option PASS: 0015-mungekey-cmdline.t 5 - mungekey unrecognized option expecting success: test_must_fail "${MUNGEKEY}" - 2>err.$$ && grep -q "Option \"-\" is unrecognized" err.$$ ok 6 - mungekey lone hyphen option PASS: 0015-mungekey-cmdline.t 6 - mungekey lone hyphen option expecting success: "${MUNGEKEY}" "${OPT_HELP}" >out.$$ && grep -q "^Usage:" out.$$ ok 7 - mungekey -h PASS: 0015-mungekey-cmdline.t 7 - mungekey -h expecting success: "${MUNGEKEY}" "${OPT_HELP}" >out.$$ && grep -q "^Usage:" out.$$ ok 8 - mungekey --help PASS: 0015-mungekey-cmdline.t 8 - mungekey --help expecting success: "${MUNGEKEY}" "${OPT_LICENSE}" >out.$$ && grep -q "GNU General Public License" out.$$ ok 9 - mungekey -L PASS: 0015-mungekey-cmdline.t 9 - mungekey -L expecting success: "${MUNGEKEY}" "${OPT_LICENSE}" >out.$$ && grep -q "GNU General Public License" out.$$ ok 10 - mungekey --license PASS: 0015-mungekey-cmdline.t 10 - mungekey --license expecting success: "${MUNGEKEY}" "${OPT_VERSION}" >out.$$ && grep -q "^munge-[0-9.]*" out.$$ ok 11 - mungekey -V PASS: 0015-mungekey-cmdline.t 11 - mungekey -V expecting success: "${MUNGEKEY}" "${OPT_VERSION}" >out.$$ && grep -q "^munge-[0-9.]*" out.$$ ok 12 - mungekey --version PASS: 0015-mungekey-cmdline.t 12 - mungekey --version expecting success: local KEYFILE=key.$$ && rm -f "${KEYFILE}" && test ! -f "${KEYFILE}" && "${MUNGEKEY}" "${OPT_CREATE}" --keyfile="${KEYFILE}" && test -f "${KEYFILE}" && test "$(find ${KEYFILE} -perm 0600)" = "${KEYFILE}" ok 13 - mungekey -c PASS: 0015-mungekey-cmdline.t 13 - mungekey -c expecting success: local KEYFILE=key.$$ && rm -f "${KEYFILE}" && test ! -f "${KEYFILE}" && "${MUNGEKEY}" "${OPT_CREATE}" --keyfile="${KEYFILE}" && test -f "${KEYFILE}" && test "$(find ${KEYFILE} -perm 0600)" = "${KEYFILE}" ok 14 - mungekey --create PASS: 0015-mungekey-cmdline.t 14 - mungekey --create expecting success: local KEYFILE=key.$$ NUM_BITS=1000 FILE_SIZE && rm -f "${KEYFILE}" && test ! -f "${KEYFILE}" && "${MUNGEKEY}" --create --keyfile="${KEYFILE}" \ "${OPT_BITS}" "${NUM_BITS}" && test -f "${KEYFILE}" && FILE_SIZE=$(wc -c < "${KEYFILE}") && test "${FILE_SIZE}" -eq "$(( ${NUM_BITS} / 8 ))" ok 15 - mungekey -b PASS: 0015-mungekey-cmdline.t 15 - mungekey -b expecting success: local KEYFILE=key.$$ NUM_BITS=1000 FILE_SIZE && rm -f "${KEYFILE}" && test ! -f "${KEYFILE}" && "${MUNGEKEY}" --create --keyfile="${KEYFILE}" \ "${OPT_BITS}" "${NUM_BITS}" && test -f "${KEYFILE}" && FILE_SIZE=$(wc -c < "${KEYFILE}") && test "${FILE_SIZE}" -eq "$(( ${NUM_BITS} / 8 ))" ok 16 - mungekey --bits PASS: 0015-mungekey-cmdline.t 16 - mungekey --bits expecting success: local KEYFILE=key.$$ NUM_BYTES=128 NUM_BITS NUM_BYTES_ROUNDED FILE_SIZE && NUM_BITS=$(( (${NUM_BYTES} * 8) + 1 )) && rm -f "${KEYFILE}" && test ! -f "${KEYFILE}" && "${MUNGEKEY}" --create --keyfile="${KEYFILE}" --bits="${NUM_BITS}" && test -f "${KEYFILE}" && NUM_BYTES_ROUNDED=$(( (${NUM_BITS} + 7) / 8 )) && test "${NUM_BYTES_ROUNDED}" = "$(( ${NUM_BYTES} + 1 ))" && FILE_SIZE=$(wc -c < "${KEYFILE}") && test "${FILE_SIZE}" -eq "${NUM_BYTES_ROUNDED}" ok 17 - mungekey --bits rounding-up to next byte PASS: 0015-mungekey-cmdline.t 17 - mungekey --bits rounding-up to next byte expecting success: local KEYFILE=key.$$ DEFS NUM_BYTES NUM_BITS FILE_SIZE && DEFS="${MUNGE_SOURCE_DIR}/src/libcommon/munge_defs.h" && test -f "${DEFS}" && NUM_BYTES=$(awk "/MUNGE_KEY_LEN_DFL_BYTES/ { print \$3 }" "${DEFS}") && NUM_BITS=$(( ${NUM_BYTES} * 8 )) && rm -f "${KEYFILE}" && test ! -f "${KEYFILE}" && "${MUNGEKEY}" --create --keyfile="${KEYFILE}" && test -f "${KEYFILE}" && FILE_SIZE=$(wc -c < "${KEYFILE}") && test "${FILE_SIZE}" -eq "${NUM_BYTES}" ok 18 - mungekey --bits unspecified and using default PASS: 0015-mungekey-cmdline.t 18 - mungekey --bits unspecified and using default expecting success: local KEYFILE=key.$$ DEFS NUM_BYTES NUM_BITS FILE_SIZE && DEFS="${MUNGE_SOURCE_DIR}/src/libcommon/munge_defs.h" && test -f "${DEFS}" && NUM_BYTES=$(awk "/MUNGE_KEY_LEN_MIN_BYTES/ { print \$3 }" "${DEFS}") && NUM_BITS=$(( ${NUM_BYTES} * 8 )) && rm -f "${KEYFILE}" && test ! -f "${KEYFILE}" && "${MUNGEKEY}" --create --keyfile="${KEYFILE}" --bits="${NUM_BITS}" && test -f "${KEYFILE}" && FILE_SIZE=$(wc -c < "${KEYFILE}") && test "${FILE_SIZE}" -eq "${NUM_BYTES}" ok 19 - mungekey --bits with minimum value PASS: 0015-mungekey-cmdline.t 19 - mungekey --bits with minimum value expecting success: local KEYFILE=key.$$ DEFS NUM_BYTES NUM_BITS FILE_SIZE && DEFS="${MUNGE_SOURCE_DIR}/src/libcommon/munge_defs.h" && test -f "${DEFS}" && NUM_BYTES=$(awk "/MUNGE_KEY_LEN_MAX_BYTES/ { print \$3 }" "${DEFS}") && NUM_BITS=$(( ${NUM_BYTES} * 8 )) && rm -f "${KEYFILE}" && test ! -f "${KEYFILE}" && "${MUNGEKEY}" --create --keyfile="${KEYFILE}" --bits="${NUM_BITS}" && test -f "${KEYFILE}" && FILE_SIZE=$(wc -c < "${KEYFILE}") && test "${FILE_SIZE}" -eq "${NUM_BYTES}" ok 20 - mungekey --bits with maximum value PASS: 0015-mungekey-cmdline.t 20 - mungekey --bits with maximum value expecting success: local DEFS NUM_BYTES NUM_BITS && DEFS="${MUNGE_SOURCE_DIR}/src/libcommon/munge_defs.h" && test -f "${DEFS}" && NUM_BYTES=$(awk "/MUNGE_KEY_LEN_MIN_BYTES/ { print \$3 }" "${DEFS}") && NUM_BITS=$(( (${NUM_BYTES} * 8) - 1 )) && test_must_fail "${MUNGEKEY}" --create --keyfile=key.$$ \ --bits="${NUM_BITS}" 2>err.$$ && grep -q "Option \"--bits\" has invalid value \"${NUM_BITS}\"" err.$$ ok 21 - mungekey --bits below minimum value PASS: 0015-mungekey-cmdline.t 21 - mungekey --bits below minimum value expecting success: local DEFS NUM_BYTES NUM_BITS && DEFS="${MUNGE_SOURCE_DIR}/src/libcommon/munge_defs.h" && test -f "${DEFS}" && NUM_BYTES=$(awk "/MUNGE_KEY_LEN_MAX_BYTES/ { print \$3 }" "${DEFS}") && NUM_BITS=$(( (${NUM_BYTES} * 8) + 1 )) && test_must_fail "${MUNGEKEY}" --create --keyfile=key.$$ \ --bits="${NUM_BITS}" 2>err.$$ && grep -q "Option \"--bits\" has invalid value \"${NUM_BITS}\"" err.$$ ok 22 - mungekey --bits above maximum value PASS: 0015-mungekey-cmdline.t 22 - mungekey --bits above maximum value expecting success: local DEFS NUM_BYTES NUM_BITS && DEFS="${MUNGE_SOURCE_DIR}/src/libcommon/munge_defs.h" && test -f "${DEFS}" && NUM_BYTES=$(awk "/MUNGE_KEY_LEN_MIN_BYTES/ { print \$3 }" "${DEFS}") && NUM_BITS=$(( ${NUM_BYTES} * 8 )) && test_must_fail "${MUNGEKEY}" --create --keyfile=key.$$ --bits=1 2>err.$$ && grep -q -- "${NUM_BITS}-" err.$$ ok 23 - mungekey --bits error message with minimum value PASS: 0015-mungekey-cmdline.t 23 - mungekey --bits error message with minimum value expecting success: local DEFS NUM_BYTES NUM_BITS && DEFS="${MUNGE_SOURCE_DIR}/src/libcommon/munge_defs.h" && test -f "${DEFS}" && NUM_BYTES=$(awk "/MUNGE_KEY_LEN_MAX_BYTES/ { print \$3 }" "${DEFS}") && NUM_BITS=$(( ${NUM_BYTES} * 8 )) && test_must_fail "${MUNGEKEY}" --create --keyfile=key.$$ --bits=1 2>err.$$ && grep -q -- "-${NUM_BITS}" err.$$ ok 24 - mungekey --bits error message with maximum value PASS: 0015-mungekey-cmdline.t 24 - mungekey --bits error message with maximum value expecting success: test_must_fail "${MUNGEKEY}" --create --keyfile=key.$$ --bits=0 2>err.$$ && grep -q "Option \"--bits\" has invalid value" err.$$ ok 25 - mungekey --bits with zero value PASS: 0015-mungekey-cmdline.t 25 - mungekey --bits with zero value expecting success: test_must_fail "${MUNGEKEY}" --create --keyfile=key.$$ --bits=-1 \ 2>err.$$ && grep -q "Option \"--bits\" has invalid value" err.$$ ok 26 - mungekey --bits with negative value PASS: 0015-mungekey-cmdline.t 26 - mungekey --bits with negative value expecting success: test_must_fail "${MUNGEKEY}" --create --keyfile=key.$$ -b 2>err.$$ && grep -q "Option \"-b\" is missing a required argument" err.$$ ok 27 - mungekey -b without required value PASS: 0015-mungekey-cmdline.t 27 - mungekey -b without required value expecting success: test_must_fail "${MUNGEKEY}" --create --keyfile=key.$$ --bits 2>err.$$ && grep -q "Option \"--bits\" is missing a required argument" err.$$ ok 28 - mungekey --bits without required value PASS: 0015-mungekey-cmdline.t 28 - mungekey --bits without required value expecting success: local KEYFILE=key.$$ && rm -f "${KEYFILE}" && touch "${KEYFILE}" && test ! -s "${KEYFILE}" && "${MUNGEKEY}" --create --keyfile="${KEYFILE}" "${OPT_FORCE}" && test -s "${KEYFILE}" ok 29 - mungekey -f PASS: 0015-mungekey-cmdline.t 29 - mungekey -f expecting success: local KEYFILE=key.$$ && rm -f "${KEYFILE}" && touch "${KEYFILE}" && test ! -s "${KEYFILE}" && "${MUNGEKEY}" --create --keyfile="${KEYFILE}" "${OPT_FORCE}" && test -s "${KEYFILE}" ok 30 - mungekey --force PASS: 0015-mungekey-cmdline.t 30 - mungekey --force expecting success: local KEYFILE=key.$$ && rm -f "${KEYFILE}" && echo -n xyzzy-$$ > "${KEYFILE}" && chmod 0600 "${KEYFILE}" && test_must_fail "${MUNGEKEY}" --create --keyfile="${KEYFILE}" 2>err.$$ && grep -q "File exists" err.$$ && test "$(cat ${KEYFILE})" = xyzzy-$$ ok 31 - mungekey without --force and with existing keyfile PASS: 0015-mungekey-cmdline.t 31 - mungekey without --force and with existing keyfile expecting success: local KEYFILE=key.$$ && rm -f "${KEYFILE}" && test ! -f "${KEYFILE}" && "${MUNGEKEY}" --create "${OPT_KEYFILE}" "${KEYFILE}" && test -f "${KEYFILE}" ok 32 - mungekey -k PASS: 0015-mungekey-cmdline.t 32 - mungekey -k expecting success: local KEYFILE=key.$$ && rm -f "${KEYFILE}" && test ! -f "${KEYFILE}" && "${MUNGEKEY}" --create "${OPT_KEYFILE}" "${KEYFILE}" && test -f "${KEYFILE}" ok 33 - mungekey --keyfile PASS: 0015-mungekey-cmdline.t 33 - mungekey --keyfile expecting success: test_must_fail "${MUNGEKEY}" --create -k 2>err.$$ && grep -q "Option \"-k\" is missing a required argument" err.$$ ok 34 - mungekey -k without required value PASS: 0015-mungekey-cmdline.t 34 - mungekey -k without required value expecting success: test_must_fail "${MUNGEKEY}" --create --keyfile 2>err.$$ && grep -q "Option \"--keyfile\" is missing a required argument" err.$$ ok 35 - mungekey --keyfile without required value PASS: 0015-mungekey-cmdline.t 35 - mungekey --keyfile without required value expecting success: local KEYFILE=key.$$ && rm -f "${KEYFILE}" && test ! -f "${KEYFILE}" && "${MUNGEKEY}" --create --keyfile="${KEYFILE}" "${OPT_VERBOSE}" \ 2>err.$$ && test -f "${KEYFILE}" && grep -q "Created \"${KEYFILE}\"" err.$$ ok 36 - mungekey -v PASS: 0015-mungekey-cmdline.t 36 - mungekey -v expecting success: local KEYFILE=key.$$ && rm -f "${KEYFILE}" && test ! -f "${KEYFILE}" && "${MUNGEKEY}" --create --keyfile="${KEYFILE}" "${OPT_VERBOSE}" \ 2>err.$$ && test -f "${KEYFILE}" && grep -q "Created \"${KEYFILE}\"" err.$$ ok 37 - mungekey --verbose PASS: 0015-mungekey-cmdline.t 37 - mungekey --verbose expecting success: local KEYFILE=key.$$ NUM_BITS=1000 NUM_BITS_USED && rm -f "${KEYFILE}" && test ! -f "${KEYFILE}" && "${MUNGEKEY}" --create --keyfile="${KEYFILE}" --bits="${NUM_BITS}" \ --verbose 2>err.$$ && test -f "${KEYFILE}" && NUM_BITS_USED=$(sed -n -e "s/.* \([0-9][0-9]*\)-bit.*/\\1/p" err.$$) && test "${NUM_BITS_USED}" -eq "${NUM_BITS}" ok 38 - mungekey --verbose number of bits PASS: 0015-mungekey-cmdline.t 38 - mungekey --verbose number of bits expecting success: local KEYFILE=key.$$ && rm -f "${KEYFILE}" && test ! -f "${KEYFILE}" && "${MUNGEKEY}" --create --keyfile="${KEYFILE}" >out.$$ 2>err.$$ && test -f "${KEYFILE}" && test ! -s out.$$ && test ! -s err.$$ ok 39 - mungekey without --verbose PASS: 0015-mungekey-cmdline.t 39 - mungekey without --verbose expecting success: test_must_fail "${MUNGEKEY}" --create --keyfile=key.$$ -b 1 2>err.$$ && grep -q "Option \"-b\" has invalid value" err.$$ ok 40 - mungekey long_ind re-initialized for getopt_long() PASS: 0015-mungekey-cmdline.t 40 - mungekey long_ind re-initialized for getopt_long() expecting success: local KEYFILE=key.$$ && rm -f "${KEYFILE}" && test ! -f "${KEYFILE}" && "${MUNGEKEY}" --keyfile="${KEYFILE}" && test -f "${KEYFILE}" ok 41 - mungekey defaults to create key PASS: 0015-mungekey-cmdline.t 41 - mungekey defaults to create key # passed all 41 test(s) 1..41 SKIP: 0021-munged-valgrind ========================== 1..0 # SKIP skipping valgrind tests; long test not specified SKIP: 0021-munged-valgrind.t - skipping valgrind tests; long test not specified SKIP: 0022-munge-valgrind ========================= 1..0 # SKIP skipping valgrind tests; long test not specified SKIP: 0022-munge-valgrind.t - skipping valgrind tests; long test not specified SKIP: 0023-unmunge-valgrind =========================== 1..0 # SKIP skipping valgrind tests; long test not specified SKIP: 0023-unmunge-valgrind.t - skipping valgrind tests; long test not specified SKIP: 0025-mungekey-valgrind ============================ 1..0 # SKIP skipping valgrind tests; long test not specified SKIP: 0025-mungekey-valgrind.t - skipping valgrind tests; long test not specified PASS: 0100-munged-lock ====================== expecting success: munged_setup && munged_create_key && MUNGE_LOCKFILE="${MUNGE_SOCKET}.lock" ok 1 - setup PASS: 0100-munged-lock.t 1 - setup expecting success: local MASK && MASK=$(umask) && umask 0 && munged_start_daemon && umask "${MASK}" ok 2 - start munged with open umask PASS: 0100-munged-lock.t 2 - start munged with open umask expecting success: ps -p "$(cat "${MUNGE_PIDFILE}")" -ww | grep munged 10094 ? 00:00:00 munged ok 3 - check pidfile after munged success PASS: 0100-munged-lock.t 3 - check pidfile after munged success expecting success: test -e "${MUNGE_LOCKFILE}" ok 4 - check lockfile existence PASS: 0100-munged-lock.t 4 - check lockfile existence expecting success: test -f "${MUNGE_LOCKFILE}" ok 5 - check lockfile type PASS: 0100-munged-lock.t 5 - check lockfile type expecting success: test "$(find ${MUNGE_LOCKFILE} -perm 0200)" = "${MUNGE_LOCKFILE}" ok 6 - check lockfile permissions PASS: 0100-munged-lock.t 6 - check lockfile permissions expecting success: test_must_fail munged_start_daemon t-keep-process && egrep "Error:.* Failed to lock \"${MUNGE_LOCKFILE}\"" "${MUNGE_LOGFILE}" munged: Error: Failed to lock "/tmp/munged.sock.9359.lock": pid 10094 bound to socket "/tmp/munged.sock.9359" egrep: warning: egrep is obsolescent; using grep -E 2023-12-10 02:43:59 +0000 Error: Failed to lock "/tmp/munged.sock.9359.lock": pid 10094 bound to socket "/tmp/munged.sock.9359" ok 7 - start munged with in-use socket PASS: 0100-munged-lock.t 7 - start munged with in-use socket expecting success: ps -p "$(cat "${MUNGE_PIDFILE}")" -ww | grep munged 10094 ? 00:00:00 munged ok 8 - check pidfile after munged failure PASS: 0100-munged-lock.t 8 - check pidfile after munged failure expecting success: munged_stop_daemon 2>&1 | grep "Terminated daemon" munged: Notice: Terminated daemon bound to socket "/tmp/munged.sock.9359" (pid 10094) ok 9 - stop munged using lockfile-derived pid PASS: 0100-munged-lock.t 9 - stop munged using lockfile-derived pid expecting success: test "x${MUNGE_LOCKFILE}" != x && test ! -f "${MUNGE_LOCKFILE}" ok 10 - check lockfile removal PASS: 0100-munged-lock.t 10 - check lockfile removal expecting success: rm -f "${MUNGE_LOCKFILE}" && touch "${MUNGE_LOCKFILE}" && chmod 0600 "${MUNGE_LOCKFILE}" && test_must_fail munged_start_daemon && egrep "Error:.* \"${MUNGE_LOCKFILE}\" .* permissions for write by user" \ "${MUNGE_LOGFILE}" munged: Error: Failed to validate lockfile: "/tmp/munged.sock.9359.lock" should only have permissions for write by user (file mode 0200) egrep: warning: egrep is obsolescent; using grep -E 2023-12-10 02:44:00 +0000 Error: Failed to validate lockfile: "/tmp/munged.sock.9359.lock" should only have permissions for write by user (file mode 0200) ok 11 - start munged with 0600 bogus lockfile PASS: 0100-munged-lock.t 11 - start munged with 0600 bogus lockfile expecting success: rm -f "${MUNGE_LOCKFILE}" && touch "${MUNGE_LOCKFILE}" && chmod 0222 "${MUNGE_LOCKFILE}" && test_must_fail munged_start_daemon && egrep "Error:.* \"${MUNGE_LOCKFILE}\" .* permissions for write by user" \ "${MUNGE_LOGFILE}" munged: Error: Failed to validate lockfile: "/tmp/munged.sock.9359.lock" should only have permissions for write by user (file mode 0200) egrep: warning: egrep is obsolescent; using grep -E 2023-12-10 02:44:00 +0000 Error: Failed to validate lockfile: "/tmp/munged.sock.9359.lock" should only have permissions for write by user (file mode 0200) ok 12 - start munged with 0222 bogus lockfile PASS: 0100-munged-lock.t 12 - start munged with 0222 bogus lockfile expecting success: rm -f "${MUNGE_LOCKFILE}" && echo "$$" > "${MUNGE_LOCKFILE}" && chmod 0200 "${MUNGE_LOCKFILE}" && test -s "${MUNGE_LOCKFILE}" && munged_start_daemon ok 13 - start munged with inactive non-zero-length lockfile PASS: 0100-munged-lock.t 13 - start munged with inactive non-zero-length lockfile expecting success: test -f "${MUNGE_LOCKFILE}" && test ! -s "${MUNGE_LOCKFILE}" ok 14 - check for lockfile truncation after successful start PASS: 0100-munged-lock.t 14 - check for lockfile truncation after successful start expecting success: local PID && PID=$(cat "${MUNGE_PIDFILE}") && ps -p "${PID}" -ww | grep munged && while kill -s KILL "${PID}" 2>/dev/null; do :; done && ! ps -p "${PID}" >/dev/null 11605 ? 00:00:00 munged ok 15 - stop munged using sigkill to prevent cleanup PASS: 0100-munged-lock.t 15 - stop munged using sigkill to prevent cleanup expecting success: test -S "${MUNGE_SOCKET}" ok 16 - check for leftover socket from unclean shutdown PASS: 0100-munged-lock.t 16 - check for leftover socket from unclean shutdown expecting success: test -f "${MUNGE_LOCKFILE}" ok 17 - check for leftover lockfile from unclean shutdown PASS: 0100-munged-lock.t 17 - check for leftover lockfile from unclean shutdown expecting success: test -f "${MUNGE_PIDFILE}" ok 18 - check for leftover pidfile from unclean shutdown PASS: 0100-munged-lock.t 18 - check for leftover pidfile from unclean shutdown expecting success: retry 5 "munged_start_daemon" ok 19 - start munged with leftover socket from unclean shutdown PASS: 0100-munged-lock.t 19 - start munged with leftover socket from unclean shutdown expecting success: munged_stop_daemon 2>&1 | grep "Terminated daemon" munged: Notice: Terminated daemon bound to socket "/tmp/munged.sock.9359" (pid 11893) ok 20 - stop munged PASS: 0100-munged-lock.t 20 - stop munged expecting success: test "x${MUNGE_LOCKFILE}" != x && test ! -f "${MUNGE_LOCKFILE}" ok 21 - check lockfile removal again PASS: 0100-munged-lock.t 21 - check lockfile removal again skipping test: stop unprivileged munged as root munged_start_daemon && if munged_stop_daemon \ t-exec="sudo LD_LIBRARY_PATH=${LD_LIBRARY_PATH}"; then :; else munged_stop_daemon; false; fi ok 22 # skip stop unprivileged munged as root (missing SUDO) SKIP: 0100-munged-lock.t 22 # SKIP stop unprivileged munged as root (missing SUDO) expecting success: munged_cleanup ok 23 - cleanup PASS: 0100-munged-lock.t 23 - cleanup # passed all 23 test(s) 1..23 PASS: 0101-munged-security-socket ================================= expecting success: MUNGE_SOCKETDIR="${TMPDIR:-"/tmp"}/munge-$$/socketdir-$$" && munged_setup && munged_create_key ok 1 - setup PASS: 0101-munged-security-socket.t 1 - setup expecting success: test "$(find "${MUNGE_SOCKETDIR}" -type d -perm 1777)" = \ "${MUNGE_SOCKETDIR}" && munged_start_daemon && munged_stop_daemon munged: Notice: Terminated daemon bound to socket "/tmp/munge-9357/socketdir-9357/munged.sock.9357" (pid 10021) ok 2 - socket dir perms PASS: 0101-munged-security-socket.t 2 - socket dir perms expecting success: local TYPE PERM && munged_start_daemon && TYPE=$(find "${MUNGE_SOCKET}" -type s) && PERM=$(find "${MUNGE_SOCKET}" -perm 0777) && munged_stop_daemon && test "${TYPE}" = "${MUNGE_SOCKET}" && test "${PERM}" = "${MUNGE_SOCKET}" munged: Notice: Terminated daemon bound to socket "/tmp/munge-9357/socketdir-9357/munged.sock.9357" (pid 10588) ok 3 - socket type and perms PASS: 0101-munged-security-socket.t 3 - socket type and perms expecting success: local DIR_UID MY_EUID && DIR_UID=$(ls -d -l -n "${MUNGE_SOCKETDIR}" | awk "{ print \$3 }") && MY_EUID=$(id -u) && test "${DIR_UID}" = "${MY_EUID}" && munged_start_daemon && munged_stop_daemon munged: Notice: Terminated daemon bound to socket "/tmp/munge-9357/socketdir-9357/munged.sock.9357" (pid 11104) ok 4 - socket dir owned by euid PASS: 0101-munged-security-socket.t 4 - socket dir owned by euid skipping test: alt socket dir setup ALT_SOCKETDIR="${TMPDIR:-"/tmp"}/munge-$$/alt-socketdir-$$" && mkdir -m 1777 -p "${ALT_SOCKETDIR}" && ALT_SOCKET="${ALT_SOCKETDIR}/munged.sock.$$" && test_set_prereq ALT ok 5 # skip alt socket dir setup (missing SUDO) SKIP: 0101-munged-security-socket.t 5 # SKIP alt socket dir setup (missing SUDO) skipping test: socket dir owned by root sudo chown root "${ALT_SOCKETDIR}" && munged_start_daemon --socket="${ALT_SOCKET}" && munged_stop_daemon --socket="${ALT_SOCKET}" ok 6 # skip socket dir owned by root (missing SUDO,ALT of ALT,SUDO) SKIP: 0101-munged-security-socket.t 6 # SKIP socket dir owned by root (missing SUDO,ALT of ALT,SUDO) skipping test: socket dir owned by other failure test "$(id -u)" != "1" && sudo chown 1 "${ALT_SOCKETDIR}" && test_must_fail munged_start_daemon --socket="${ALT_SOCKET}" && egrep "Error:.* Socket.* invalid ownership of \"${ALT_SOCKETDIR}\"" \ "${MUNGE_LOGFILE}" ok 7 # skip socket dir owned by other failure (missing SUDO,ALT of ALT,SUDO) SKIP: 0101-munged-security-socket.t 7 # SKIP socket dir owned by other failure (missing SUDO,ALT of ALT,SUDO) skipping test: socket dir owned by other override test "$(id -u)" != "1" && sudo chown 1 "${ALT_SOCKETDIR}" && munged_start_daemon --socket="${ALT_SOCKET}" --force && munged_stop_daemon --socket="${ALT_SOCKET}" && egrep "Warning:.* Socket.* invalid ownership of \"${ALT_SOCKETDIR}\"" \ "${MUNGE_LOGFILE}" ok 8 # skip socket dir owned by other override (missing SUDO,ALT of ALT,SUDO) SKIP: 0101-munged-security-socket.t 8 # SKIP socket dir owned by other override (missing SUDO,ALT of ALT,SUDO) skipping test: alt socket dir cleanup rmdir "${ALT_SOCKETDIR}" && unset ALT_SOCKETDIR && unset ALT_SOCKET ok 9 # skip alt socket dir cleanup (missing ALT) SKIP: 0101-munged-security-socket.t 9 # SKIP alt socket dir cleanup (missing ALT) expecting success: local GID && GID=$(ls -d -l -n "${MUNGE_SOCKETDIR}" | awk "{ print \$4 }") && chmod 0771 "${MUNGE_SOCKETDIR}" && munged_start_daemon --trusted-group="${GID}" && munged_stop_daemon && chmod 1777 "${MUNGE_SOCKETDIR}" munged: Notice: Terminated daemon bound to socket "/tmp/munge-9357/socketdir-9357/munged.sock.9357" (pid 11358) ok 10 - socket dir writable by trusted group PASS: 0101-munged-security-socket.t 10 - socket dir writable by trusted group expecting success: local GID && GID=$(ls -d -l -n "${MUNGE_SOCKETDIR}" | awk "{ print \$4 }") && GID=$(( ${GID} + 1 )) && chmod 0771 "${MUNGE_SOCKETDIR}" && test_must_fail munged_start_daemon --trusted-group="${GID}" && chmod 1777 "${MUNGE_SOCKETDIR}" munged: Error: Socket is insecure: group-writable permissions without sticky bit set on "/tmp/munge-9357/socketdir-9357" ok 11 - socket dir writable by untrusted group failure PASS: 0101-munged-security-socket.t 11 - socket dir writable by untrusted group failure expecting success: chmod 0771 "${MUNGE_SOCKETDIR}" && test_must_fail munged_start_daemon && chmod 1777 "${MUNGE_SOCKETDIR}" && egrep "Error:.* group-writable permissions without sticky bit set" \ "${MUNGE_LOGFILE}" munged: Error: Socket is insecure: group-writable permissions without sticky bit set on "/tmp/munge-9357/socketdir-9357" egrep: warning: egrep is obsolescent; using grep -E 2023-12-10 02:44:01 +0000 Error: Socket is insecure: group-writable permissions without sticky bit set on "/tmp/munge-9357/socketdir-9357" ok 12 - socket dir writable by group failure PASS: 0101-munged-security-socket.t 12 - socket dir writable by group failure expecting success: chmod 0771 "${MUNGE_SOCKETDIR}" && munged_start_daemon --force && munged_stop_daemon && chmod 1777 "${MUNGE_SOCKETDIR}" && egrep "Warning:.* group-writable permissions without sticky bit set" \ "${MUNGE_LOGFILE}" munged: Notice: Terminated daemon bound to socket "/tmp/munge-9357/socketdir-9357/munged.sock.9357" (pid 12456) egrep: warning: egrep is obsolescent; using grep -E 2023-12-10 02:44:01 +0000 Warning: Socket is insecure: group-writable permissions without sticky bit set on "/tmp/munge-9357/socketdir-9357" ok 13 - socket dir writable by group override PASS: 0101-munged-security-socket.t 13 - socket dir writable by group override expecting success: chmod 1771 "${MUNGE_SOCKETDIR}" && munged_start_daemon && munged_stop_daemon && chmod 1777 "${MUNGE_SOCKETDIR}" munged: Notice: Terminated daemon bound to socket "/tmp/munge-9357/socketdir-9357/munged.sock.9357" (pid 12790) ok 14 - socket dir writable by group with sticky bit PASS: 0101-munged-security-socket.t 14 - socket dir writable by group with sticky bit expecting success: chmod 0717 "${MUNGE_SOCKETDIR}" && test_must_fail munged_start_daemon && chmod 1777 "${MUNGE_SOCKETDIR}" && egrep "Error:.* world-writable permissions without sticky bit set" \ "${MUNGE_LOGFILE}" munged: Error: Socket is insecure: world-writable permissions without sticky bit set on "/tmp/munge-9357/socketdir-9357" egrep: warning: egrep is obsolescent; using grep -E 2023-12-10 02:44:02 +0000 Error: Socket is insecure: world-writable permissions without sticky bit set on "/tmp/munge-9357/socketdir-9357" ok 15 - socket dir writable by other failure PASS: 0101-munged-security-socket.t 15 - socket dir writable by other failure expecting success: chmod 0717 "${MUNGE_SOCKETDIR}" && munged_start_daemon --force && munged_stop_daemon && chmod 1777 "${MUNGE_SOCKETDIR}" && egrep "Warning:.* world-writable permissions without sticky bit set" \ "${MUNGE_LOGFILE}" munged: Notice: Terminated daemon bound to socket "/tmp/munge-9357/socketdir-9357/munged.sock.9357" (pid 13217) egrep: warning: egrep is obsolescent; using grep -E 2023-12-10 02:44:02 +0000 Warning: Socket is insecure: world-writable permissions without sticky bit set on "/tmp/munge-9357/socketdir-9357" ok 16 - socket dir writable by other override PASS: 0101-munged-security-socket.t 16 - socket dir writable by other override expecting success: chmod 1717 "${MUNGE_SOCKETDIR}" && munged_start_daemon && munged_stop_daemon && chmod 1777 "${MUNGE_SOCKETDIR}" munged: Notice: Terminated daemon bound to socket "/tmp/munge-9357/socketdir-9357/munged.sock.9357" (pid 13474) ok 17 - socket dir writable by other with sticky bit PASS: 0101-munged-security-socket.t 17 - socket dir writable by other with sticky bit expecting success: chmod 0700 "${MUNGE_SOCKETDIR}" && test_must_fail munged_start_daemon && chmod 1777 "${MUNGE_SOCKETDIR}" && egrep "Error:.* Socket is inaccessible.* \"${MUNGE_SOCKETDIR}\"" \ "${MUNGE_LOGFILE}" munged: Error: Socket is inaccessible: execute permissions for all required on "/tmp/munge-9357/socketdir-9357" egrep: warning: egrep is obsolescent; using grep -E 2023-12-10 02:44:02 +0000 Error: Socket is inaccessible: execute permissions for all required on "/tmp/munge-9357/socketdir-9357" ok 18 - socket dir inaccessible by all failure PASS: 0101-munged-security-socket.t 18 - socket dir inaccessible by all failure expecting success: chmod 0700 "${MUNGE_SOCKETDIR}" && munged_start_daemon --force && munged_stop_daemon && chmod 1777 "${MUNGE_SOCKETDIR}" && egrep "Warning:.* Socket is inaccessible.* \"${MUNGE_SOCKETDIR}\"" \ "${MUNGE_LOGFILE}" munged: Notice: Terminated daemon bound to socket "/tmp/munge-9357/socketdir-9357/munged.sock.9357" (pid 13800) egrep: warning: egrep is obsolescent; using grep -E 2023-12-10 02:44:03 +0000 Warning: Socket is inaccessible: execute permissions for all required on "/tmp/munge-9357/socketdir-9357" ok 19 - socket dir inaccessible by all override PASS: 0101-munged-security-socket.t 19 - socket dir inaccessible by all override expecting success: rmdir "${MUNGE_SOCKETDIR}" && if rmdir "$(dirname "${MUNGE_SOCKETDIR}")" 2>/dev/null; then :; fi && munged_cleanup ok 20 - cleanup PASS: 0101-munged-security-socket.t 20 - cleanup # passed all 20 test(s) 1..20 PASS: 0102-munged-security-keyfile ================================== expecting success: munged_setup && munged_create_key ok 1 - setup PASS: 0102-munged-security-keyfile.t 1 - setup expecting success: test -f "${MUNGE_KEYFILE}" && munged_start_daemon && munged_stop_daemon munged: Notice: Terminated daemon bound to socket "/tmp/munged.sock.9425" (pid 10037) ok 2 - keyfile regular file PASS: 0102-munged-security-keyfile.t 2 - keyfile regular file expecting success: local MUNGE_KEYFILE && MUNGE_KEYFILE="${MUNGE_KEYDIR}/munged.key.$$.missing" && test_must_fail munged_start_daemon && egrep "Error:.* Failed to find keyfile.*: No such file" "${MUNGE_LOGFILE}" munged: Error: Failed to find keyfile "/startdir/src/test-tmp/trash-directory.0102-munged-security-keyfile/etc-9425/munged.key.9425.missing": No such file or directory (Did you run mungekey?) egrep: warning: egrep is obsolescent; using grep -E 2023-12-10 02:43:59 +0000 Error: Failed to find keyfile "/startdir/src/test-tmp/trash-directory.0102-munged-security-keyfile/etc-9425/munged.key.9425.missing": No such file or directory (Did you run mungekey?) ok 3 - keyfile missing failure PASS: 0102-munged-security-keyfile.t 3 - keyfile missing failure expecting success: local MUNGE_KEYFILE && MUNGE_KEYFILE="${MUNGE_KEYDIR}/munged.key.$$.non-regular-file" && rm -r -f "${MUNGE_KEYFILE}" && mkdir "${MUNGE_KEYFILE}" && test_must_fail munged_start_daemon && egrep "Error:.* Keyfile.* must be a regular file" "${MUNGE_LOGFILE}" && rmdir "${MUNGE_KEYFILE}" munged: Error: Keyfile is insecure: "/startdir/src/test-tmp/trash-directory.0102-munged-security-keyfile/etc-9425/munged.key.9425.non-regular-file" must be a regular file (type=0040000) egrep: warning: egrep is obsolescent; using grep -E 2023-12-10 02:44:00 +0000 Error: Keyfile is insecure: "/startdir/src/test-tmp/trash-directory.0102-munged-security-keyfile/etc-9425/munged.key.9425.non-regular-file" must be a regular file (type=0040000) ok 4 - keyfile non-regular-file failure PASS: 0102-munged-security-keyfile.t 4 - keyfile non-regular-file failure expecting success: local MUNGE_KEYFILE && MUNGE_KEYFILE="${MUNGE_KEYDIR}/munged.key.$$.non-regular-file" && rm -r -f "${MUNGE_KEYFILE}" && mkdir "${MUNGE_KEYFILE}" && test_must_fail munged_start_daemon --force && egrep "Error:.* Keyfile.* must be a regular file" "${MUNGE_LOGFILE}" && rmdir "${MUNGE_KEYFILE}" munged: Error: Keyfile is insecure: "/startdir/src/test-tmp/trash-directory.0102-munged-security-keyfile/etc-9425/munged.key.9425.non-regular-file" must be a regular file (type=0040000) egrep: warning: egrep is obsolescent; using grep -E 2023-12-10 02:44:00 +0000 Error: Keyfile is insecure: "/startdir/src/test-tmp/trash-directory.0102-munged-security-keyfile/etc-9425/munged.key.9425.non-regular-file" must be a regular file (type=0040000) ok 5 - keyfile non-regular-file override failure PASS: 0102-munged-security-keyfile.t 5 - keyfile non-regular-file override failure expecting success: local MY_KEYFILE && MY_KEYFILE="${MUNGE_KEYFILE}.symlink" && ln -s -f "${MUNGE_KEYFILE}" "${MY_KEYFILE}" && test_must_fail munged_start_daemon --key-file="${MY_KEYFILE}" && egrep "Error:.* Keyfile.* a symbolic link" "${MUNGE_LOGFILE}" munged: Error: Keyfile is insecure: "/startdir/src/test-tmp/trash-directory.0102-munged-security-keyfile/etc-9425/munged.key.9425.symlink" should not be a symbolic link egrep: warning: egrep is obsolescent; using grep -E 2023-12-10 02:44:00 +0000 Error: Keyfile is insecure: "/startdir/src/test-tmp/trash-directory.0102-munged-security-keyfile/etc-9425/munged.key.9425.symlink" should not be a symbolic link ok 6 - keyfile symlink to regular file failure PASS: 0102-munged-security-keyfile.t 6 - keyfile symlink to regular file failure expecting success: local MY_KEYFILE && MY_KEYFILE="${MUNGE_KEYFILE}.symlink" && ln -s -f "${MUNGE_KEYFILE}" "${MY_KEYFILE}" && munged_start_daemon --key-file="${MY_KEYFILE}" --force && munged_stop_daemon && egrep "Warning:.* Keyfile.* a symbolic link" "${MUNGE_LOGFILE}" munged: Notice: Terminated daemon bound to socket "/tmp/munged.sock.9425" (pid 11977) egrep: warning: egrep is obsolescent; using grep -E 2023-12-10 02:44:01 +0000 Warning: Keyfile is insecure: "/startdir/src/test-tmp/trash-directory.0102-munged-security-keyfile/etc-9425/munged.key.9425.symlink" should not be a symbolic link ok 7 - keyfile symlink to regular file override PASS: 0102-munged-security-keyfile.t 7 - keyfile symlink to regular file override expecting success: local KEY_UID MY_EUID && KEY_UID=$(ls -l -n "${MUNGE_KEYFILE}" | awk "{ print \$3 }") && MY_EUID=$(id -u) && test "${KEY_UID}" = "${MY_EUID}" && munged_start_daemon && munged_stop_daemon munged: Notice: Terminated daemon bound to socket "/tmp/munged.sock.9425" (pid 12494) ok 8 - keyfile owned by euid PASS: 0102-munged-security-keyfile.t 8 - keyfile owned by euid checking known breakage: local GID && GID=$(ls -l -n "${MUNGE_KEYFILE}" | awk "{ print \$4 }") && chmod 0640 "${MUNGE_KEYFILE}" && munged_start_daemon --trusted-group="${GID}" && munged_stop_daemon munged: Error: Keyfile is insecure: "/startdir/src/test-tmp/trash-directory.0102-munged-security-keyfile/etc-9425/munged.key.9425" should not be readable or writable by group (perms=0640) not ok 9 - keyfile readable by trusted group # TODO known breakage XFAIL: 0102-munged-security-keyfile.t 9 - keyfile readable by trusted group # TODO known breakage expecting success: local GID && GID=$(ls -l -n "${MUNGE_KEYFILE}" | awk "{ print \$4 }") && GID=$(( ${GID} + 1 )) && chmod 0640 "${MUNGE_KEYFILE}" && test_must_fail munged_start_daemon --trusted-group="${GID}" munged: Error: Keyfile is insecure: "/startdir/src/test-tmp/trash-directory.0102-munged-security-keyfile/etc-9425/munged.key.9425" should not be readable or writable by group (perms=0640) ok 10 - keyfile readable by untrusted group failure PASS: 0102-munged-security-keyfile.t 10 - keyfile readable by untrusted group failure checking known breakage: local GID && GID=$(ls -l -n "${MUNGE_KEYFILE}" | awk "{ print \$4 }") && chmod 0620 "${MUNGE_KEYFILE}" && munged_start_daemon --trusted-group="${GID}" && munged_stop_daemon munged: Error: Keyfile is insecure: "/startdir/src/test-tmp/trash-directory.0102-munged-security-keyfile/etc-9425/munged.key.9425" should not be readable or writable by group (perms=0620) not ok 11 - keyfile writable by trusted group # TODO known breakage XFAIL: 0102-munged-security-keyfile.t 11 - keyfile writable by trusted group # TODO known breakage expecting success: local GID && GID=$(ls -l -n "${MUNGE_KEYFILE}" | awk "{ print \$4 }") && GID=$(( ${GID} + 1 )) && chmod 0620 "${MUNGE_KEYFILE}" && test_must_fail munged_start_daemon --trusted-group="${GID}" munged: Error: Keyfile is insecure: "/startdir/src/test-tmp/trash-directory.0102-munged-security-keyfile/etc-9425/munged.key.9425" should not be readable or writable by group (perms=0620) ok 12 - keyfile writable by untrusted group failure PASS: 0102-munged-security-keyfile.t 12 - keyfile writable by untrusted group failure expecting success: chmod 0640 "${MUNGE_KEYFILE}" && test_must_fail munged_start_daemon && egrep "Error:.* Keyfile.* readable.* by.* group" "${MUNGE_LOGFILE}" munged: Error: Keyfile is insecure: "/startdir/src/test-tmp/trash-directory.0102-munged-security-keyfile/etc-9425/munged.key.9425" should not be readable or writable by group (perms=0640) egrep: warning: egrep is obsolescent; using grep -E 2023-12-10 02:44:03 +0000 Error: Keyfile is insecure: "/startdir/src/test-tmp/trash-directory.0102-munged-security-keyfile/etc-9425/munged.key.9425" should not be readable or writable by group (perms=0640) ok 13 - keyfile readable by group failure PASS: 0102-munged-security-keyfile.t 13 - keyfile readable by group failure expecting success: chmod 0640 "${MUNGE_KEYFILE}" && munged_start_daemon --force && munged_stop_daemon && egrep "Warning:.* Keyfile.* readable.* by.* group" "${MUNGE_LOGFILE}" munged: Notice: Terminated daemon bound to socket "/tmp/munged.sock.9425" (pid 13902) egrep: warning: egrep is obsolescent; using grep -E 2023-12-10 02:44:03 +0000 Warning: Keyfile is insecure: "/startdir/src/test-tmp/trash-directory.0102-munged-security-keyfile/etc-9425/munged.key.9425" should not be readable or writable by group (perms=0640) ok 14 - keyfile readable by group override PASS: 0102-munged-security-keyfile.t 14 - keyfile readable by group override expecting success: chmod 0620 "${MUNGE_KEYFILE}" && test_must_fail munged_start_daemon && egrep "Error:.* Keyfile.* writable.* by.* group" "${MUNGE_LOGFILE}" munged: Error: Keyfile is insecure: "/startdir/src/test-tmp/trash-directory.0102-munged-security-keyfile/etc-9425/munged.key.9425" should not be readable or writable by group (perms=0620) egrep: warning: egrep is obsolescent; using grep -E 2023-12-10 02:44:03 +0000 Error: Keyfile is insecure: "/startdir/src/test-tmp/trash-directory.0102-munged-security-keyfile/etc-9425/munged.key.9425" should not be readable or writable by group (perms=0620) ok 15 - keyfile writable by group failure PASS: 0102-munged-security-keyfile.t 15 - keyfile writable by group failure expecting success: chmod 0620 "${MUNGE_KEYFILE}" && munged_start_daemon --force && munged_stop_daemon && egrep "Warning:.* Keyfile.* writable.* by.* group" "${MUNGE_LOGFILE}" munged: Notice: Terminated daemon bound to socket "/tmp/munged.sock.9425" (pid 14411) egrep: warning: egrep is obsolescent; using grep -E 2023-12-10 02:44:03 +0000 Warning: Keyfile is insecure: "/startdir/src/test-tmp/trash-directory.0102-munged-security-keyfile/etc-9425/munged.key.9425" should not be readable or writable by group (perms=0620) ok 16 - keyfile writable by group override PASS: 0102-munged-security-keyfile.t 16 - keyfile writable by group override expecting success: chmod 0604 "${MUNGE_KEYFILE}" && test_must_fail munged_start_daemon && egrep "Error:.* Keyfile.* readable.* by.* other" "${MUNGE_LOGFILE}" munged: Error: Keyfile is insecure: "/startdir/src/test-tmp/trash-directory.0102-munged-security-keyfile/etc-9425/munged.key.9425" should not be readable or writable by other (perms=0604) egrep: warning: egrep is obsolescent; using grep -E 2023-12-10 02:44:03 +0000 Error: Keyfile is insecure: "/startdir/src/test-tmp/trash-directory.0102-munged-security-keyfile/etc-9425/munged.key.9425" should not be readable or writable by other (perms=0604) ok 17 - keyfile readable by other failure PASS: 0102-munged-security-keyfile.t 17 - keyfile readable by other failure expecting success: chmod 0604 "${MUNGE_KEYFILE}" && munged_start_daemon --force && munged_stop_daemon && egrep "Warning:.* Keyfile.* readable.* by.* other" "${MUNGE_LOGFILE}" munged: Notice: Terminated daemon bound to socket "/tmp/munged.sock.9425" (pid 14787) egrep: warning: egrep is obsolescent; using grep -E 2023-12-10 02:44:04 +0000 Warning: Keyfile is insecure: "/startdir/src/test-tmp/trash-directory.0102-munged-security-keyfile/etc-9425/munged.key.9425" should not be readable or writable by other (perms=0604) ok 18 - keyfile readable by other override PASS: 0102-munged-security-keyfile.t 18 - keyfile readable by other override expecting success: chmod 0602 "${MUNGE_KEYFILE}" && test_must_fail munged_start_daemon && egrep "Error:.* Keyfile.* writable.* by.* other" "${MUNGE_LOGFILE}" munged: Error: Keyfile is insecure: "/startdir/src/test-tmp/trash-directory.0102-munged-security-keyfile/etc-9425/munged.key.9425" should not be readable or writable by other (perms=0602) egrep: warning: egrep is obsolescent; using grep -E 2023-12-10 02:44:04 +0000 Error: Keyfile is insecure: "/startdir/src/test-tmp/trash-directory.0102-munged-security-keyfile/etc-9425/munged.key.9425" should not be readable or writable by other (perms=0602) ok 19 - keyfile writable by other failure PASS: 0102-munged-security-keyfile.t 19 - keyfile writable by other failure expecting success: chmod 0602 "${MUNGE_KEYFILE}" && munged_start_daemon --force && munged_stop_daemon && egrep "Warning:.* Keyfile.* writable.* by.* other" "${MUNGE_LOGFILE}" munged: Notice: Terminated daemon bound to socket "/tmp/munged.sock.9425" (pid 15214) egrep: warning: egrep is obsolescent; using grep -E 2023-12-10 02:44:04 +0000 Warning: Keyfile is insecure: "/startdir/src/test-tmp/trash-directory.0102-munged-security-keyfile/etc-9425/munged.key.9425" should not be readable or writable by other (perms=0602) ok 20 - keyfile writable by other override PASS: 0102-munged-security-keyfile.t 20 - keyfile writable by other override expecting success: chmod 0600 "${MUNGE_KEYFILE}" && munged_start_daemon && munged_stop_daemon munged: Notice: Terminated daemon bound to socket "/tmp/munged.sock.9425" (pid 15414) ok 21 - keyfile secure perms PASS: 0102-munged-security-keyfile.t 21 - keyfile secure perms expecting success: local DIR_UID MY_EUID && DIR_UID=$(ls -d -l -n "${MUNGE_KEYDIR}" | awk "{ print \$3 }") && MY_EUID=$(id -u) && test "${DIR_UID}" = "${MY_EUID}" && munged_start_daemon && munged_stop_daemon munged: Notice: Terminated daemon bound to socket "/tmp/munged.sock.9425" (pid 15518) ok 22 - keyfile dir owned by euid PASS: 0102-munged-security-keyfile.t 22 - keyfile dir owned by euid skipping test: alt keyfile dir setup ALT_KEYDIR="${TMPDIR:-"/tmp"}/munge-$$/alt-etc-$$" && mkdir -m 0755 -p "${ALT_KEYDIR}" && ALT_KEYFILE="${ALT_KEYDIR}/munged.key.$$" && cp -p "${MUNGE_KEYFILE}" "${ALT_KEYFILE}" && test_set_prereq ALT ok 23 # skip alt keyfile dir setup (missing SUDO) SKIP: 0102-munged-security-keyfile.t 23 # SKIP alt keyfile dir setup (missing SUDO) skipping test: keyfile dir owned by root sudo chown root "${ALT_KEYDIR}" && munged_start_daemon --key-file="${ALT_KEYFILE}" && munged_stop_daemon ok 24 # skip keyfile dir owned by root (missing SUDO,ALT of ALT,SUDO) SKIP: 0102-munged-security-keyfile.t 24 # SKIP keyfile dir owned by root (missing SUDO,ALT of ALT,SUDO) skipping test: keyfile dir owned by other failure test "$(id -u)" != "1" && sudo chown 1 "${ALT_KEYDIR}" && test_must_fail munged_start_daemon --key-file="${ALT_KEYFILE}" && egrep "Error:.* Keyfile.* invalid ownership of \"${ALT_KEYDIR}\"" \ "${MUNGE_LOGFILE}" ok 25 # skip keyfile dir owned by other failure (missing SUDO,ALT of ALT,SUDO) SKIP: 0102-munged-security-keyfile.t 25 # SKIP keyfile dir owned by other failure (missing SUDO,ALT of ALT,SUDO) skipping test: keyfile dir owned by other override test "$(id -u)" != "1" && sudo chown 1 "${ALT_KEYDIR}" && munged_start_daemon --key-file="${ALT_KEYFILE}" --force && munged_stop_daemon && egrep "Warning:.* Keyfile.* invalid ownership of \"${ALT_KEYDIR}\"" \ "${MUNGE_LOGFILE}" ok 26 # skip keyfile dir owned by other override (missing SUDO,ALT of ALT,SUDO) SKIP: 0102-munged-security-keyfile.t 26 # SKIP keyfile dir owned by other override (missing SUDO,ALT of ALT,SUDO) skipping test: alt keyfile dir cleanup sudo rm -r -f "${ALT_KEYDIR}" && if rmdir "$(dirname "${ALT_KEYDIR}")" 2>/dev/null; then :; fi && unset ALT_KEYDIR && unset ALT_KEYFILE ok 27 # skip alt keyfile dir cleanup (missing SUDO,ALT of ALT,SUDO) SKIP: 0102-munged-security-keyfile.t 27 # SKIP alt keyfile dir cleanup (missing SUDO,ALT of ALT,SUDO) expecting success: local GID && GID=$(ls -d -l -n "${MUNGE_KEYDIR}" | awk "{ print \$4 }") && chmod 0770 "${MUNGE_KEYDIR}" && munged_start_daemon --trusted-group="${GID}" && munged_stop_daemon && chmod 0755 "${MUNGE_KEYDIR}" munged: Notice: Terminated daemon bound to socket "/tmp/munged.sock.9425" (pid 15684) ok 28 - keyfile dir writable by trusted group PASS: 0102-munged-security-keyfile.t 28 - keyfile dir writable by trusted group expecting success: local GID && GID=$(ls -d -l -n "${MUNGE_KEYDIR}" | awk "{ print \$4 }") && GID=$(( ${GID} + 1 )) && chmod 0770 "${MUNGE_KEYDIR}" && test_must_fail munged_start_daemon --trusted-group="${GID}" && chmod 0755 "${MUNGE_KEYDIR}" munged: Error: Keyfile is insecure: group-writable permissions without sticky bit set on "/startdir/src/test-tmp/trash-directory.0102-munged-security-keyfile/etc-9425" ok 29 - keyfile dir writable by untrusted group failure PASS: 0102-munged-security-keyfile.t 29 - keyfile dir writable by untrusted group failure expecting success: chmod 0770 "${MUNGE_KEYDIR}" && test_must_fail munged_start_daemon && chmod 0755 "${MUNGE_KEYDIR}" && egrep "Error:.* group-writable permissions without sticky bit set" \ "${MUNGE_LOGFILE}" munged: Error: Keyfile is insecure: group-writable permissions without sticky bit set on "/startdir/src/test-tmp/trash-directory.0102-munged-security-keyfile/etc-9425" egrep: warning: egrep is obsolescent; using grep -E 2023-12-10 02:44:05 +0000 Error: Keyfile is insecure: group-writable permissions without sticky bit set on "/startdir/src/test-tmp/trash-directory.0102-munged-security-keyfile/etc-9425" ok 30 - keyfile dir writable by group failure PASS: 0102-munged-security-keyfile.t 30 - keyfile dir writable by group failure expecting success: chmod 0770 "${MUNGE_KEYDIR}" && munged_start_daemon --force && munged_stop_daemon && chmod 0755 "${MUNGE_KEYDIR}" && egrep "Warning:.* group-writable permissions without sticky bit set" \ "${MUNGE_LOGFILE}" munged: Notice: Terminated daemon bound to socket "/tmp/munged.sock.9425" (pid 16031) egrep: warning: egrep is obsolescent; using grep -E 2023-12-10 02:44:05 +0000 Warning: Keyfile is insecure: group-writable permissions without sticky bit set on "/startdir/src/test-tmp/trash-directory.0102-munged-security-keyfile/etc-9425" ok 31 - keyfile dir writable by group override PASS: 0102-munged-security-keyfile.t 31 - keyfile dir writable by group override expecting success: chmod 1770 "${MUNGE_KEYDIR}" && munged_start_daemon && munged_stop_daemon && chmod 0755 "${MUNGE_KEYDIR}" munged: Notice: Terminated daemon bound to socket "/tmp/munged.sock.9425" (pid 16256) ok 32 - keyfile dir writable by group with sticky bit PASS: 0102-munged-security-keyfile.t 32 - keyfile dir writable by group with sticky bit expecting success: chmod 0707 "${MUNGE_KEYDIR}" && test_must_fail munged_start_daemon && chmod 0755 "${MUNGE_KEYDIR}" && egrep "Error:.* world-writable permissions without sticky bit set" \ "${MUNGE_LOGFILE}" munged: Error: Keyfile is insecure: world-writable permissions without sticky bit set on "/startdir/src/test-tmp/trash-directory.0102-munged-security-keyfile/etc-9425" egrep: warning: egrep is obsolescent; using grep -E 2023-12-10 02:44:05 +0000 Error: Keyfile is insecure: world-writable permissions without sticky bit set on "/startdir/src/test-tmp/trash-directory.0102-munged-security-keyfile/etc-9425" ok 33 - keyfile dir writable by other failure PASS: 0102-munged-security-keyfile.t 33 - keyfile dir writable by other failure expecting success: chmod 0707 "${MUNGE_KEYDIR}" && munged_start_daemon --force && munged_stop_daemon && chmod 0755 "${MUNGE_KEYDIR}" && egrep "Warning:.* world-writable permissions without sticky bit set" \ "${MUNGE_LOGFILE}" munged: Notice: Terminated daemon bound to socket "/tmp/munged.sock.9425" (pid 16487) egrep: warning: egrep is obsolescent; using grep -E 2023-12-10 02:44:05 +0000 Warning: Keyfile is insecure: world-writable permissions without sticky bit set on "/startdir/src/test-tmp/trash-directory.0102-munged-security-keyfile/etc-9425" ok 34 - keyfile dir writable by other override PASS: 0102-munged-security-keyfile.t 34 - keyfile dir writable by other override expecting success: chmod 1707 "${MUNGE_KEYDIR}" && munged_start_daemon && munged_stop_daemon && chmod 0755 "${MUNGE_KEYDIR}" munged: Notice: Terminated daemon bound to socket "/tmp/munged.sock.9425" (pid 16641) ok 35 - keyfile dir writable by other with sticky bit PASS: 0102-munged-security-keyfile.t 35 - keyfile dir writable by other with sticky bit expecting success: munged_cleanup ok 36 - cleanup PASS: 0102-munged-security-keyfile.t 36 - cleanup # still have 2 known breakage(s) # passed all remaining 34 test(s) 1..36 PASS: 0103-munged-security-logfile ================================== expecting success: munged_setup && munged_create_key ok 1 - setup PASS: 0103-munged-security-logfile.t 1 - setup expecting success: local INODE0 INODE1 && rm -f "${MUNGE_LOGFILE}" && touch "${MUNGE_LOGFILE}" && INODE0=$(ls -i "${MUNGE_LOGFILE}" | awk "{ print \$1 }") && munged_start_daemon t-keep-logfile && munged_stop_daemon && INODE1=$(ls -i "${MUNGE_LOGFILE}" | awk "{ print \$1 }") && test "${INODE0}" -eq "${INODE1}" && test -s "${MUNGE_LOGFILE}" munged: Notice: Terminated daemon bound to socket "/tmp/munged.sock.9562" (pid 10221) ok 2 - logfile regular file PASS: 0103-munged-security-logfile.t 2 - logfile regular file expecting success: local MY_LOGFILE && MY_LOGFILE="${MUNGE_LOGFILE}.symlink" && ln -s -f "${MUNGE_LOGFILE}" "${MY_LOGFILE}" && rm -f "${MUNGE_LOGFILE}" && touch "${MUNGE_LOGFILE}" && test_must_fail munged_start_daemon t-keep-logfile \ --log-file="${MY_LOGFILE}" 2>err.$$ && egrep "Error:.* Logfile.* should not be a symbolic link" err.$$ egrep: warning: egrep is obsolescent; using grep -E munged: Error: Logfile is insecure: "/startdir/src/test-tmp/trash-directory.0103-munged-security-logfile/log-9562/munged.log.9562.symlink" should not be a symbolic link ok 3 - logfile symlink to regular file failure PASS: 0103-munged-security-logfile.t 3 - logfile symlink to regular file failure expecting success: local MY_LOGFILE && MY_LOGFILE="${MUNGE_LOGFILE}.symlink" && ln -s -f "${MUNGE_LOGFILE}" "${MY_LOGFILE}" && rm -f "${MUNGE_LOGFILE}" && touch "${MUNGE_LOGFILE}" && munged_start_daemon t-keep-logfile --log-file="${MY_LOGFILE}" --force \ 2>err.$$ && munged_stop_daemon && egrep "Warning:.* Logfile.* should not be a symbolic link" err.$$ munged: Notice: Terminated daemon bound to socket "/tmp/munged.sock.9562" (pid 10978) egrep: warning: egrep is obsolescent; using grep -E munged: Warning: Logfile is insecure: "/startdir/src/test-tmp/trash-directory.0103-munged-security-logfile/log-9562/munged.log.9562.symlink" should not be a symbolic link ok 4 - logfile symlink to regular file override PASS: 0103-munged-security-logfile.t 4 - logfile symlink to regular file override expecting success: munged_start_daemon && munged_stop_daemon && test -s "${MUNGE_LOGFILE}" munged: Notice: Terminated daemon bound to socket "/tmp/munged.sock.9562" (pid 11408) ok 5 - logfile missing PASS: 0103-munged-security-logfile.t 5 - logfile missing expecting success: local MY_LOGFILE && MY_LOGFILE="${MUNGE_LOGFILE}.symlink" && ln -s -f "${MUNGE_LOGFILE}" "${MY_LOGFILE}" && test_must_fail munged_start_daemon --log-file="${MY_LOGFILE}" 2>err.$$ && egrep "Error:.* Logfile.* should not be a symbolic link" err.$$ egrep: warning: egrep is obsolescent; using grep -E munged: Error: Logfile is insecure: "/startdir/src/test-tmp/trash-directory.0103-munged-security-logfile/log-9562/munged.log.9562.symlink" should not be a symbolic link ok 6 - logfile symlink to missing file failure PASS: 0103-munged-security-logfile.t 6 - logfile symlink to missing file failure expecting success: local MY_LOGFILE && MY_LOGFILE="${MUNGE_LOGFILE}.symlink" && ln -s -f "${MUNGE_LOGFILE}" "${MY_LOGFILE}" && munged_start_daemon --log-file="${MY_LOGFILE}" --force 2>err.$$ && munged_stop_daemon && egrep "Warning:.* Logfile.* should not be a symbolic link" err.$$ && test -s "${MUNGE_LOGFILE}" munged: Notice: Terminated daemon bound to socket "/tmp/munged.sock.9562" (pid 12033) egrep: warning: egrep is obsolescent; using grep -E munged: Warning: Logfile is insecure: "/startdir/src/test-tmp/trash-directory.0103-munged-security-logfile/log-9562/munged.log.9562.symlink" should not be a symbolic link ok 7 - logfile symlink to missing file override PASS: 0103-munged-security-logfile.t 7 - logfile symlink to missing file override expecting success: local MUNGE_LOGFILE && MUNGE_LOGFILE="${MUNGE_LOGDIR}/munged.log.$$.non-regular-file" && rm -f "${MUNGE_LOGFILE}" && mkdir "${MUNGE_LOGFILE}" && test_must_fail munged_start_daemon t-keep-logfile 2>err.$$ && egrep "Error:.* Logfile.* must be a regular file" err.$$ && rmdir "${MUNGE_LOGFILE}" egrep: warning: egrep is obsolescent; using grep -E munged: Error: Logfile is insecure: "/startdir/src/test-tmp/trash-directory.0103-munged-security-logfile/log-9562/munged.log.9562.non-regular-file" must be a regular file (type=0040000) ok 8 - logfile non-regular-file failure PASS: 0103-munged-security-logfile.t 8 - logfile non-regular-file failure expecting success: local MUNGE_LOGFILE && MUNGE_LOGFILE="${MUNGE_LOGDIR}/munged.log.$$.non-regular-file" && rm -f "${MUNGE_LOGFILE}" && mkdir "${MUNGE_LOGFILE}" && test_must_fail munged_start_daemon t-keep-logfile --force 2>err.$$ && egrep "Error:.* Logfile.* must be a regular file" err.$$ && rmdir "${MUNGE_LOGFILE}" egrep: warning: egrep is obsolescent; using grep -E munged: Error: Logfile is insecure: "/startdir/src/test-tmp/trash-directory.0103-munged-security-logfile/log-9562/munged.log.9562.non-regular-file" must be a regular file (type=0040000) ok 9 - logfile non-regular-file override failure PASS: 0103-munged-security-logfile.t 9 - logfile non-regular-file override failure expecting success: rm -f "${MUNGE_LOGFILE}" && touch "${MUNGE_LOGFILE}" && chmod 0400 "${MUNGE_LOGFILE}" && test_must_fail munged_start_daemon t-keep-logfile 2>err.$$ && egrep "Error:.* Failed to open logfile.* Permission denied" err.$$ egrep: warning: egrep is obsolescent; using grep -E munged: Error: Failed to open logfile "/startdir/src/test-tmp/trash-directory.0103-munged-security-logfile/log-9562/munged.log.9562": Permission denied ok 10 - logfile not writable by user failure PASS: 0103-munged-security-logfile.t 10 - logfile not writable by user failure checking known breakage: local GID && rm -f "${MUNGE_LOGFILE}" && touch "${MUNGE_LOGFILE}" && chmod 0620 "${MUNGE_LOGFILE}" && GID=$(ls -l -n "${MUNGE_LOGFILE}" | awk "{ print \$4 }") && munged_start_daemon t-keep-logfile --trusted-group="${GID}" && munged_stop_daemon munged: Error: Logfile is insecure: "/startdir/src/test-tmp/trash-directory.0103-munged-security-logfile/log-9562/munged.log.9562" should not be writable by group (perms=0620) not ok 11 - logfile writable by trusted group # TODO known breakage XFAIL: 0103-munged-security-logfile.t 11 - logfile writable by trusted group # TODO known breakage expecting success: local GID && rm -f "${MUNGE_LOGFILE}" && touch "${MUNGE_LOGFILE}" && chmod 0620 "${MUNGE_LOGFILE}" && GID=$(ls -l -n "${MUNGE_LOGFILE}" | awk "{ print \$4 }") && GID=$(( ${GID} + 1 )) && test_must_fail munged_start_daemon t-keep-logfile --trusted-group="${GID}" munged: Error: Logfile is insecure: "/startdir/src/test-tmp/trash-directory.0103-munged-security-logfile/log-9562/munged.log.9562" should not be writable by group (perms=0620) ok 12 - logfile writable by untrusted group failure PASS: 0103-munged-security-logfile.t 12 - logfile writable by untrusted group failure expecting success: rm -f "${MUNGE_LOGFILE}" && touch "${MUNGE_LOGFILE}" && chmod 0620 "${MUNGE_LOGFILE}" && test_must_fail munged_start_daemon t-keep-logfile 2>err.$$ && egrep "Error:.* Logfile.* writable.* by.* group" err.$$ egrep: warning: egrep is obsolescent; using grep -E munged: Error: Logfile is insecure: "/startdir/src/test-tmp/trash-directory.0103-munged-security-logfile/log-9562/munged.log.9562" should not be writable by group (perms=0620) ok 13 - logfile writable by group failure PASS: 0103-munged-security-logfile.t 13 - logfile writable by group failure expecting success: rm -f "${MUNGE_LOGFILE}" && touch "${MUNGE_LOGFILE}" && chmod 0620 "${MUNGE_LOGFILE}" && munged_start_daemon t-keep-logfile --force 2>err.$$ && munged_stop_daemon && egrep "Warning:.* Logfile.* writable.* by.* group" err.$$ munged: Notice: Terminated daemon bound to socket "/tmp/munged.sock.9562" (pid 13607) egrep: warning: egrep is obsolescent; using grep -E munged: Warning: Logfile is insecure: "/startdir/src/test-tmp/trash-directory.0103-munged-security-logfile/log-9562/munged.log.9562" should not be writable by group (perms=0620) ok 14 - logfile writable by group override PASS: 0103-munged-security-logfile.t 14 - logfile writable by group override expecting success: rm -f "${MUNGE_LOGFILE}" && touch "${MUNGE_LOGFILE}" && chmod 0602 "${MUNGE_LOGFILE}" && test_must_fail munged_start_daemon t-keep-logfile 2>err.$$ && egrep "Error:.* Logfile.* writable.* by.* other" err.$$ egrep: warning: egrep is obsolescent; using grep -E munged: Error: Logfile is insecure: "/startdir/src/test-tmp/trash-directory.0103-munged-security-logfile/log-9562/munged.log.9562" should not be writable by other (perms=0602) ok 15 - logfile writable by other failure PASS: 0103-munged-security-logfile.t 15 - logfile writable by other failure expecting success: rm -f "${MUNGE_LOGFILE}" && touch "${MUNGE_LOGFILE}" && chmod 0602 "${MUNGE_LOGFILE}" && munged_start_daemon t-keep-logfile --force 2>err.$$ && munged_stop_daemon && egrep "Warning:.* Logfile.* writable.* by.* other" err.$$ munged: Notice: Terminated daemon bound to socket "/tmp/munged.sock.9562" (pid 14091) egrep: warning: egrep is obsolescent; using grep -E munged: Warning: Logfile is insecure: "/startdir/src/test-tmp/trash-directory.0103-munged-security-logfile/log-9562/munged.log.9562" should not be writable by other (perms=0602) ok 16 - logfile writable by other override PASS: 0103-munged-security-logfile.t 16 - logfile writable by other override expecting success: rm -f "${MUNGE_LOGFILE}" && touch "${MUNGE_LOGFILE}" && chmod 0644 "${MUNGE_LOGFILE}" && munged_start_daemon t-keep-logfile && munged_stop_daemon munged: Notice: Terminated daemon bound to socket "/tmp/munged.sock.9562" (pid 14450) ok 17 - logfile readable by all PASS: 0103-munged-security-logfile.t 17 - logfile readable by all expecting success: local DIR_UID MY_EUID && DIR_UID=$(ls -d -l -n "${MUNGE_LOGDIR}" | awk "{ print \$3 }") && MY_EUID=$(id -u) && test "${DIR_UID}" = "${MY_EUID}" && munged_start_daemon && munged_stop_daemon munged: Notice: Terminated daemon bound to socket "/tmp/munged.sock.9562" (pid 14686) ok 18 - logfile dir owned by euid PASS: 0103-munged-security-logfile.t 18 - logfile dir owned by euid skipping test: alt logfile dir setup ALT_LOGDIR="${TMPDIR:-"/tmp"}/munge-$$/alt-log-$$" && mkdir -m 0755 -p "${ALT_LOGDIR}" && ALT_LOGFILE="${ALT_LOGDIR}/munged.log.$$" && touch "${ALT_LOGFILE}" && test_set_prereq ALT ok 19 # skip alt logfile dir setup (missing SUDO) SKIP: 0103-munged-security-logfile.t 19 # SKIP alt logfile dir setup (missing SUDO) skipping test: logfile dir owned by root sudo chown root "${ALT_LOGDIR}" && > "${ALT_LOGFILE}" && munged_start_daemon --log-file="${ALT_LOGFILE}" && munged_stop_daemon ok 20 # skip logfile dir owned by root (missing SUDO,ALT of ALT,SUDO) SKIP: 0103-munged-security-logfile.t 20 # SKIP logfile dir owned by root (missing SUDO,ALT of ALT,SUDO) skipping test: logfile dir owned by other failure test "$(id -u)" != "1" && sudo chown 1 "${ALT_LOGDIR}" && > "${ALT_LOGFILE}" && test_must_fail munged_start_daemon --log-file="${ALT_LOGFILE}" 2>err.$$ && egrep "Error:.* Logfile.* invalid ownership of \"${ALT_LOGDIR}\"" err.$$ ok 21 # skip logfile dir owned by other failure (missing SUDO,ALT of ALT,SUDO) SKIP: 0103-munged-security-logfile.t 21 # SKIP logfile dir owned by other failure (missing SUDO,ALT of ALT,SUDO) skipping test: logfile dir owned by other override test "$(id -u)" != "1" && sudo chown 1 "${ALT_LOGDIR}" && > "${ALT_LOGFILE}" && munged_start_daemon --log-file="${ALT_LOGFILE}" --force 2>err.$$ && munged_stop_daemon && egrep "Warning:.* Logfile.* invalid ownership of \"${ALT_LOGDIR}\"" err.$$ ok 22 # skip logfile dir owned by other override (missing SUDO,ALT of ALT,SUDO) SKIP: 0103-munged-security-logfile.t 22 # SKIP logfile dir owned by other override (missing SUDO,ALT of ALT,SUDO) skipping test: alt logfile dir cleanup sudo rm -r -f "${ALT_LOGDIR}" && if rmdir "$(dirname "${ALT_LOGDIR}")" 2>/dev/null; then :; fi && unset ALT_LOGDIR && unset ALT_LOGFILE ok 23 # skip alt logfile dir cleanup (missing SUDO,ALT of ALT,SUDO) SKIP: 0103-munged-security-logfile.t 23 # SKIP alt logfile dir cleanup (missing SUDO,ALT of ALT,SUDO) expecting success: local GID && GID=$(ls -d -l -n "${MUNGE_LOGDIR}" | awk "{ print \$4 }") && chmod 0770 "${MUNGE_LOGDIR}" && munged_start_daemon --trusted-group="${GID}" && munged_stop_daemon && chmod 0755 "${MUNGE_LOGDIR}" munged: Notice: Terminated daemon bound to socket "/tmp/munged.sock.9562" (pid 14927) ok 24 - logfile dir writable by trusted group PASS: 0103-munged-security-logfile.t 24 - logfile dir writable by trusted group expecting success: local GID && GID=$(ls -d -l -n "${MUNGE_LOGDIR}" | awk "{ print \$4 }") && GID=$(( ${GID} + 1 )) && chmod 0770 "${MUNGE_LOGDIR}" && munged_start_daemon --trusted-group="${GID}" && munged_stop_daemon && chmod 0755 "${MUNGE_LOGDIR}" munged: Notice: Terminated daemon bound to socket "/tmp/munged.sock.9562" (pid 15144) ok 25 - logfile dir writable by untrusted group failure PASS: 0103-munged-security-logfile.t 25 - logfile dir writable by untrusted group failure expecting success: chmod 0770 "${MUNGE_LOGDIR}" && munged_start_daemon && munged_stop_daemon && chmod 0755 "${MUNGE_LOGDIR}" munged: Notice: Terminated daemon bound to socket "/tmp/munged.sock.9562" (pid 15418) ok 26 - logfile dir writable by group PASS: 0103-munged-security-logfile.t 26 - logfile dir writable by group expecting success: chmod 1770 "${MUNGE_LOGDIR}" && munged_start_daemon && munged_stop_daemon && chmod 0755 "${MUNGE_LOGDIR}" munged: Notice: Terminated daemon bound to socket "/tmp/munged.sock.9562" (pid 15709) ok 27 - logfile dir writable by group with sticky bit PASS: 0103-munged-security-logfile.t 27 - logfile dir writable by group with sticky bit expecting success: chmod 0707 "${MUNGE_LOGDIR}" && test_must_fail munged_start_daemon 2>err.$$ && chmod 0755 "${MUNGE_LOGDIR}" && egrep "Error:.* world-writable permissions without sticky bit set" err.$$ egrep: warning: egrep is obsolescent; using grep -E munged: Error: Logfile is insecure: world-writable permissions without sticky bit set on "/startdir/src/test-tmp/trash-directory.0103-munged-security-logfile/log-9562" ok 28 - logfile dir writable by other failure PASS: 0103-munged-security-logfile.t 28 - logfile dir writable by other failure expecting success: chmod 0707 "${MUNGE_LOGDIR}" && munged_start_daemon --force 2>err.$$ && munged_stop_daemon && chmod 0755 "${MUNGE_LOGDIR}" && egrep "Warning:.* world-writable permissions without sticky bit set" err.$$ munged: Notice: Terminated daemon bound to socket "/tmp/munged.sock.9562" (pid 16012) egrep: warning: egrep is obsolescent; using grep -E munged: Warning: Logfile is insecure: world-writable permissions without sticky bit set on "/startdir/src/test-tmp/trash-directory.0103-munged-security-logfile/log-9562" ok 29 - logfile dir writable by other override PASS: 0103-munged-security-logfile.t 29 - logfile dir writable by other override expecting success: chmod 1707 "${MUNGE_LOGDIR}" && munged_start_daemon && munged_stop_daemon && chmod 0755 "${MUNGE_LOGDIR}" munged: Notice: Terminated daemon bound to socket "/tmp/munged.sock.9562" (pid 16213) ok 30 - logfile dir writable by other with sticky bit PASS: 0103-munged-security-logfile.t 30 - logfile dir writable by other with sticky bit expecting success: local ERR NUM && rm -f "${MUNGE_LOGFILE}" && touch "${MUNGE_LOGFILE}" && chmod 0602 "${MUNGE_LOGFILE}" && test_must_fail munged_start_daemon t-keep-logfile 2>err.$$ && cat err.$$ && ERR=$(sed -n -e "s/.*Error: //p" err.$$ | sort | uniq -c | sort -n -r) && NUM=$(echo "${ERR}" | awk "{ print \$1; exit }") && test "${NUM}" -eq 1 2>/dev/null munged: Error: Logfile is insecure: "/startdir/src/test-tmp/trash-directory.0103-munged-security-logfile/log-9562/munged.log.9562" should not be writable by other (perms=0602) ok 31 - logfile failure writes single message to stderr PASS: 0103-munged-security-logfile.t 31 - logfile failure writes single message to stderr expecting success: munged_cleanup ok 32 - cleanup PASS: 0103-munged-security-logfile.t 32 - cleanup # still have 1 known breakage(s) # passed all remaining 31 test(s) 1..32 PASS: 0104-munged-security-pidfile ================================== expecting success: munged_setup && munged_create_key ok 1 - setup PASS: 0104-munged-security-pidfile.t 1 - setup checking known breakage: false not ok 2 - finish writing tests # TODO known breakage XFAIL: 0104-munged-security-pidfile.t 2 - finish writing tests # TODO known breakage expecting success: munged_cleanup ok 3 - cleanup PASS: 0104-munged-security-pidfile.t 3 - cleanup # still have 1 known breakage(s) # passed all remaining 2 test(s) 1..3 PASS: 0105-munged-security-seedfile =================================== expecting success: munged_setup && munged_create_key ok 1 - setup PASS: 0105-munged-security-seedfile.t 1 - setup checking known breakage: false not ok 2 - finish writing tests # TODO known breakage XFAIL: 0105-munged-security-seedfile.t 2 - finish writing tests # TODO known breakage expecting success: munged_cleanup ok 3 - cleanup PASS: 0105-munged-security-seedfile.t 3 - cleanup # still have 1 known breakage(s) # passed all remaining 2 test(s) 1..3 ============================================================================ Testsuite summary for MUNGE 0.5.15 ============================================================================ # TOTAL: 370 # PASS: 337 # SKIP: 25 # XFAIL: 6 # FAIL: 1 # XPASS: 0 # ERROR: 1 ============================================================================ See t/test-suite.log ============================================================================ make[3]: *** [Makefile:639: test-suite.log] Error 1 make[3]: Leaving directory '/startdir/src/munge-munge-0.5.15/t' make[2]: *** [Makefile:747: check-TESTS] Error 2 make[2]: Leaving directory '/startdir/src/munge-munge-0.5.15/t' make[1]: *** [Makefile:812: check-am] Error 2 make[1]: Leaving directory '/startdir/src/munge-munge-0.5.15/t' make: *** [Makefile:582: check-recursive] Error 1 ==> ERROR: A failure occurred in check(). Aborting... ==> ERROR: Build failed, check /home/alhp/workspace2/chroot/build_805fabff-d700-4b24-9478-a16713bd770b/build