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

Add support for rpm --verify #270

Open
cjeanner opened this issue Sep 19, 2023 · 3 comments
Open

Add support for rpm --verify #270

cjeanner opened this issue Sep 19, 2023 · 3 comments

Comments

@cjeanner
Copy link

Hello,

This is a clone of a bugzilla and subsequent (public) jira.

It may happen the package doesn't properly install due to some post-install script failures. rpm doesn't report it and exits with a "success", while it's actually a failure.
In order to detect that, we have to manually check for a set of boolean and other things in a subsequent step.

We faced the same issue in openstack-selinux, and I added there proper support for rpm --verify that will loop on the installed modules/policies and ensure things are in place[1] (note there are some follow-ups - mostly non-root and permissive support).

We of course may be able to loop on the selected booleans and other content, but IMHO this should be an internal of the package, since the maintainers know best what to check for.

Note that the "--verify" is to be called after the package is installed, meaning it will not be affected by the fact most of the install is done in a "post-install" script.

Thank you for your support!

Cheers,

C.

[1] redhat-openstack/openstack-selinux#93

@rhatdan
Copy link
Member

rhatdan commented Sep 19, 2023

Interested in opening a PR for this?

@cjeanner
Copy link
Author

Once I'm out of my current hell of CI, maybe. I can try to find a moment for that - shouldn't be too hard hopefully (though I don't really know the code in here - if you have any pointers so that I can move faster... :) )

@lsm5
Copy link
Member

lsm5 commented Sep 6, 2024

@cjeanner ping, are you still keen on adding this here?

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