Re: The Linux Security Circus: On GUI isolation
by follower on Saturday April 23, 2011 @07:12PM
(#2477824)
I seem to recall the "Secure Keyboard Entry" option (in the application menu) in Terminal on OS X is supposed to stop the su/sudo problem on OS X at least for terminals.
[ Parent
| on HN ]
Re: The Linux Security Circus: On GUI isolation
by there on Saturday April 23, 2011 @07:33PM
(#2477865)
xterm has a secure keyboard option from its menu (control+click) that is supposed to prevent other applications from being able to receive X11 events related to input.
the thing you are referring to on os x is similar, with a system-wide capability. when you enter passwords for keychain and similar things, these have secure input enabled by default. i think it's up to the application to enable it, but when it's enabled for a field, no other application can intercept those events.
Re: The Linux Security Circus: On GUI isolation
by rg3 on Saturday April 23, 2011 @07:41PM
(#2477886)
Thanks for pointing out the "Secure Keyboard" option. Make sure to test it before relying on it, though. I just tested in my system and it does not prevent "xinput test" from receiving the key presses, even when typing the "su" password.
Re: The Linux Security Circus: On GUI isolation
by jojo1 on Saturday April 23, 2011 @07:38PM
(#2477880)
xinput is still able to read all keys when xterm's secure keyboard is enabled.
Re: The Linux Security Circus: On GUI isolation
by there on Saturday April 23, 2011 @07:41PM
(#2477885)
right, because it's not operating on x11 events, it's just directly reading xinput data. there's not much xterm can do when the underlying server is giving away all of the raw input data.
Re: The Linux Security Circus: On GUI isolation
by tshtf on Saturday April 23, 2011 @07:33PM
(#2477868)
In the OS X GUI, the Authorization Services API handles this. The SecurityAgent process, running as a different uid (_securityagent), controls the window that the user enters her password to escalate privileges.