From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#74220: invisible cursor Date: Thu, 28 Nov 2024 22:20:28 +0200 Message-ID: <865xo7cdpv.fsf@gnu.org> References: <87ldxwmppm.fsf@gmail.com> <86o72ssfm4.fsf@gnu.org> <87bjyscp5e.fsf@gmx.net> <2b5006ac22491fd8c509120ad653117d@finder.org> <8b70d54cd579f33d1e698a0f8927dc4f@finder.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30861"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 74220@debbugs.gnu.org, gerd.moellmann@gmail.com, ampinkas@gmail.com, stephen.berman@gmx.net, rpluim@gmail.com To: Jared Finder Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 28 21:21:17 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tGl0m-0007pr-Nv for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 28 Nov 2024 21:21:16 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tGl0d-0005QH-Um; Thu, 28 Nov 2024 15:21:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tGl0Z-0005PY-Mv for bug-gnu-emacs@gnu.org; Thu, 28 Nov 2024 15:21:04 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tGl0Y-0004O4-K0 for bug-gnu-emacs@gnu.org; Thu, 28 Nov 2024 15:21:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-version:References:In-Reply-To:From:Date:To:Subject; bh=iXtcljYIYj+Yf5h+1Wcj4x84mDJ6OVcnqGyA579E8aI=; b=A3+855OQxRCJ2q69ejgfH0aRz4UMnxvwVGhKPazMxM4W4QvCpZjPdbwkSk/zb7Fm8L0NUXFIO25EEQdxvPeAM4Cn1PRPjRgEZ7/eUTqItBbrnGRr+WImWTRtxIqrQkTh67Zm1dXPPlZptitlJYDBc3mbYxOl+D2TmsgmqCac/lP+id5e5YR8t5FwXcHYyvQev2dRzJ1kciOHRmi3SAK65hptmOSi6z17eEK+eTs01BRyAukFxhgqKrWKBmZ+3hn1boznlKrowI+9P96+QUIqP3N85ialFyoQ3tvu6Qt+0Gwwp5fn/FdxGI901Su7Kgn/cbsi1qRJwfjT6bMXPL4w6Q==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tGl0Y-0007DJ-EH for bug-gnu-emacs@gnu.org; Thu, 28 Nov 2024 15:21:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 Nov 2024 20:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74220 X-GNU-PR-Package: emacs X-Debbugs-Original-Cc: bug-gnu-emacs@gnu.org, gerd.moellmann@gmail.com, 74220@debbugs.gnu.org, ampinkas@gmail.com, stephen.berman@gmx.net, rpluim@gmail.com Original-Received: via spool by 74220-submit@debbugs.gnu.org id=B74220.173282524727674 (code B ref 74220); Thu, 28 Nov 2024 20:21:02 +0000 Original-Received: (at 74220) by debbugs.gnu.org; 28 Nov 2024 20:20:47 +0000 Original-Received: from localhost ([127.0.0.1]:39883 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tGl0J-0007CC-Cg for submit@debbugs.gnu.org; Thu, 28 Nov 2024 15:20:47 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56982) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tGl0H-0007Bq-Mn for 74220@debbugs.gnu.org; Thu, 28 Nov 2024 15:20:46 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tGl07-0004Ga-1D; Thu, 28 Nov 2024 15:20:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=iXtcljYIYj+Yf5h+1Wcj4x84mDJ6OVcnqGyA579E8aI=; b=mkR38jcjBpNUxNemljDC F7XZKvs+gagniOcdey2ya8dxEFHdKOIHSZud3SJY9tkwb6sCe59TUl0edLo4iyfTekF5HbecrCl3e EdUWfYQh/4phvX49JuvZJenBubO0x3KrDaXZYN5g7D82fr43VK0jOyPhKP/EhXadP3PRxP8V17JwD PC3943WT3nu16ISbnbkrVT6mkVYVC8keu77CD47RTeqO86aeVjv4msDPjDHX76ZedoWi8G1R3pTCJ N/Q5NXoewS4oAk1KCIr7mRxkRSw71yGcC9V1X6K9NH8KNUQJ+Kw2kXrjMesM2GeOZCVRkWdkdNF4s 7IQqefTeEuev/Q==; In-Reply-To: (message from Jared Finder on Thu, 28 Nov 2024 10:21:53 -0800) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:296068 Archived-At: > Date: Thu, 28 Nov 2024 10:21:53 -0800 > From: Jared Finder > Cc: "Jared Finder via \"Bug reports for GNU Emacs, the Swiss army knife of > text editors\"" , Robert Pluim , > Gerd Möllmann , Eli Zaretskii > , 74220 <74220@debbugs.gnu.org>, Avraham Pinkas > > > 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"?)