News for hackers. Stuff that matters.
Re:Wayland in Gnome: two progress reports by darklajid on Sunday August 24, 2014 @01:34PM (#8219097)
There is also ongoing work to figure out how best to support taking screenshots of the whole desktop. Users expect the feature, but it has major security implications. If an application can take a screenshot unattended, it can also use that capability to record username/password combinations and other sensitive data. The straightforward solution is to force screenshot capture to require a user to verify the action; that would at least allow the user to detect if an unauthorized screenshot attempt is made.

I know how this will come across, but .. sounds like UAC?

Re:Wayland in Gnome: two progress reports by adestefan on Sunday August 24, 2014 @01:59PM (#8219169)
There was never anything wrong with the idea of UAC; the problem was the implementation. When the feature was first introduced so many Windows programs did things that caused UAC pop-ups that it because nothing more than an annoying click-through that no one paid attention to. It became nothing more than a default "okay."
Re:Wayland in Gnome: two progress reports by vacri on Sunday August 24, 2014 @07:23PM (#8219986)
The problem wasn't the elevation request itself, it was the amount of requests for a single [user-perceived] action. My record was 5, but a friend managed to get 7 requests in early Win Vista... I wish I could remember what for.
Re:Wayland in Gnome: two progress reports by e12e on Sunday August 24, 2014 @02:30PM (#8219243)
I don't know... we've generally used suid binaries for this in the past? I suppose the display server will run as root, so the sane approach is to add a screenshot api, possibly writing the screenshot to a file/folder/socket with special permissions? ("special" because the gist here seems to be a wish to limit capabilities more finely than traditional unix user/group/others -- after all the user has access to the whole desktop (say with a digital camera) -- so the goal here is apparently to limit which applications can access other applications. At any rate, root should be able to read all process' memory, so taking a screenshot shouldn't be a problem... (I'm not saying take a screenshot by reading video memory, just that the level of access is equivalent).
Re:Wayland in Gnome: two progress reports by whoopdedo on Sunday August 24, 2014 @10:32PM (#8220337)
Could another approach be to allow applications to flag a graphical element as secure and it will be excluded from any attempt by another process to read the screen? Don't even allow the superuser to take screenshots of passwords, credit cards, etc. They'll just show up as a black box.
Re:Wayland in Gnome: two progress reports by ansgri on Monday August 25, 2014 @05:00AM (#8221068)
Don't even talk about not allowing something to superuser. It could be nontrivial to enable though.
Re:Wayland in Gnome: two progress reports by aroman on Sunday August 24, 2014 @01:55PM (#8219157)
And that is perfectly fine by me. There's a very limited subset of features which would require this kind of explicit authorization.
Re:Wayland in Gnome: two progress reports by catern on Sunday August 24, 2014 @02:43PM (#8219286)
Sure, but UAC doesn't have to be as badly designed and implemented as it was in Windows. Allan Day has some great plans for adding this to GNOME: http://blogs.gnome.org/aday/2014/07/23/sandboxed-application...
Re:Wayland in Gnome: two progress reports by itry on Sunday August 24, 2014 @02:27PM (#8219236)
An application can do all kinds of shit, can't it? It could probably replace your Browsers icon with an icon that starts a custom version of your Browser which uploads everything you type to some server.
Re:Wayland in Gnome: two progress reports by scrollaway on Sunday August 24, 2014 @04:49PM (#8219619)
Which is why we¹ are working on sandboxed apps.

https://news.ycombinator.com/item?id=8219309

¹I say "we" as in DE developers, I'm not a GNOME dev.

Re:Wayland in Gnome: two progress reports by dethstar on Sunday August 24, 2014 @02:17PM (#8219211)
yeah, something like that. I guess it'd be cool if you could just whitelist applications to do stuff, and have others pop out when requiring the permission.
Re:Wayland in Gnome: two progress reports by mercurial on Sunday August 24, 2014 @02:29PM (#8219239)
Sounds like a security hole: non-whitelisted malicious app launches whitelisted app as an external process, and then mayhem ensues.
Re:Wayland in Gnome: two progress reports by jhasse on Sunday August 24, 2014 @03:08PM (#8219354)
User permission should be required when launching external processes.
Re:Wayland in Gnome: two progress reports by wtallis on Sunday August 24, 2014 @10:08PM (#8220285)
And whitelisted processes don't have to take input from anything other than the user himself; a command-line screenshot tool that can be run by any program and doesn't ask for interactive confirmation through a trusted channel (ie. keyboard events directed into its own window by the compositor itself) would be a pretty stupid thing to whitelist unless you've got proper sandboxing for any untrusted apps.