Giter VIP home page Giter VIP logo

kstart's Introduction

kstart

Build status Debian package

Copyright 2015, 2021 Russ Allbery [email protected]. Copyright 1995-1997, 1999-2002, 2004-2012, 2014 The Board of Trustees of the Leland Stanford Junior University. This software is distributed under a BSD-style license. Please see the section License below for more information.

Blurb

k5start and krenew are modified versions of kinit which add support for running as a daemon to maintain a ticket cache, running a command with credentials from a keytab and maintaining a ticket cache until that command completes, obtaining AFS tokens (via an external aklog) after obtaining tickets, and creating an AFS PAG for a command. They are primarily useful in conjunction with long-running jobs; for moving ticket handling code out of servers, cron jobs, or daemons; and to obtain tickets and AFS tokens with a single command.

Description

k5start is a modified version of kinit. It can be used as a substitute for kinit (with some additional helpful options), but it can also obtain credentials automatically from a keytab. It can run as a daemon, waking up periodically to refresh credentials using that keytab, and can also check for the validity of tickets and only refresh if they're no longer valid.

Some of these capabilities have been included in Kerberos's kinit, but the ability to maintain tickets while running as a daemon has not and is useful for servers that need to use Kerberos. Using kstart allows the ticket handling to be moved out of the server into a separate process dedicated just to that purpose.

k5start can optionally run an external program whenever the ticket is refreshed to obtain an AFS token, and therefore can be used in conjunction with a program like aklog or afslog to maintain an AFS token. When built with support for AFS PAGs, it can also put the program in its own PAG so that its authentication doesn't affect any other programs.

krenew is identical to k5start except that rather than obtaining new tickets from a password or keytab, it renews an existing renewable ticket cache. It can be used to periodically renew tickets and optionally AFS tokens for long-running processes in cases where using a keytab is inappropriate (such as users running their own jobs with their own credentials).

Requirements

As Kerberos programs, k5start and krenew require Kerberos libraries to link against. They have only been thoroughly tested with the MIT Kerberos and Heimdal libraries on Debian, but should work with the included Kerberos libraries on many other platforms.

Other than that, all you should need is a suitable C compiler. Neither program has been tested on non-Unix systems.

If you want the -t option to work, you need a program to obtain AFS tokens from Kerberos tickets. You can specify the program to use on your system with the --with-aklog option to configure; if that option is not given, the first of aklog or afslog that is found on your path at configure time will be used.

For AFS PAG support, one of Linux, Mac OS X, Solaris 11, the kafs library that comes with either Heimdal or KTH Kerberos, the kopenafs library that comes with newer OpenAFS, AFS header files (on any other platform besides AIX or IRIX), or AFS libraries (on AIX and IRIX) is required. AIX binaries with AFS PAG support may not run on AIX systems that do not have an AFS client installed due to how AIX handles system calls.

To bootstrap from a Git checkout, or if you change the Automake files and need to regenerate Makefile.in, you will need Automake 1.11 or later. For bootstrap or if you change configure.ac or any of the m4 files it includes and need to regenerate configure or config.h.in, you will need Autoconf 2.64 or later. Perl is also required to generate manual pages from a fresh Git checkout.

Building and Installation

You can build and install kstart with the standard commands:

    ./configure
    make
    make install

If you are building from a Git clone, first run ./bootstrap in the source directory to generate the build files. make install will probably have to be done as root. Building outside of the source directory is also supported, if you wish, by creating an empty directory and then running configure with the correct relative path.

If you are using aklog, afslog, or some other program to obtain AFS tokens, give its path to configure with the --with-aklog option, as in:

    ./configure --with-aklog=/usr/local/bin/aklog

This program will be run when the -t option is given to k5start or krenew.

To enable support for AFS PAGs, pass the --enable-setpag flag to configure. It is not enabled by default. On platforms other than Linux and without the kafs library, you will need to add the --with-afs flag specifying the location of your AFS includes and libraries unless they're on your standard search path. For example:

    ./configure --enable-setpag --with-afs=/usr/afsws

When enabled, k5start and krenew will always create a new PAG before authentication when running a specific command and when aklog is being run.

When using the Linux kafs module, the correct way to isolate kafs credentials is to create a new session keyring rather than a new PAG. This requires the libkeyutils library. configure will attempt to discover that library automatically and link with it by default. Pass the --with-libkeyutils, --with-libkeyutils-include, or --with-libkeyutils-lib options to configure to specify a different path to that library, or set the LIBKEYUTILS_* environment variables.

Normally, configure will use krb5-config to determine the flags to use to compile with your Kerberos libraries. To specify a particular krb5-config script to use, either set the PATH_KRB5_CONFIG environment variable or pass it to configure like:

    ./configure PATH_KRB5_CONFIG=/path/to/krb5-config

If krb5-config isn't found, configure will look for the standard Kerberos libraries in locations already searched by your compiler. If the the krb5-config script first in your path is not the one corresponding to the Kerberos libraries you want to use, or if your Kerberos libraries and includes aren't in a location searched by default by your compiler, you need to specify a different Kerberos installation root via --with-krb5=PATH. For example:

    ./configure --with-krb5=/usr/pubsw

You can also individually set the paths to the include directory and the library directory with --with-krb5-include and --with-krb5-lib. You may need to do this if Autoconf can't figure out whether to use lib, lib32, or lib64 on your platform.

To not use krb5-config and force library probing even if there is a krb5-config script on your path, set PATH_KRB5_CONFIG to a nonexistent path:

    ./configure PATH_KRB5_CONFIG=/nonexistent

krb5-config is not used and library probing is always done if either --with-krb5-include or --with-krb5-lib are given.

Pass --enable-silent-rules to configure for a quieter build (similar to the Linux kernel). Use make warnings instead of make to build with full GCC compiler warnings (requires either GCC or Clang and may require a relatively current version of the compiler).

You can pass the --enable-reduced-depends flag to configure to try to minimize the shared library dependencies encoded in the binaries. This omits from the link line all the libraries included solely because other libraries depend on them and instead links the programs only against libraries whose APIs are called directly. This will only work with shared libraries and will only work on platforms where shared libraries properly encode their own dependencies (this includes most modern platforms such as all Linux). It is intended primarily for building packages for Linux distributions to avoid encoding unnecessary shared library dependencies that make shared library migrations more difficult. If none of the above made any sense to you, don't bother with this flag.

Testing

In order to test the client in a meaningful way, you will need to do some preparatory work before running the test suite. Follow the instructions in tests/data/README first. Then, you can run the test suite with:

    make check

If a test fails, you can run a single test with verbose output via:

    tests/runtests -o <name-of-test>

Do this instead of running the test program directly since it will ensure that necessary environment variables are set up.

Perl 5.008 or later and the kinit and klist programs from MIT Kerberos, not Heimdal, are required to run the test suite. The following additional Perl modules will be used by the test suite if present:

  • Test::Pod
  • Test::Spelling

To enable tests that don't detect functionality problems but are used to sanity-check the release, set the environment variable RELEASE_TESTING to a true value. To enable tests that may be sensitive to the local environment or that produce a lot of false positives without uncovering many problems, set the environment variable AUTHOR_TESTING to a true value.

Thanks

To Navid Golpayegani, for contributing the initial implementation of the -b option to background after the initial authentication and the -p option to save the PID in a file.

To Buck Huppmann, for contributing an RPM spec file and suggesting krenew.

To Adam Megacz, for pointing out that checking the executability of the aklog program isn't necessary and for contributing the code to propagate signals to a child process.

To Quanah Gibson-Mount, for pointing out various build system issues and missing documentation.

To Sidney Cammeresi, for catching a missing include in krenew and for providing information and suggestions about Mac OS X's default ticket cache and its effects on the -b option of k5start and krenew.

To Thomas Kula, for pointing out that k_hasafs has to be called before k_setpag when using the kafs functions.

To Thomas Weiss, for noticing that code restructuring caused the argument to -H to be ignored in k5start and that -H and -K should be diagnosed as mutually exclusive.

To Howard Wilkinson, for the initial version of the -o, -g, and -m support and further debugging of it.

To Sascha Tandel, for the initial version of -c support and reports of build problems when the AFS libauthent and libafsrpc libraries didn't work.

To Gautam Iyer, for the initial version of -H support in krenew.

To Mike Horansky, for the idea of copying the current ticket cache when running krenew with a command, thereby saving the ticket cache from destruction when the user logs out.

Support

The kstart web page will always have the current version of this package, the current documentation, and pointers to any additional resources.

For bug tracking, use the issue tracker on GitHub. However, please be aware that I tend to be extremely busy and work projects often take priority. I'll save your report and get to it as soon as I can, but it may take me a couple of months.

Source Repository

kstart is maintained using Git. You can access the current source on GitHub or by cloning the repository at:

https://git.eyrie.org/git/kerberos/kstart.git

or view the repository on the web.

The eyrie.org repository is the canonical one, maintained by the author, but using GitHub is probably more convenient for most purposes. Pull requests are gratefully reviewed and normally accepted.

License

The kstart package as a whole is covered by the following copyright statement and license:

Copyright 2015, 2021 Russ Allbery [email protected]

Copyright 1995-1997, 1999-2002, 2004-2012, 2014 The Board of Trustees of the Leland Stanford Junior University

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Some files in this distribution are individually released under different licenses, all of which are compatible with the above general package license but which may require preservation of additional notices. All required notices, and detailed information about the licensing of each file, are recorded in the LICENSE file.

Files covered by a license with an assigned SPDX License Identifier include SPDX-License-Identifier tags to enable automated processing of license information. See https://spdx.org/licenses/ for more information.

For any copyright range specified by files in this package as YYYY-ZZZZ, the range specifies every single year in that closed interval.

kstart's People

Contributors

dependabot[bot] avatar laotse avatar michaellass avatar robberteggermont avatar rra avatar tdb avatar versi786 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

kstart's Issues

4.3: test suite is failing

Looks like something is wong and test suite is failing

+ cd kstart-release-4.3
+ /usr/bin/make -O -j48 V=1 VERBOSE=1 check
/usr/bin/make  tests/runtests tests/kafs/basic tests/kafs/haspag-t tests/portable/asprintf-t tests/portable/daemon-t tests/portable/mkstemp-t tests/portable/reallocarray-t tests/portable/setenv-t tests/util/messages-krb5-t tests/util/messages-t tests/util/xmalloc tests/tap/libtap.a
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
/usr/bin/gcc -DHAVE_CONFIG_H -I.      -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o tests/portable/setenv-t.o tests/portable/setenv-t.c
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
/usr/bin/gcc -DHAVE_CONFIG_H -I.      -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o tests/portable/asprintf-t.o tests/portable/asprintf-t.c
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
/usr/bin/gcc -DHAVE_CONFIG_H -I.      -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o tests/portable/reallocarray.o tests/portable/reallocarray.c
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
/usr/bin/gcc -DHAVE_CONFIG_H -I.      -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o tests/portable/asprintf.o tests/portable/asprintf.c
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
/usr/bin/gcc -DHAVE_CONFIG_H -I.      -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o tests/portable/setenv.o tests/portable/setenv.c
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
/usr/bin/gcc -DHAVE_CONFIG_H -I.  -I/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3/tests   -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o tests/tap/libtap_a-string.o `test -f 'tests/tap/string.c' || echo './'`tests/tap/string.c
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
/usr/bin/gcc -DHAVE_CONFIG_H -I.      -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o tests/portable/daemon.o tests/portable/daemon.c
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
/usr/bin/gcc -DHAVE_CONFIG_H -I.      -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o tests/portable/mkstemp-t.o tests/portable/mkstemp-t.c
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
/usr/bin/gcc -DHAVE_CONFIG_H -I.     -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o tests/kafs/basic-basic.o `test -f 'tests/kafs/basic.c' || echo './'`tests/kafs/basic.c
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
/usr/bin/gcc -DHAVE_CONFIG_H -I.     -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o tests/kafs/haspag_t-haspag-t.o `test -f 'tests/kafs/haspag-t.c' || echo './'`tests/kafs/haspag-t.c
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
/usr/bin/gcc -DHAVE_CONFIG_H -I.      -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o tests/util/messages-krb5-t.o tests/util/messages-krb5-t.c
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
/usr/bin/gcc -DHAVE_CONFIG_H -I.      -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o tests/util/messages-t.o tests/util/messages-t.c
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
/usr/bin/gcc -DHAVE_CONFIG_H -I.      -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o tests/portable/daemon-t.o tests/portable/daemon-t.c
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
/usr/bin/gcc -DHAVE_CONFIG_H -I.      -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o tests/util/xmalloc.o tests/util/xmalloc.c
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
/usr/bin/gcc -DHAVE_CONFIG_H -I.      -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o tests/portable/reallocarray-t.o tests/portable/reallocarray-t.c
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
/usr/bin/gcc -DHAVE_CONFIG_H -I.      -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o tests/portable/mkstemp.o tests/portable/mkstemp.c
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
/usr/bin/gcc -DHAVE_CONFIG_H -I.  -I/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3/tests   -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o tests/tap/libtap_a-process.o `test -f 'tests/tap/process.c' || echo './'`tests/tap/process.c
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
/usr/bin/gcc -DHAVE_CONFIG_H -I.  -I/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3/tests   -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o tests/tap/libtap_a-basic.o `test -f 'tests/tap/basic.c' || echo './'`tests/tap/basic.c
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
rm -f tests/tap/libtap.a
/usr/bin/gcc-ar cru tests/tap/libtap.a tests/tap/libtap_a-basic.o tests/tap/libtap_a-process.o tests/tap/libtap_a-string.o
/usr/bin/gcc-ranlib tests/tap/libtap.a
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
make[1]: 'tests/tap/libtap.a' is up to date.
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
/usr/bin/gcc -DHAVE_CONFIG_H -I.  -DC_TAP_SOURCE='"/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3/tests"' -DC_TAP_BUILD='"/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3/tests"'   -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o tests/runtests-runtests.o `test -f 'tests/runtests.c' || echo './'`tests/runtests.c
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
/usr/bin/gcc  -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -L/lib64/afs -Wl,--gc-sections -Wl,--as-needed -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,--build-id=sha1 -o tests/kafs/basic tests/kafs/basic-basic.o kafs/libkafs.a portable/libportable.a
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
/usr/bin/gcc  -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os  -Wl,--gc-sections -Wl,--as-needed -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,--build-id=sha1 -o tests/portable/setenv-t tests/portable/setenv-t.o tests/portable/setenv.o tests/tap/libtap.a portable/libportable.a
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
/usr/bin/gcc  -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os  -Wl,--gc-sections -Wl,--as-needed -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,--build-id=sha1 -o tests/portable/asprintf-t tests/portable/asprintf-t.o tests/portable/asprintf.o tests/tap/libtap.a portable/libportable.a
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
/usr/bin/gcc  -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os  -Wl,--gc-sections -Wl,--as-needed -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,--build-id=sha1 -o tests/portable/mkstemp-t tests/portable/mkstemp-t.o tests/portable/mkstemp.o tests/tap/libtap.a portable/libportable.a
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
/usr/bin/gcc  -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os  -Wl,--gc-sections -Wl,--as-needed -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,--build-id=sha1 -o tests/portable/reallocarray-t tests/portable/reallocarray-t.o tests/portable/reallocarray.o tests/tap/libtap.a portable/libportable.a
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
/usr/bin/gcc  -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os  -Wl,--gc-sections -Wl,--as-needed -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,--build-id=sha1 -o tests/util/xmalloc tests/util/xmalloc.o util/libutil.a portable/libportable.a
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
/usr/bin/gcc  -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -L/lib64/afs -Wl,--gc-sections -Wl,--as-needed -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,--build-id=sha1 -o tests/kafs/haspag-t tests/kafs/haspag_t-haspag-t.o kafs/libkafs.a tests/tap/libtap.a portable/libportable.a
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
/usr/bin/gcc  -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os  -Wl,--gc-sections -Wl,--as-needed -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,--build-id=sha1 -o tests/portable/daemon-t tests/portable/daemon-t.o tests/portable/daemon.o tests/tap/libtap.a portable/libportable.a
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
/usr/bin/gcc  -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os  -Wl,--gc-sections -Wl,--as-needed -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,--build-id=sha1 -o tests/util/messages-krb5-t tests/util/messages-krb5-t.o tests/tap/libtap.a util/libutil.a portable/libportable.a -lkrb5
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
/usr/bin/gcc  -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os  -Wl,--gc-sections -Wl,--as-needed -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,--build-id=sha1 -o tests/util/messages-t tests/util/messages-t.o tests/tap/libtap.a util/libutil.a portable/libportable.a
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
/usr/bin/gcc  -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os  -Wl,--gc-sections -Wl,--as-needed -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,--build-id=sha1 -o tests/runtests tests/runtests-runtests.o
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
/usr/bin/make  check-local
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
tests/runtests -l '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3/tests/TESTS'

Running all tests listed in TESTS.  If any tests fail, run the failing
test program with runtests -o to see more details.

docs/pod................ABORTED (exit status 2)
docs/pod-spelling.......ABORTED (exit status 2)
docs/spdx-license.......ABORTED (exit status 2)
k5start/afs.............ABORTED (exit status 2)
k5start/basic...........ABORTED (exit status 2)
k5start/daemon..........ABORTED (exit status 2)
k5start/errors..........ABORTED (exit status 2)
k5start/flags...........ABORTED (exit status 2)
k5start/keyring.........ABORTED (exit status 2)
k5start/non-renewable...ABORTED (exit status 2)
k5start/perms...........ABORTED (exit status 2)
k5start/sigchld.........ABORTED (exit status 2)
kafs/basic..............skipped (AFS not available)
kafs/haspag.............skipped (AFS not available)
krenew/afs..............ABORTED (exit status 2)
krenew/basic............ABORTED (exit status 2)
krenew/daemon...........ABORTED (exit status 2)
krenew/errors...........ABORTED (exit status 2)
krenew/keyring..........ABORTED (exit status 2)
krenew/non-renewable....ABORTED (exit status 2)
portable/asprintf.......ok
portable/daemon.........ok
portable/mkstemp........ok
portable/reallocarray...ok
portable/setenv.........ok
style/obsolete-strings..ABORTED (exit status 2)
util/messages...........ok
util/messages-krb5......ok
util/xmalloc............skipped (xmalloc tests only run for author)

Failed Set                 Fail/Total (%) Skip Stat  Failing Tests
-------------------------- -------------- ---- ----  ------------------------
docs/pod                      0/0      0%    0    2  aborted
docs/pod-spelling             0/0      0%    0    2  aborted
docs/spdx-license             0/0      0%    0    2  aborted
k5start/afs                   0/0      0%    0    2  aborted
k5start/basic                 0/0      0%    0    2  aborted
k5start/daemon                0/0      0%    0    2  aborted
k5start/errors                0/0      0%    0    2  aborted
k5start/flags                 0/0      0%    0    2  aborted
k5start/keyring               0/0      0%    0    2  aborted
k5start/non-renewable         0/0      0%    0    2  aborted
k5start/perms                 0/0      0%    0    2  aborted
k5start/sigchld               0/0      0%    0    2  aborted
krenew/afs                    0/0      0%    0    2  aborted
krenew/basic                  0/0      0%    0    2  aborted
krenew/daemon                 0/0      0%    0    2  aborted
krenew/errors                 0/0      0%    0    2  aborted
krenew/keyring                0/0      0%    0    2  aborted
krenew/non-renewable          0/0      0%    0    2  aborted
style/obsolete-strings        0/0      0%    0    2  aborted

Aborted 19 test sets, passed 154/154 tests, 3 tests skipped.
Files=29,  Tests=154,  0.49 seconds (0.11 usr + 0.07 sys = 0.19 CPU)
make[1]: *** [Makefile:1860: check-local] Error 1
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
make: *** [Makefile:1602: check-am] Error 2

Define kstart.service in systemctl, but start failed for time-out reason

I install kstart through yum repo, and define a file "kstart.service" in the path /usr/lib/systemd/system/, the contents of kstart.service are as follows:

[Unit]
Description=k5start service for Administration
Wants=network-online.target
After=syslog.target network.target network-online.target

[Service]
Type=forking
ExecStart=/usr/bin/k5start -U -f /etc/krb5.keytab -K 10 -l 24h
ExecReload=/bin/kill -HUP $MAINPID

[Install]
WantedBy=multi-user.target

However, when I use systemctl start kstart to start kstart service, it always fail for the reason of time out , could you give me some advise?

Consider supporting default client keytab with -U

Many years ago MIT Kerberos introduced the usage of client keytabs. Either with default location (krb5-config --defcktname) or with KRB5_CLIENT_KTNAME. When doing k5start -U it forces me to provide a keytab. MIT Kerberos has the same semantics here, using the first entry of the keytab.
My feature request is to make -f optional, query env var for keytab, then obtain default location and the ultimately fail when both does not work. When -f is provided proceed as usual. This would make usage consistent between both. kinit supports this too:

       -k [-i | -t keytab_file]
              requests a ticket, obtained from a key in the local host's keytab.  The location of the
              keytab  may be specified with the -t keytab_file option, or with the -i option to spec‐
              ify the use of the default client keytab; otherwise the default keytab  will  be  used.

In my case I would not do:

k5start -U -f /var/kerberos/krb5/user/1000/client.keytab -a -q -L -- {command} ...

but simply

k5start -U -a -q -L -- {command} ...

4.3: build fails

Looks like something is wrrong with Makefile rules for man pages

+ ./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --disable-silent-rules --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --runstatedir=/run --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-reduced-depends --enable-setpag --with-aklog=/usr/bin/aklog
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 for x86_64-redhat-linux-gnu-gcc... /usr/bin/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 /usr/bin/gcc accepts -g... yes
checking for /usr/bin/gcc option to enable C11 features... none needed
checking whether /usr/bin/gcc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of /usr/bin/gcc... none
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 if the compiler is Clang... no
checking if /usr/bin/gcc supports -fstrict-overflow... yes
checking if /usr/bin/gcc supports -fstrict-aliasing... yes
checking if /usr/bin/gcc supports -Wall... yes
checking if /usr/bin/gcc supports -Wextra... yes
checking if /usr/bin/gcc supports -Wformat=2... yes
checking if /usr/bin/gcc supports -Wformat-overflow=2... yes
checking if /usr/bin/gcc supports -Wformat-signedness... yes
checking if /usr/bin/gcc supports -Wformat-truncation=2... yes
checking if /usr/bin/gcc supports -Wnull-dereference... yes
checking if /usr/bin/gcc supports -Winit-self... yes
checking if /usr/bin/gcc supports -Wswitch-enum... yes
checking if /usr/bin/gcc supports -Wstrict-overflow=5... yes
checking if /usr/bin/gcc supports -Wmissing-format-attribute... yes
checking if /usr/bin/gcc supports -Walloc-zero... yes
checking if /usr/bin/gcc supports -Wduplicated-branches... yes
checking if /usr/bin/gcc supports -Wduplicated-cond... yes
checking if /usr/bin/gcc supports -Wtrampolines... yes
checking if /usr/bin/gcc supports -Wfloat-equal... yes
checking if /usr/bin/gcc supports -Wdeclaration-after-statement... yes
checking if /usr/bin/gcc supports -Wshadow... yes
checking if /usr/bin/gcc supports -Wpointer-arith... yes
checking if /usr/bin/gcc supports -Wbad-function-cast... yes
checking if /usr/bin/gcc supports -Wcast-align... yes
checking if /usr/bin/gcc supports -Wwrite-strings... yes
checking if /usr/bin/gcc supports -Wconversion... yes
checking if /usr/bin/gcc supports -Wno-sign-conversion... yes
checking if /usr/bin/gcc supports -Wdate-time... yes
checking if /usr/bin/gcc supports -Wjump-misses-init... yes
checking if /usr/bin/gcc supports -Wlogical-op... yes
checking if /usr/bin/gcc supports -Wstrict-prototypes... yes
checking if /usr/bin/gcc supports -Wold-style-definition... yes
checking if /usr/bin/gcc supports -Wmissing-prototypes... yes
checking if /usr/bin/gcc supports -Wmissing-declarations... yes
checking if /usr/bin/gcc supports -Wnormalized=nfc... yes
checking if /usr/bin/gcc supports -Wpacked... yes
checking if /usr/bin/gcc supports -Wredundant-decls... yes
checking if /usr/bin/gcc supports -Wrestrict... yes
checking if /usr/bin/gcc supports -Wnested-externs... yes
checking if /usr/bin/gcc supports -Winline... yes
checking if /usr/bin/gcc supports -Wvla... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for x86_64-redhat-linux-gnu-ar... /usr/bin/gcc-ar
checking the archiver (/usr/bin/gcc-ar) interface... ar
checking for x86_64-redhat-linux-gnu-ranlib... /usr/bin/gcc-ranlib
checking size of long... 8
checking for krb5_init_context in -lkrb5... yes
checking for krb5_get_error_message... yes
checking for krb5_free_error_message... yes
checking for krb5.h... yes
checking for kerberosv5/krb5.h... no
checking for krb5/krb5.h... yes
checking for krb5_cc_copy_cache... no
checking for krb5_cc_get_full_name... yes
checking for krb5_get_init_creds_opt_alloc... yes
checking for krb5_get_init_creds_opt_set_default_flags... no
checking for krb5_principal_get_realm... no
checking for krb5_xfree... no
checking for krb5_get_init_creds_opt_free... yes
checking if krb5_get_init_creds_opt_free takes two arguments... yes
checking for /usr/bin/gcc options needed to detect all undeclared functions... none needed
checking whether krb5_kt_free_entry is declared... yes
checking for krb5_get_renewed_creds... yes
checking build system type... x86_64-redhat-linux-gnu
checking host system type... x86_64-redhat-linux-gnu
checking for sys/ioccom.h... no
checking for k_hasafs in -lkafs... no
checking for k_hasafs in -lkopenafs... no
checking for k_pioctl... no
checking for k_haspag... no
checking for x86_64-redhat-linux-gnu-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LIBKEYUTILS... yes
checking for _Bool... yes
checking for stdbool.h that conforms to C99... yes
checking for strings.h... (cached) yes
checking for sys/bitypes.h... yes
checking for sys/select.h... yes
checking for sys/time.h... yes
checking for syslog.h... yes
checking whether reallocarray is declared... yes
checking for C99 variadic macros... yes
checking for GNU-style variadic macros... yes
checking for unsigned long long int... yes
checking for long long int... yes
checking for uint32_t... yes
checking for sig_atomic_t... yes
checking for ssize_t... yes
checking for explicit_bzero... yes
checking for setrlimit... yes
checking for setsid... yes
checking for asprintf... yes
checking for daemon... yes
checking for mkstemp... yes
checking for reallocarray... yes
checking for setenv... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing tests/data/.placeholder commands
+ /usr/bin/make -O -j48 V=1 VERBOSE=1
/usr/bin/make  all-am
make[1]: *** No rule to make target 'docs/k5start.1', needed by 'all-am'.  Stop.
make[1]: *** Waiting for unfinished jobs....
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
/usr/bin/gcc -DHAVE_CONFIG_H -I.       -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o commands/krenew-krenew.o `test -f 'commands/krenew.c' || echo './'`commands/krenew.c
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
/usr/bin/gcc -DHAVE_CONFIG_H -I.       -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o commands/krenew-framework.o `test -f 'commands/framework.c' || echo './'`commands/framework.c
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/kstart-release-4.3'
make: *** [Makefile:709: all] Error 2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.