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
Udica doesn't add permissions "setattr, rmdir" for dir class and
permissions "rename, setattr, unlink" for file class, for generated
rules when the block(template) is not defined. This cause
troubles when whole dirs are bind-mounted to the container space like "/var/lib/mysql".
Commit adding missing permissions to both classes and listing all
classes in alphabetical order.
"Basic" part of tests was regenerated due to the change
Add testing JSON files generated by podman and docker. Add expected
output cil policies. Add tests that run udica on testing JSON files and
compare the result with cil policies.
The tests should be run inside the 'tests' directory using unittest:
# python3 -m unittest
The tests are intended to be run on Fedora machine as root. Tested on
Fedora 29.