# SELinux accessing home directory issue

**URL:** <https://discourse.openondemand.org/t/selinux-accessing-home-directory-issue/3664>\
**Category:** Get Help\
**Created:** [July 31, 2024, 6:55am UTC](https://discourse.openondemand.org/t/selinux-accessing-home-directory-issue/3664 "2024-07-31T06:55:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hsmallbone](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/hsmallbone/32/2350_2.png) [@hsmallbone](https://discourse.openondemand.org/u/hsmallbone)\
**Post date:** [July 31, 2024, 6:55am UTC](https://discourse.openondemand.org/t/selinux-accessing-home-directory-issue/3664/1 "2024-07-31T06:55:59Z")

</div>

I am running ondemand on RHEL 9 - both compute and web nodes are the same and the user’s home has been moved to /project/home  
I am getting issues with PUN not being able to manipulate the symlink for app development  
Here is the .te (uploaded as txt) and error

type=AVC msg=audit(1722408599.071:213): avc: denied { getattr } for pid=4461 comm=“utils.rb:110” path=“/project/home//ondemand/dev/stata/.git/tSbifaM” dev=“sdb1” ino=4368391445 scontext=system\_u:system\_r:ood\_pun\_t:s0 tcontext=system\_u:object\_r:user\_home\_dir\_t:s0 tclass=lnk\_file permissive=0

[ood.txt](https://discourse.openondemand.org/uploads/short-url/yJ4GgbO01lSC5j6GRfmqK3RoNl5.txt) (988 Bytes)

---

<div class="post-metadata">

**Author:** ![hsmallbone](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/hsmallbone/32/2350_2.png) [@hsmallbone](https://discourse.openondemand.org/u/hsmallbone)\
**Post date:** [August 5, 2024, 5:10am UTC](https://discourse.openondemand.org/t/selinux-accessing-home-directory-issue/3664/2 "2024-08-05T05:10:10Z")

</div>

This is now a blocking issue for me as otherwise I have to disable SElinux

---

<div class="post-metadata">

**Author:** ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)\
**Post date:** [August 5, 2024, 1:39pm UTC](https://discourse.openondemand.org/t/selinux-accessing-home-directory-issue/3664/3 "2024-08-05T13:39:52Z")

</div>

Hi sorry for the delay. The selinux module is mostly community driven in that we get a lot of patches from the community such as this.

We can submit your patch shortly.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/osc/original/2X/b/bae70bd0ed39a3ae769c2108155f4cb3e9da8385.png) [@system](https://discourse.openondemand.org/u/system)\
**Post date:** [February 1, 2025, 1:40pm UTC](https://discourse.openondemand.org/t/selinux-accessing-home-directory-issue/3664/4 "2025-02-01T13:40:24Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
