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

[RFE] Ability to set selinux equivalencies #47

Open
Klaas- opened this issue Feb 28, 2020 · 2 comments
Open

[RFE] Ability to set selinux equivalencies #47

Klaas- opened this issue Feb 28, 2020 · 2 comments

Comments

@Klaas-
Copy link

Klaas- commented Feb 28, 2020

Hi,
I would like to be able to set fcontext equivalencies.
From semanage-fcontext manpage:

       -e EQUAL, --equal EQUAL
              Substitute  target  path  with sourcepath when generating default label. This is used with fcontext. Requires source and target path arguments. The context labeling for the target
              subtree is made equivalent to that defined for the source.

       Substitute /home1 with /home when setting file context
       # semanage fcontext -a -e /home /home1
@richm
Copy link
Contributor

richm commented Oct 17, 2024

@bachradsusi the sefcontext module supports this: https://docs.ansible.com/ansible/latest/collections/community/general/sefcontext_module.html#parameter-substitute - is this something which would be desirable?

@bachradsusi
Copy link
Member

Not sure if desirable but it should be easy to implement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants