Allow rpmdb_migrate execute rpmdb #1670
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There is a chain of commands executed in the rpmdb-migrate service. A command running in the rpmdb_t context need to execute another one in the same context.
The commit addresses the following AVC denial:
type=AVC msg=audit(1682710462.695:1049): avc: denied { execute_no_trans } for pid=361861 comm="rpm" path="/usr/bin/rpmdb" dev="dm-1" ino=1998503 scontext=unconfined_u:unconfined_r:rpmdb_t:s0-s0:c0.c1023 tcontext=system_u:object_r:rpmdb_exec_t:s0 tclass=file permissive=0
Resolves: rhbz#2191724