This patch corrects the following: - Under enhanced security, sometimes users (even root) are unable to log in on graphics console, even after using dxdevices or edauth to clear the t_failures count. - On systems running enhanced security, user-written applications that call auth_for_terminal() may fail with a segmentation fault.