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

RFC: use semodule --checksum and priorities instead of datastore #40

Open
bachradsusi opened this issue May 3, 2022 · 1 comment
Open

Comments

@bachradsusi
Copy link
Contributor

I probably miss some piece of the puzzle but it looks like all datastore functionality could be implemented using semodule utility or libsemanage library. Bellow are shell snippets describing how it could work.

  • List()
    semodule -lfull | grep -E '^350

  • Put() is not necessagy, it's automatically covered by semodule -i ...

  • Get()

# semodule -lfull --checksum | grep -E '^350 ' | grep $policy
350 testpolicy           cil           sha256:0d682da9f705d4a44bad5151c59598f96a1839e10efe5f00b2bd16ba3c562676 

This works on Fedora 36, RHEL-8.6, and RHEL9 and later

  • Remove() - automatically covered by semodule -r ...
@bachradsusi
Copy link
Contributor Author

#81

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

1 participant