GNU bug report logs - #74220
invisible cursor

Previous Next

Package: emacs;

Reported by: Avraham Pinkas <ampinkas <at> gmail.com>

Date: Wed, 6 Nov 2024 01:46:02 UTC

Severity: normal

Tags: notabug

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Jared Finder <jared <at> finder.org>
Cc: 74220 <at> debbugs.gnu.org, gerd.moellmann <at> gmail.com, ampinkas <at> gmail.com, stephen.berman <at> gmx.net, rpluim <at> gmail.com
Subject: bug#74220: invisible cursor
Date: Thu, 28 Nov 2024 22:20:28 +0200
> Date: Thu, 28 Nov 2024 10:21:53 -0800
> From: Jared Finder <jared <at> finder.org>
> Cc: "Jared Finder via \"Bug reports for GNU Emacs, the Swiss army knife of
>  text editors\"" <bug-gnu-emacs <at> gnu.org>, Robert Pluim <rpluim <at> gmail.com>,
>  Gerd Möllmann <gerd.moellmann <at> gmail.com>, Eli Zaretskii
>  <eliz <at> gnu.org>, 74220 <74220 <at> debbugs.gnu.org>, Avraham Pinkas
>  <ampinkas <at> gmail.com>
> 
> This was an intentional change to Linux 6.7 to avoid a potential 
> privilege escalation. Specifically, apps without the capability 
> CAP_SYS_ADMIN are no longer able to set the kernel selection buffer. 
> Across Emacs versions, granting the Emacs binary the CAP_SYS_ADMIN 
> capability (sudo setcap cap_sys_admin+ep path/to/emacs) fixes the issue.

Sorry, I don't follow: what does setting the kernel selection buffer
have to do with showing the cursor?  And how is it related to GPM?
What am I missing here?

> But is this the right fix? CAP_SYS_ADMIN grants many dangerous 
> capabilities on Linux. An alternative fix would be to update redisplay 
> on terminals to draw the mouse cursor. Perhaps this is what is done on 
> other OSes? I would like guidance here on which path is recommended.

Let's first understand the problem better.

(And I'm guessing that by "cursor" you mean "mouse pointer"?)




This bug report was last modified 162 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.