9 Commits

Author SHA1 Message Date
Ankush Pathak
da5880bf86 feat(apparmor): Add 6.8 kernel apparmor features' preseed
Failing CPC tests show that preseeded apparmor features for the 6.8
kernel are missing. This change adds the required preseeds.
(LP: #2074204)
2024-07-26 19:55:25 +05:30
Ankush Pathak
9b088d458f feat(apparmor): Add policy:unconfined_restrictions feature to 6.5 kernel
Failing CPC tests show that the preseeded apparmor features don't
include policy:unconfined_restrictions for the 6.5 kernel. This change
adds the feature preseed.
Fixes LP: #2062929
2024-04-19 15:48:23 -05:00
Jess Jang
ba397a0e02 fix: Missing apparmor feature for generic kernel (LP: #2052789)
ipc has been added to apparmor feature in generic (5.15)
kernel and this feature should be seeded during image
build[0].

[0] https://bugs.launchpad.net/ubuntu/+source/livecd-rootfs/+bug/2052789

(cherry picked from commit 4833221e4b5b3af1e76e6cd8818ef85565358ade)
2024-02-21 11:34:28 +00:00
John Chittum
025a8a6de6
fix: Add 6.5 kernel apparmor feats
lp: #2037567. starting in kernel 6.5.0.1006, there's been an update to
apparmor features. Creates the 6.5 kernel directory, fully populates
with feats checked from a machine running 6.5.0.1006 installed from
proposed (as of 20230927).

(cherry picked from commit 5427e5ad6c02b2d7c203cc6597aff5518d5b344c)
2023-10-19 07:06:45 -05:00
Utkarsh Gupta
9ff66d60d9 Merge remote-tracking branch 'jessica-youjeong/062223-jammy-snap-preseeding' into ubuntu/jammy
* jessica-youjeong/062223-jammy-snap-preseeding:
  fix: bind correct apparmor feature for validating snap seed
2023-08-19 03:24:28 +05:30
John Chittum
41df4f5c92
fix: 6.2 kernel missing feature
LP: 2031943

Same issue as affected 5.19. 6.2 apparmor featureset differs from 5.15.
Identified the same feature as 5.19, so copied over.

populated 6.2 with all of generic directory as well. Compatibility mode for
possible future change
2023-08-18 14:04:34 -05:00
Jess Jang
6b54faa6be fix: bind correct apparmor feature for validating snap seed
During Realtime kernel image build, there was an error during
validating snap seed which derivative images copied 5.19
apparmor feature and can't validate when Realtime kernel (5.15)
installed [0].

To prevent this, bind correct apparmor feature with kernel
version.

[0] https://bugs.launchpad.net/ubuntu/+source/livecd-rootfs/+bug/2024639
2023-08-02 22:37:22 -05:00
John Chittum
e1fca53deb
feat: add 5.19 kernel apparmor features
the 5.19 kernel added ipc posix_mqueue apparmor features. the generic
set of apparmor features for the 5.15 LTS jammy kernel does not have
this feature. Along with the commit "support kernel with different
apparmor feats", this ensures that the HWE kernel for 5.19 has a
matching set.

note that on the next HWE roll, another directory will need to be added.
For each new HWE kernel roll, checking capabilities, creating the
directory, and adding the correct features will be required.
2023-04-07 09:36:30 -05:00
Dimitri John Ledkov
37be000f39
apparmor: Add generic v5.4 kernel apparmor features 2020-07-17 23:42:53 +01:00