# SELinux and julia

**URL:** https://discourse.julialang.org/t/selinux-and-julia/117420
**Category:** General Usage
**Tags:** question, docker
**Created:** [July 24, 2024, 2:55pm UTC](https://discourse.julialang.org/t/selinux-and-julia/117420 "2024-07-24T14:55:23Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![schlichtanders](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/schlichtanders/32/32145_2.png) [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)
#### Post date: [July 24, 2024, 2:55pm UTC](https://discourse.julialang.org/t/selinux-and-julia/117420/1 "2024-07-24T14:55:23Z")

</div>

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

```julia
 > [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.

---

<div class="post-metadata">

### Author: ![schlichtanders](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/schlichtanders/32/32145_2.png) [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)
#### Post date: [July 25, 2024, 11:41am UTC](https://discourse.julialang.org/t/selinux-and-julia/117420/2 "2024-07-25T11:41:39Z")

</div>

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
