1
1
mirror of https://github.com/containers/udica synced 2026-03-14 19:55:45 +01:00
udica/tests/test_nocontext.podman.cil
Lukas Vrabec f436537ba8 Enable udica to generate policies with fifo class
Udica generates SELinux security allow rules only for files,dirs and
sockets. Following commit adds also FIFO files.

The change required also to modify existing unit tests.

Fixes: #85
2021-08-25 12:12:22 +02:00

9 lines
637 B
Plaintext

(block my_container
(blockinherit container)
(allow process process ( capability ( audit_write chown dac_override fowner fsetid kill mknod net_bind_service net_raw setfcap setgid setpcap setuid sys_chroot )))
(allow process user_tmp_t ( dir ( add_name create getattr ioctl lock open read remove_name rmdir search setattr write )))
(allow process user_tmp_t ( file ( append create getattr ioctl lock map open read rename setattr unlink write )))
(allow process user_tmp_t ( fifo_file ( getattr read write append ioctl lock open )))
(allow process user_tmp_t ( sock_file ( append getattr open read write )))
)