Limiting access to a file to only one or two known processes through SELinux #487
Unanswered
MihaMarkic
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Running Fedora workstation and targeted SELinux policy.
I have a file and I want to limit access to it only to two processes, let's say first one is
app. Others should be denied access.I’ve tried
sepolice generate --application /PATH/TO/APPthen added inapp.tethis file type:and run
sudo ./app.shto apply generated policy. Then I appliedapp_var_ttype to file in question.But I see two problems here:
app_var_tis readable from unconfined processes. (accordingly because I’ve used files_type function)app_tdomain is applied to the application that should be able to read the file, when app started its process showsunconfined_tdomain.Any idea how can I create proper policy?
TIA
Beta Was this translation helpful? Give feedback.
All reactions