1
1
mirror of https://github.com/containers/udica synced 2024-09-28 11:00:10 +02:00
Commit Graph

4 Commits

Author SHA1 Message Date
Vit Mojzis
d6e5a0d99a tests: Remove duplicate rules from test cil files
Signed-off-by: Vit Mojzis <vmojzis@redhat.com>
2022-06-22 11:41:10 +02:00
Vit Mojzis
aa2da32f11 Sort container inspect data
This should diminish differences between policies generated for the same
container (allow rules should be in the same order).

Fixes:  Two subsequent calls to Udica on the same container sometimes
        generate different policy files (functionally equivalent, but
        with different rule order). This issue makes it difficult to use
        udica for CI purposes.

        https://github.com/containers/udica/issues/84

Signed-off-by: Vit Mojzis <vmojzis@redhat.com>
2021-08-25 12:26:02 +02:00
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
Lukas Vrabec
a326a431bc Update test suite to align with podman 2.0.2
Tests for udica needs to be re-generated because of different JSON
structure generated by podman version 2.0.2
2020-08-03 18:18:38 +02:00