On Wed, 14 May 2025 04:44:11 -0600
Max Chernoff
Hi,
Currently, pasta runs in the container_runtime_exec_t context when running in a container. This commit updates the SELinux policy so that pasta instead runs in the pasta_t context.
I'm more familiar with CIL, so I initially developed the modified policy in CIL, and then later ported it to the kernel policy language. My original CIL source is available here:
https://github.com/gucci-on-fleek/maxchernoff.ca/blob/master/etc/selinux/loc...
I've tested this on Fedora 42 with rootless Podman, with both unconfined (unconfined_u) and confined (user_u) users, and with both TCP and UDP.
I've never actually used the email workflow for Git before, so please let me know if I've done something wrong.
Thanks a lot! Nothing wrong workflow-wise, I'll look at your patch in a bit. I have to admit I hadn't thought of using 'type_transition' directly in pasta's policy, as opposed to having that in selinux-container, but it actually makes sense and it's nice to have everything managed here. -- Stefano