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

Improve the apparmor read-write file permissions to allow any file in a directory if already two files are allowed #2572

Merged
merged 3 commits into from
Nov 19, 2024

Conversation

ccojocar
Copy link
Contributor

What type of PR is this?

/kind bug

What this PR does / why we need it:

It improves the apparmor read-write file permissions to allow any files if at least two files are allowed. There
are binaries like nginx which typically creates files with random name on every start in the /etc/nginx/conf.d/ directory. The random named files cannot be captured in advance and allowed in the apparmor profile, therefore any file needs to be allowed.

Which issue(s) this PR fixes:

Does this PR have test?

Yes

Special notes for your reviewer:

Does this PR introduce a user-facing change?

NONE

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. kind/bug Categorizes issue or PR as related to a bug. approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Nov 19, 2024
@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Nov 19, 2024
@ccojocar ccojocar requested review from saschagrunert and removed request for JAORMX and Vincent056 November 19, 2024 09:37
@saschagrunert
Copy link
Member

@ccojocar do you mind a rebase?

Change-Id: I6fe2e9669c8f6c58f141aa77be3626581c5c07ce
Signed-off-by: Cosmin Cojocar <[email protected]>
…ead-write premissions

Change-Id: Id5799bc8897d3579bf7518d54ef243510b9ba361
Signed-off-by: Cosmin Cojocar <[email protected]>
Change-Id: I3dc2bcc46ba2e416888bb7b53e6fc13ad6b060f6
Signed-off-by: Cosmin Cojocar <[email protected]>
@ccojocar
Copy link
Contributor Author

do you mind a rebase?

Thanks, done it!

@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 78.94737% with 8 lines in your changes missing coverage. Please review.

Project coverage is 41.33%. Comparing base (11d77f4) to head (051fe5e).
Report is 489 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2572      +/-   ##
==========================================
- Coverage   45.50%   41.33%   -4.17%     
==========================================
  Files          79      109      +30     
  Lines        7782    18256   +10474     
==========================================
+ Hits         3541     7547    +4006     
- Misses       4099    10211    +6112     
- Partials      142      498     +356     
---- 🚨 Try these New Features:

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 19, 2024
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ccojocar, saschagrunert

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [ccojocar,saschagrunert]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit e161918 into main Nov 19, 2024
28 checks passed
@k8s-ci-robot k8s-ci-robot deleted the improve-filepath-apparmor branch November 19, 2024 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/bug Categorizes issue or PR as related to a bug. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants