Block send of keyboard input to terminal on embedded app (Raspberry Pi 3)
I have an embedded app (Qt 5.7) running on Raspbian Lite, with parameter
-platform linuxfb. All keyboard input is send to terminal and allow an expert user to close the application and get access to the terminal, for instance. I need to block this behavior.
With the environment variables bellow, I can do what I want, but, only works if the app is running with root user, and I do not want this. There is a specific user, with the right privileges to run the application.
If someone knows how to fix this, I will be very thankful.
@Emerson-Siega Can't you put this in bash.bashrc of that user?
@jsulm Thank's for your answer!
Yes, I already tried this, but doesn't work.
I tried to put this on command line when run the app, but failed too.
Do you have any use of the keyboard for your application ?
Yes, basically all interaction come from keyboard input.
Disable this input to terminal it's a security issue...
/etc/init/, you can find the tty related configuration. If you disable them, you shouldn't be able to access the tty.
@SGaist Thanks for your help.
I'll take a look at that and then I will post the result here.