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.
SELinux and Xen query arguments are now defined in separate argument groups (
selinuxandxen), and the tool enforces that arguments from both groups cannot be combined in a single invocation. This ensures users do not mix incompatible queries. (seinfo, seinfoL91-R121)At runtime, the tool checks the loaded policy's platform (SELinux or Xen) and raises errors if queries from the wrong group are specified, preventing platform mismatches. (
seinfo, seinfoR146-R153)Each query class now declares a
required_platformattribute, specifying whether it is valid for SELinux or Xen policies. This helps prevent accidental misuse and improves code clarity. (setools/fsusequery.py, [1];setools/genfsconquery.py, [2];setools/ibpkeyconquery.py, [3];setools/ibendportconquery.py, [4];setools/initsidquery.py, [5];setools/devicetreeconquery.py, [6];setools/iomemconquery.py, [7]The GitHub Actions workflow is updated to test against Python 3.13 and to use the latest
actions/setup-python@v6, ensuring CI compatibility with newer Python versions. (.github/workflows/tests.yml, [1] [2]