containers / udica

This repository contains a tool for generating SELinux security profiles for containers
GNU General Public License v3.0
488 stars 47 forks source link

parse error when try to create my_container profile from container.json #72

Closed HariAccuknox closed 4 years ago

HariAccuknox commented 4 years ago

Describe the bug When try to parse container.json to udica policy my_container, throws parsing error . The parser.py items() cannot parse the port list in container.json

Screenshot from 2020-09-13 19-54-38

Additional context PS: i ran the container without the port number, still error in parsing attributes

wrabcak commented 4 years ago

Hi, Can you please share the container.json file and version of the udica?

Thanks, Lukas.

Hariharan-AK79 commented 4 years ago

container.zip

udica in /usr/local/lib/python3.8/site-packages (0.2.2)

Hariharan-AK79 commented 4 years ago

Thanks for your swift response

regards Hari

wrabcak commented 4 years ago

Thanks, what about version of podman/docker container engine?

Hariharan-AK79 commented 4 years ago

Screenshot from 2020-09-14 17-50-38

wrabcak commented 4 years ago

Please update podman package to the latest stable version which is 2.0+ .

Hariharan-AK79 commented 4 years ago

Screenshot from 2020-09-14 22-01-45 @wrabcak it is working perfectly. Thank you so much for the effort

wrabcak commented 4 years ago

Based on previous comment closing this ticket.