krb5: Make test_cc run keyctl new_session
This commit is contained in:

committed by
Jeffrey Altman

parent
90db9b96a4
commit
a025788a37
@@ -30,18 +30,6 @@
|
|||||||
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||||
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
|
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
|
||||||
|
|
||||||
/*
|
|
||||||
* If KEYRING tests fail with:
|
|
||||||
*
|
|
||||||
* test_cc: krb5_cc_gen_new: KEYRING: Key has been revoked
|
|
||||||
*
|
|
||||||
* then run:
|
|
||||||
*
|
|
||||||
* $ keyctl new_session
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef WIN32
|
|
||||||
|
|
||||||
#include "krb5_locl.h"
|
#include "krb5_locl.h"
|
||||||
#include <getarg.h>
|
#include <getarg.h>
|
||||||
#include <err.h>
|
#include <err.h>
|
||||||
@@ -993,6 +981,7 @@ main(int argc, char **argv)
|
|||||||
test_cache_remove(context, krb5_cc_type_scc);
|
test_cache_remove(context, krb5_cc_type_scc);
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_KEYUTILS_H
|
#ifdef HAVE_KEYUTILS_H
|
||||||
|
system("keyctl new_session >/dev/null");
|
||||||
test_cache_remove(context, krb5_cc_type_keyring);
|
test_cache_remove(context, krb5_cc_type_keyring);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user