# SELinux policy on /tmp/pritunl\_

**URL:** <https://forum.pritunl.com/t/selinux-policy-on-tmp-pritunl/1734>\
**Category:** Pritunl VPN\
**Created:** [January 24, 2024, 8:08pm UTC](https://forum.pritunl.com/t/selinux-policy-on-tmp-pritunl/1734 "2024-01-24T20:08:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![andy](https://forum.pritunl.com/letter_avatar_proxy/v4/letter/a/aeb1de/32.png) [@andy](https://forum.pritunl.com/u/andy)\
**Post date:** [January 24, 2024, 8:08pm UTC](https://forum.pritunl.com/t/selinux-policy-on-tmp-pritunl/1734/1 "2024-01-24T20:08:03Z")

</div>

We’re running Pritunl on Oracle Linux 8. Our host IDS (wazuh) throwing an alarm for the pritunl directory in /tmp. It looks like it has something to do with an SELinux policy.

Here’s what we’re getting from the IDS:  
`Anomaly detected in file '/tmp/pritunl_7d884ce22aad4b2bbb2c1ae1cc1b7a93'. Hidden from stats, but showing up on readdir. Possible kernel level rootkit.`

when I list /tmp with `sudo ls -l /tmp` I get this:

```auto
ls: cannot access '/tmp/pritunl_7d884ce22aad4b2bbb2c1ae1cc1b7a93': Permission denied
total 4
d?????????? ? ? ? ? ? pritunl_7d884ce22aad4b2bbb2c1ae1cc1b7a93

```

Is there any modification I can make to an SELinux policy to squash the IDS alarm while keeping things secure?

---

<div class="post-metadata">

**Author:** ![zach](https://forum.pritunl.com/user_avatar/forum.pritunl.com/zach/32/1105_2.png) [@zach](https://forum.pritunl.com/u/zach)\
**Post date:** [January 30, 2024, 4:47pm UTC](https://forum.pritunl.com/t/selinux-policy-on-tmp-pritunl/1734/2 "2024-01-30T16:47:22Z")

</div>

You would need to disable SElinux. Pritunl modifies the tmp files SElinux context to block access from any other process, this protects the keys stored in this directory.

---

<div class="post-metadata">

**Author:** ![andy](https://forum.pritunl.com/letter_avatar_proxy/v4/letter/a/aeb1de/32.png) [@andy](https://forum.pritunl.com/u/andy)\
**Post date:** [January 30, 2024, 6:34pm UTC](https://forum.pritunl.com/t/selinux-policy-on-tmp-pritunl/1734/3 "2024-01-30T18:34:21Z")

</div>

I’d like to avoid disabling SELinux.

What are the keys that are stored in /tmp used for? Can I configure a different directory to be used?

---

<div class="post-metadata">

**Author:** ![zach](https://forum.pritunl.com/user_avatar/forum.pritunl.com/zach/32/1105_2.png) [@zach](https://forum.pritunl.com/u/zach)\
**Post date:** [January 30, 2024, 7:29pm UTC](https://forum.pritunl.com/t/selinux-policy-on-tmp-pritunl/1734/4 "2024-01-30T19:29:49Z")

</div>

There is an option in the configuration file to change the directory but this would likely prevent the Pritunl process from access the files.
