From nobody Tue Apr 9 11:51:04 2024 X-Original-To: x11@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VDPRs10Glz5GrBK for ; Tue, 9 Apr 2024 11:51:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VDPRr4Dn5z4rYk for ; Tue, 9 Apr 2024 11:51:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1712663464; a=rsa-sha256; cv=none; b=Zz2IkVi/IuvEPJJjtrs0MC80b9Zh6DGaUB/FYM1EO10fcr6Zpzp+Tm4poH7QodQMLdzJRq N7mqbFA2SIztNO+ZfeiFaaCiVaKO5ft7vFJNMJd+ciG2R9BBvCOEn+Pxz9ovkGHI6tFDcB t5Qe7SWHGo1eM6k34FgZ4umqVOk7TwUPzQemc7tcbUNNekLg5NgWg36tGrEwcyVTuQ/sv1 jvtBlbYFDZ7R9QH0W++2iBJ6PXVJ1A9NYlZTdQXHsF3ZLBuhlCQhnXwg/AnMYRavt2Oghj mttLNB2jY3MuOjEBKRN7yRclruAxAW9GJKF5n/1O1BFJ2eHe5GGueCBP00znSg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712663464; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dh2wyMwaCUg7sDmzCzl8s5Ognb7McfO4epSSgqA5g6k=; b=QAHHRS29QPkQOx2ZL9Qv72U/HPR9oa+1N345MrWudT7GndOYSrwg4BBFFZaEL/gQDIwTag MfDO4Ra8treI9/6uDQiHyh6Vg8vmOOehvibghBhEfi/4s405oul//l9/zDT3e9+VbH3MUs hSGRPLkgEPDsVyYB7EflEt6ixvVPQlUkjjq9skkdM6MPLi90bb8+A6AEbv/tPDmnFi1AHi +F7kjS1TzesG5sVVnTG3OeaqLDadJqEHVC8lBb7HMwlJFIVHdh1/OoFY58B+LRsHAcRo3p F/T4wdfZ7YmhyBRM5DYjA3PGMsNWos58CjqC4ey3jpVz/JhYSv2RbAib7T3WoA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VDPRr3s6Xzt9Y for ; Tue, 9 Apr 2024 11:51:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 439Bp4g4070106 for ; Tue, 9 Apr 2024 11:51:04 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 439Bp418070105 for x11@FreeBSD.org; Tue, 9 Apr 2024 11:51:04 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: x11@FreeBSD.org Subject: [Bug 278204] x11/xkeyboard-config: allow non-root to write into /var/lib/xkb Date: Tue, 09 Apr 2024 11:51:04 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: bapt@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: x11@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: X11 List-Archive: https://lists.freebsd.org/archives/freebsd-x11 List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-x11@freebsd.org X-BeenThere: freebsd-x11@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D278204 --- Comment #2 from Baptiste Daroussin --- reading at the code, Xwayland and Xorg-xserver both seems to rely on "Popen" xkbcomp. Which means only the xkbcomp program needs to be able to write into /var/lib/xkb Probably we can make the 775 root:video and make the xkbcomp binary setgid = with video as a group this is not great but still better than the current situation. This is if we really want xkbcomp to be able to write into /var/lib/xkb, we= can also advice the user to run xkbcomp as root for the rare cases when it is needed (when bringing a non provided xkb if my understanding is correct). FYI I checked on linux (ubuntu 20.04) Xorg is not setuid, /var/lib/xkb is 7= 55 root:root and Xorg is run as user, which means again if I am not missing something that they are not expecting xorg to be able to write anything in = that directory. My personal opinion is we should document how to manually run xkbcomp if actually needed and do not touch de mode for /var/lib/xkb --=20 You are receiving this mail because: You are the assignee for the bug.=