From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: passt.top; dkim=pass (1024-bit key; unprotected) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=UgBpN9ej; dkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=k9PObqTG; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=UgBpN9ej; dkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=k9PObqTG; dkim-atps=neutral Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2a07:de40:b251:101:10:150:64:1]) by passt.top (Postfix) with ESMTPS id 019D15A0262 for ; Thu, 02 Apr 2026 16:07:43 +0200 (CEST) Received: from imap1.dmz-prg2.suse.org (unknown [10.150.64.97]) (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) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 94CB64D34A; Thu, 2 Apr 2026 14:07:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1775138860; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=A2rghkyYfrOc/HzCCv2k8wq4Gy2+S7Xd2SQsvP6GAEE=; b=UgBpN9ej618zJfz1zH7Jahjfvz7qVyZz+fksSlcZliawjgWessZq60cik4evb2q6nINWeB HYrlDPN3pETDqesBR06+hoKamcKk9TS62UWW+h3KqS7pdDcod0UgwEODliPUYuYuLFtDJQ ZiYbR+AgUZeINN4m7cIiiExKnnPfV1E= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1775138860; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=A2rghkyYfrOc/HzCCv2k8wq4Gy2+S7Xd2SQsvP6GAEE=; b=k9PObqTGQoZIrpNIFY/WOJIXh2gOvHGSW/lspAXDHRXEqZUIADE/is7PbTY4KbMnPiCiEs JT40LjmKRjdYVFBg== Authentication-Results: smtp-out1.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1775138860; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=A2rghkyYfrOc/HzCCv2k8wq4Gy2+S7Xd2SQsvP6GAEE=; b=UgBpN9ej618zJfz1zH7Jahjfvz7qVyZz+fksSlcZliawjgWessZq60cik4evb2q6nINWeB HYrlDPN3pETDqesBR06+hoKamcKk9TS62UWW+h3KqS7pdDcod0UgwEODliPUYuYuLFtDJQ ZiYbR+AgUZeINN4m7cIiiExKnnPfV1E= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1775138860; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=A2rghkyYfrOc/HzCCv2k8wq4Gy2+S7Xd2SQsvP6GAEE=; b=k9PObqTGQoZIrpNIFY/WOJIXh2gOvHGSW/lspAXDHRXEqZUIADE/is7PbTY4KbMnPiCiEs JT40LjmKRjdYVFBg== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (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) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 7B15E4A0B0; Thu, 2 Apr 2026 14:07:40 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id Z68MHSx4zmkzAwAAD6G6ig (envelope-from ); Thu, 02 Apr 2026 14:07:40 +0000 Date: Thu, 2 Apr 2026 16:07:31 +0200 From: Johannes Segitz To: Stefano Brivio Subject: Re: [PATCH] SELinux: Dontaudit access to dri devices Message-ID: References: <20260330110557.2569119-1-jsegitz@suse.de> <20260330171541.15a8b5d0@elisabeth> <20260331214758.227f3fac@elisabeth> <3b5af0d8-1f88-4190-b4ac-5bab780b2781@redhat.com> <20260402154612.3e034802@elisabeth> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="NV7RxSlOs5I6rkYh" Content-Disposition: inline In-Reply-To: <20260402154612.3e034802@elisabeth> X-Spam-Score: -6.40 X-Spam-Level: X-Spamd-Result: default: False [-6.40 / 50.00]; BAYES_HAM(-3.00)[100.00%]; SIGNED_PGP(-2.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; NEURAL_HAM_SHORT(-0.20)[-1.000]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; TO_DN_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MISSING_XM_UA(0.00)[]; FUZZY_RATELIMITED(0.00)[rspamd.com]; RCVD_TLS_ALL(0.00)[]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; FROM_EQ_ENVFROM(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; DBL_BLOCKED_OPENRESOLVER(0.00)[imap1.dmz-prg2.suse.org:helo,suse.com:mid] X-Spam-Flag: NO X-MailFrom: jsegitz@suse.de X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation Message-ID-Hash: PTK2YFNVWNBCVZWEUC7KOKRXZQ57XUQY X-Message-ID-Hash: PTK2YFNVWNBCVZWEUC7KOKRXZQ57XUQY X-Mailman-Approved-At: Thu, 02 Apr 2026 16:14:54 +0200 CC: Paul Holzinger , passt-dev@passt.top X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: --NV7RxSlOs5I6rkYh Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 02, 2026 at 03:46:13PM +0200, Stefano Brivio wrote: > On Thu, 2 Apr 2026 14:24:49 +0200 > Paul Holzinger wrote: >=20 > > On 31/03/2026 21:47, Stefano Brivio wrote: > > > > [...] > > > > > By the way I wonder if it's similar to this report: > > > > > > https://bugzilla.redhat.com/show_bug.cgi?id=3D2374197 > > > > > > which I never really tried to figure out. =20 > >=20 > > I described here I think:=20 > > https://bugzilla.redhat.com/show_bug.cgi?id=3D2374291#c10 >=20 > Gosh, I missed that, thanks. >=20 > I wonder how many of these other tickets (especially the ones in NEW) > around SELinux: >=20 > https://bugzilla.redhat.com/buglist.cgi?cmdtype=3Drunnamed&list_id=3D13= 663808&namedcmd=3Dpasst&sharer_id=3D410109 >=20 > might also be caused by that. We would need to triage them at some > point. >=20 > > There is never time to close fds earlier, it validates sometime during= =20 > > execve(). My guess because that is the point where it transitions into= =20 > > the pasta_t context so it checks all files against the new policy? >=20 > What's mildly interesting (and what tricked me here) is that in this > case we get { read write }, in some other cases we get "read" or > "append" access only... but I suppose that simply depends on how the > file was opened by the leaking process in the first place. >=20 > But I didn't really track this down in the SELinux hooks in the kernel, > so I'd still be a bit curious to see what happens if we close_range() > things right away. The first patch version didn't help, now asked the reporter to test the second version and also patched podman with the change Paul sent upstream. I unfortunately can't test it myself since it doesn't happen for me, but I hope to be able to provide the test packages to the reporter before I leave for easter and will report back next week then Johannes --=20 GPG Key EE16 6BCE AD56 E034 BFB3 3ADD 7BF7 29D5 E7C8 1FA0 Subkey fingerprint: 250F 43F5 F7CE 6F1E 9C59 4F95 BC27 DD9D 2CC4 FD66 SUSE Software Solutions Germany GmbH, Frankenstr. 146, 90461 N=FCrnberg, Ge= rmany Gesch=E4ftsf=FChrer: Jochen Jaser, Andrew McDonald, Werner Knoblich, (HRB 3= 6809, AG N=FCrnberg) --NV7RxSlOs5I6rkYh Content-Type: application/pgp-signature; name=signature.asc Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- iQJPBAEBCgA5FiEEJQ9D9ffObx6cWU+VvCfdnSzE/WYFAmnOeCMbFIAAAAAABAAO bWFudTIsMi41KzEuMTEsMiwyAAoJELwn3Z0sxP1mz4IQAIqsqJy0K3IsQS5tPowP m7DXWZ++UDHgskUV2UHaM3ggWyi40WSAMcV4UkNX1e+kbboBHBhxa9bUtZbxuFRK Blb92GBeyJWe2Vo76ynDfEwbz/NObpOxwaR4JOJMD/ID5x3Ks9smVEfsm2qUHEim 7fCM3WGjnOxKWJhFdbGD/Vmh6Wh0m3lBQ4INSJ2bm36RYBJOpF1ezt0biM395Q5T 9YetU7bbvhbCb/mJksVEjOtBTsqPTRph2gHjNT+jYh7ZGJva2canzMCSRABNozxe ExvdEAE0rXcTIEcOVQs1su+Jm03xerCW9pTkysobu+2Ul+o5tGRgJwNgx6rE7hnX uIUJAGpiZcr78ygXnDJBkJ6bUQll7aCDjoVMP3CbeHe+Yznp4+SgUGrqxVzsv4Pd DnfPONt+7julB3jpqwgY8yez6Kb/Qdp7NtpjbM90jUcy1ln6Y2cNSHMTUEF8Rtsf rowp3hmigvsYhqOz+83z3zeFlccN6ICAv+DyGLpTpBSlIyW5miJxPt7IhKhoK/RK BYMFBFSWHYTq4Ir82HuLm0cdlfGCHStn+eVv3KYWCxR38Wb9RDak5uE3yQvfGCwy y+kUEWN7XUZEslPlwyLnRB0ZJlnjinnzYiZIxyxPGpfXmlNSoB7K8xWx1V2W9jD0 +hSKZFjuVr1oGFBC1G+EW4v4 =twVv -----END PGP SIGNATURE----- --NV7RxSlOs5I6rkYh--