Hi,
I know this is an old thread, but I'll post here for folks who run into this problem and need a solution other than enabling grsec sysctl.
The problem is that plymouth locks the termios, and then it does chroot before it unlocks the termios. So, the termios get stuck in unbuffered mode. The getty handles that OK, but login does not, which causes the password entry failure.
One solution is to run a small program (from rc.local) to unlock the termios. I don't believe stty has this capability, but you can compile the following small C program to do it. Run this by redirecting stdin from the serial port in question (like how stty works):
- Code: Select all
#include <termios.h>
#include <sys/ioctl.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
int
main(int argc, char* argv[])
{
struct termios trm;
memset(&trm, 0, sizeof(struct termios));
ioctl(0, TIOCSLCKTRMIOS, &trm);
return 0;
}