Merged
Conversation
8b4a371 to
2ab1a8b
Compare
Verify that a query's platform matches the provided policy's platform. Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
…ies. Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
Make alphabetical order. Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
It simplifies the printing of the range. Change to hex output where relevant. Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
2ab1a8b to
ab9ea42
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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]