[Pkg-utopia-maintainers] Bug#677418: Due Debian bug #677418 -- gpm sharing clipboard between different users

Samuel Thibault sthibault at debian.org
Mon Jul 9 22:16:56 UTC 2012


Christoph Anton Mitterer, le Tue 10 Jul 2012 00:08:22 +0200, a écrit :
> On Mon, 2012-07-09 at 23:50 +0200, Samuel Thibault wrote:
> > As said above: when it receives a mouse click, it uses ioctl(TIOCLINUX)
> > to make the kernel paste. But it doesn't even know what is being pasted.
> Ah,... I now I see... so one would need to implement in the kernel, that
> every user has it's own clipboard space... and only then gpm could do
> something like:
> onclick()
> {
> 	if(userFits())
> 		ioctl(...)

That won't prevent any user from calling the ioctl. The ioctl is not
privileged. That should really be done in the kernel.

> > > A "solution" might be to add a configuration option, that allows
> > > cross-user copy/pasting... but that should then be disabled per default,
> > > IMHO.
> > I wonder who will ever notice and enable it.
> Well I guess people who desperately miss that "feature" would probably
> have a look at the documentation.
> And especially we in Debian have debconf that could simply ask. :)

Such kinds of questions are quite frowned upon.

> > These don't matter here: unless they are the same as some of the users
> > logged into the keyboard console, they don't have any access to the
> > keyboard console, and thus not to the copy/paste buffer either.
> I doubt... we at the super computing centre have many nodes where we use
> some sort of serial console access (differently implemented depending on
> different hosts),... where I can log in from remote places (via ssh or
> browser) and get a console on which I can use gpm.

What does "use gpm" mean exactly?  What does the "tty" command return?
Is the content of the consoles exactly the same as what's physically
displayed on the machine?

I can "use gpm" in my xterms for instance, but copy/paste is entirely
done by X11.

> And it's the same if you remotely log in on the consoles of VMs.

Log how? Which tool?  There are a plethora of ways to access a machine
with very varying effects.

Samuel



More information about the Pkg-utopia-maintainers mailing list