SELinux and julia

Hi there, I am building on top of the julia docker and am running the build inside a kubernetes which has SELinux enabled.

I am getting the following error during build

 > [10/18] RUN <<'EOT' (#!/usr/bin/env julia...):                                                                                                                            
0.134 ERROR: Unable to load dependent library /usr/local/julia/bin/../lib/julia/libopenlibm.so
0.134 Message:/usr/local/julia/bin/../lib/julia/libopenlibm.so: cannot enable executable stack as shared object requires: Permission denied

Has someone seen this already? Is julia itself incompatible with SELinux?

Note: if I build the docker locally on my laptop, same architecture, it actually works and the julia runs. I am super confused.

it looks like this appeared when enabling MountShared=“flags” on the containerd config for runc

I guess I haven’t understood this config correctly. Taking it out again let’s julia run without problems

3 Likes