public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
* [PATCH] SELinux: Dontaudit access to dri devices
@ 2026-03-30 11:05 Johannes Segitz
  2026-03-30 15:15 ` Stefano Brivio
  0 siblings, 1 reply; 9+ messages in thread
From: Johannes Segitz @ 2026-03-30 11:05 UTC (permalink / raw)
  To: passt-dev; +Cc: Johannes Segitz

Currently podman can pass a FD to a DRI device to pasta, leading to AVCs
like this:
avc:  denied  { read write }
comm="pasta" path="/dev/dri/renderD128"
scontext=unconfined_u:unconfined_r:pasta_t:s0-s0:c0.c1023
tcontext=system_u:object_r:dri_device_t:s0
tclass=chr_file
These are harmless, so dontaudit them

Signed-off-by: Johannes Segitz <jsegitz@suse.de>
---
 contrib/selinux/pasta.te | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/contrib/selinux/pasta.te b/contrib/selinux/pasta.te
index fb51416..4bc7dcc 100644
--- a/contrib/selinux/pasta.te
+++ b/contrib/selinux/pasta.te
@@ -262,3 +262,5 @@ if (pasta_bind_all_ports) {
 	allow pasta_t port_type:tcp_socket { accept getopt name_bind name_connect };
 	allow pasta_t port_type:udp_socket { accept getopt name_bind };
 }
+
+dev_dontaudit_rw_dri(pasta_t)
-- 
2.53.0


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2026-04-02 14:07 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-03-30 11:05 [PATCH] SELinux: Dontaudit access to dri devices Johannes Segitz
2026-03-30 15:15 ` Stefano Brivio
2026-03-31  7:00   ` Johannes Segitz
2026-03-31 19:47     ` Stefano Brivio
2026-04-01 12:12       ` Johannes Segitz
2026-04-02 12:24       ` Paul Holzinger
2026-04-02 13:36         ` Paul Holzinger
2026-04-02 13:46         ` Stefano Brivio
2026-04-02 14:07           ` Johannes Segitz

Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).