Skip to content

Conversation

@arc9693
Copy link

@arc9693 arc9693 commented Apr 19, 2024

This patch adds support for the cc-azurefile-csi driver to the genpolicy.

Merge Checklist
  • Followed patch format from upstream recommendation: https://github.com/kata-containers/community/blob/main/CONTRIBUTING.md#patch-format
    • Included a single commit in a given PR - at least unless there are related commits and each makes sense as a change on its own.
  • Aware about the PR to be merged using "create a merge commit" rather than "squash and merge" (or similar)
  • genPolicy only: Ensured the tool still builds on Windows
  • genPolicy only: Updated sample YAMLs' policy annotations, if applicable
  • The upstream-missing label (or upstream-not-needed) has been set on the PR.
Summary
Associated issues
Links to CVEs
Test Methodology

@arc9693 arc9693 requested review from a team as code owners April 19, 2024 11:47
@arc9693 arc9693 added the upstream/missing PRs that are yet to be upstreamed label Apr 19, 2024
Copy link

@danmihai1 danmihai1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a great start! Please add Policy rules for validating the SMB mount flags (e.g., execution not allowed, etc.)

@Redent0r
Copy link

Redent0r commented Apr 23, 2024

Verified it build on Windows and started test run https://dev.azure.com/mariner-org/mariner/_build/results?buildId=556262&view=results

Edit: started new run after updating samples: https://dev.azure.com/mariner-org/mariner/_build/results?buildId=556371&view=results

Copy link

@sprt sprt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link

@sprt sprt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would squash commits 1 and 2 but LGTM!

print("allow_storage_options 4: start")

p_storage.driver == "smb"
count(p_storage.options) == 0
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this not redundant assuming we trust genpolicy?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree we don't need to check the count of policy arrays.

@danmihai1 danmihai1 self-requested a review April 23, 2024 19:47
print("allow_storage_options 4: start")

p_storage.driver == "smb"
count(p_storage.options) == 0

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree we don't need to check the count of policy arrays.

@arc9693 arc9693 force-pushed the archana1/azurefile-genpolicy branch 2 times, most recently from 141f180 to 3c303a3 Compare April 24, 2024 11:22
arc9693 added 2 commits April 24, 2024 11:35
This patch adds support for the cc-azurefile-csi driver to the genpolicy.

Signed-off-by: Archana Choudhary <[email protected]>
This patch updates policy samples, required after adding support for
cc-azurefile-csi driver in genpolicy.

Signed-off-by: Archana Choudhary <[email protected]>
@arc9693 arc9693 force-pushed the archana1/azurefile-genpolicy branch from 14c07ee to b5d68be Compare April 24, 2024 11:38
@arc9693
Copy link
Author

arc9693 commented Apr 24, 2024

@sprt sprt merged commit 3d38906 into msft-main Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

upstream/missing PRs that are yet to be upstreamed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants