Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check for when file_contexts.subs_dist means a label will never apply #23

Open
dburgener opened this issue Feb 5, 2020 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@dburgener
Copy link
Member

For example if file_contexts.subs_dists contains:

/var/run /run

Then a label like:

/run/user gen_context(system_u:object_r:type_t, s0)

Will never be able to apply, because that path will be substituted out to /var/run during labeling.

This can potentially reveal cases where the file may be mislabeled because the alternative path is not present in file_contexts. (And, perhaps it would make sense to only warn in such a case)

@dburgener dburgener added the enhancement New feature or request label Feb 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant