Actions
Bug #6962
closedkclient performs incorrect check for /dev/random
Start date:
2016-05-10
Due date:
% Done:
100%
Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage
Gerrit CR:
Description
The current kclient.sh check uses the "-h" test for /dev/random, which only works in the global zone. Non-global zones have /dev/random point right to the device node. Fix should be straightforward:
diff --git a/usr/src/cmd/krb5/kadmin/kclient/kclient.sh b/usr/src/cmd/krb5/kadmin/kclient/kclient.sh index 6d619e6..575f0a8 100644 --- a/usr/src/cmd/krb5/kadmin/kclient/kclient.sh +++ b/usr/src/cmd/krb5/kadmin/kclient/kclient.sh @@ -1386,7 +1386,7 @@ EOF i=0 # first check to see if /dev/random exists to generate a new password - if [[ ! -h /dev/random ]]; then + if [[ ! -e /dev/random ]]; then printf "$(gettext "/dev/random does not exist").\n" >&2 error_message fi
Actions