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

🌟 file.context on sshd #5178

Merged
merged 2 commits into from
Feb 7, 2025
Merged

🌟 file.context on sshd #5178

merged 2 commits into from
Feb 7, 2025

Conversation

arlimus
Copy link
Member

@arlimus arlimus commented Feb 7, 2025

remaining todos after this: fix printing of the range, fix extractor, and make a nice context extraction

> sshd.config.blocks { criteria context }
sshd.config.blocks: [
  0: {
    criteria: ""
    context: file.context file.path="/etc/ssh/sshdconfig" range=1-172
  }
  1: {
    criteria: "Group sftp-users"
    context: file.context file.path="/etc/ssh/sshdconfig" range=173-177
  }
  2: {
    criteria: "User myservice"
    context: file.context file.path="/etc/ssh/sshdconfig" range=178-181
  }
]

Signed-off-by: Dominik Richter <[email protected]>
Copy link
Contributor

github-actions bot commented Feb 7, 2025

Test Results

3 215 tests  +1   3 211 ✅ +1   1m 57s ⏱️ +2s
  385 suites ±0       4 💤 ±0 
   29 files   ±0       0 ❌ ±0 

Results for commit 92576ff. ± Comparison against base commit 332996e.

♻️ This comment has been updated with latest results.

Signed-off-by: Dominik Richter <[email protected]>
@arlimus arlimus merged commit 6b49960 into main Feb 7, 2025
17 checks passed
@arlimus arlimus deleted the dom/ctx branch February 7, 2025 15:59
@github-actions github-actions bot locked and limited conversation to collaborators Feb 7, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants