Conversation
f3c40a9 to
a29df1d
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #5601 +/- ##
==========================================
+ Coverage 19.52% 29.49% +9.96%
==========================================
Files 19 18 -1
Lines 3021 2417 -604
==========================================
+ Hits 590 713 +123
+ Misses 2310 1552 -758
- Partials 121 152 +31 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
a29df1d to
df69e4c
Compare
and at least for uncompressed |
/rerun red |
df69e4c to
f71f7f5
Compare
|
@christoph-zededa I suppose this version is fully compatible with the old one, right? |
I hope so, let me check... |
eriknordmark
left a comment
There was a problem hiding this comment.
Running tests (in parallel with @shjala checking the compatibility)
|
It seems that 4.x version introduced incompatible changes compared to 3.x, there are ABI changes, variable redefinition, etc. If you are jumping to 4.x, you should also update the stuff in the |
|
In addition, there are some features that are only available on kernel 6.8+, I doubt we are using any of those features (specifically for network related policies), but one particular thing is switching from SHA1 to SHA256 for policy hashing which might cause issues? I'm not sure. Our kernel on all platforms except amd64 is < 6.8. So I think moving to 4.x needs comprehensive testing. |
to make it compileable under newer alpine versions Signed-off-by: Christoph Ostarek <christoph@zededa.com>
f71f7f5 to
2b90c31
Compare
I added a test to check that the profiles are being parsed correctly |
@shjala Where do you see the incompatible changes? I can only find the following in the document: "newer AppArmor 4 style policy which introduces several new features that are not backwards compatible". |
Content of "pkg/apparmor/etc" are copied from Apparmor official reposiory located at https://gitlab.com/apparmor/apparmor. Signed-off-by: Christoph Ostarek <christoph@zededa.com>
I added it here: 13da290 |
Surely we are not using any ABI 4.0 features, but if we start using? see Feature Matrix , I also don't know if these affect us in the current state or not (just by including some newer tunables on older kernels for example). |
|
OK, the page says "policy can be downgraded to work on kernels that do not support." if this happens on the fly, we might have no problem on older kernels. |
I understand https://gitlab.com/apparmor/apparmor/-/wikis/Release_Notes_4.0-alpha4#feature-matrix as that these 4.x features of apparmor do not work with apparmor 3.x. I also found https://apparmor.net/news/release-4.0.2/ and it seems that kernel > 2.6.15 is good for apparmor 4.x. |
Description
pkg/apparmor: bump to v4.1.3
to make it compileable under newer alpine versions
How to test and validate this PR
Check that the apparmor profiles still work correctly; these are:
Changelog notes
Update apparmor
PR Backports
For all current LTS branches, please state explicitly if this PR should be
backported or not. This section is used by our scripts to track the backports,
so, please, do not omit it.
Here is the list of current LTS branches (it should be always up to date):
Also, to the PRs that should be backported into any stable branch, please
add a label
stable.Checklist
And the last but not least:
check them.
Please, check the boxes above after submitting the PR in interactive mode.