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/APP
then added inapp.te
this file type:and run
sudo ./app.sh
to apply generated policy. Then I appliedapp_var_t
type to file in question.But I see two problems here:
app_var_t
is readable from unconfined processes. (accordingly because I’ve used files_type function)app_t
domain is applied to the application that should be able to read the file, when app started its process showsunconfined_t
domain.Any idea how can I create proper policy?
TIA
Beta Was this translation helpful? Give feedback.
All reactions