-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
python3: handle.c:336: semanage_connect: Assertion `sh != NULL' failed. #148
Comments
Hi, thank you for reporting the issue. |
I have checked content of |
OK, just tested that udica shows some variation of |
Coredump file is corrected. I did run udica with root user already. |
Can you please share details of the pod you use to run udica? By default SELinux appears disabled inside a container (unless /sys/fs/selinux is mounted as rw), which would block udica from accessing system policy. |
When trying to generate the Selinux profile the application crashes with the following error:
[user]# udica -j container.json my_container error parsing semanage configuration file: syntax error python3: handle.c:336: semanage_connect: Assertion
sh != NULL' failed.Aborted (core dumped)`
I figured it out this happens when I have this mount dir in my container container, specifically the hostPath:
{ "containerPath": "/sys/devices", "gidMappings": [], "hostPath": "/sys/devices", "propagation": "PROPAGATION_PRIVATE", "readonly": false, "selinuxRelabel": false, "uidMappings": [] },
If I change the hostPath to something else, or remove the whole mount point, The profile will be generated.
I run udica in a pod in openshift platform.
Attached core dump:
coredump_udica.tar.gz
The text was updated successfully, but these errors were encountered: