Bug 99317 - xwayland can read clipboard without focus
Summary: xwayland can read clipboard without focus
Status: RESOLVED NOTOURBUG
Alias: None
Product: Wayland
Classification: Unclassified
Component: XWayland (show other bugs)
Version: unspecified
Hardware: All Linux (All)
: medium major
Assignee: Wayland bug list
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-08 02:18 UTC by pixelfairy
Modified: 2018-06-04 07:19 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description pixelfairy 2017-01-08 02:18:15 UTC
running this in the current (jan 2017) fedora25 in gnome-shell (wayland mode). also tried in weston.

with the xwayland module loaded, any app can see any clipboard by calling x11. 

to see this, run 'watch xsel -b' in a terminal, and copy to the clipboard from any wayland app. 

can this be changed so the x clients can only see the clipboard after getting focus? this is especially important for password keepers.
Comment 1 Jonas Ådahl 2017-01-09 02:05:56 UTC
I think this probably needs to be fixed in the Xwayland clipboard integration code in each compositor. It probably won't be possible to fix for X11<->X11 clients, as they talk with each other directly, but we could probably stick some branches in the wheel when X11 clients tries to steal clipboard content when a Wayland client is focused.
Comment 2 Daniel Stone 2018-06-04 07:19:14 UTC
Per Jonas's comment, closing this here so it can be tracked everywhere it happens.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.