-
Notifications
You must be signed in to change notification settings - Fork 106
Open
Description
-
podmansh(1)
mentionslabel=user:container_user_u
which is defined in this policy. This repository shipscontainer_u
file to assign correct context during login - it should followseuser_id
so the right file should becontainer_user_u
and it's probably not necessary at all unless it's expected thatcontainer_user_u
would be used for users who log in. -
In order to make
container_user_u
available for this use case, it's necessary to runsemanage user -a -r s0-s0:c0.c1023 -R "container_user_r" container_user_u
or use gen_user() macro -
there are few missing rules to make it work with
unconfined_t
:
(roleallow unconfined_r container_user_r)
(allow container_runtime_t container_user_t ( process ( transition )))
(allow container_runtime_t container_user_t ( process2 ( nnp_transition )))
(allow container_user_t container_file_t ( chr_file ( ioctl read write )))
(allow container_user_t container_file_t ( file ( entrypoint )))
(allow container_user_t container_runtime_t ( fifo_file ( write )))
Metadata
Metadata
Assignees
Labels
No labels