Commit graph

74 commits

Author SHA1 Message Date
Alexandre Pujol
146bda8f45
test(packer): as base image for the cosmic DE. 2024-10-07 21:41:44 +01:00
Alexandre Pujol
4f861158cf
build: unify locally build package output directory. 2024-10-07 14:05:40 +01:00
Alexandre Pujol
31af758639
fix(test): packer hcl & uefi path 2024-10-07 12:16:42 +01:00
Alexandre Pujol
03b777340d
tests(packer): update & cleanup tests images. 2024-10-06 22:01:39 +01:00
Alexandre Pujol
36f620dab1
tests: add 'make check' for common issues in Apparmor profiles. 2024-10-06 15:39:21 +01:00
Alexandre Pujol
14a5d8deae
fix(aa-log): ensure we also split quote in log value
fix #229
2024-10-02 21:06:45 +01:00
Alexandre Pujol
3f98e86e24
fix(aa-log): too much cleaning in pci path.
see #505
2024-10-02 20:48:36 +01:00
Alexandre Pujol
59ac54e2fc
build: reorganise build: abi4, fallback, prebuild cli
- ABI4 by default, fallback to abi 3.
- aa-prebuild cli that can be used by other project shipping profiles.
- --file option to cli to only build one dev profile.
- add abi version filter to only & exclude directives.
2024-10-02 16:22:46 +01:00
Alexandre Pujol
08a6f8fb0b
tests(packer): enable apparmor debug in tests image. 2024-10-01 17:49:43 +01:00
Alexandre Pujol
e1f665aec1
fix(go): updated function name. 2024-09-26 22:53:02 +01:00
Alexandre Pujol
4f4e373877
chore: make go vet happy. 2024-08-20 19:07:56 +01:00
Alexandre Pujol
018073638b
test(aa): add testdata full.aa 2024-06-19 23:34:51 +01:00
Alexandre Pujol
4282fb336e
refractor(aa): move some test resource to the testdata dir. 2024-05-30 20:10:45 +01:00
Alexandre Pujol
89abbae6bd
Merge branch 'feat/aa'
Improve go apparmor lib.

* aa: (62 commits)
  feat(aa): handle appending value to defined variables.
  chore(aa): cosmetic.
  fix: userspace prebuild test.
  chore: cleanup unit test.
  feat(aa): improve log conversion.
  feat(aa): move conversion function to its own file & add unit tests.
  fix: go linter issue & not defined variables.
  tests(aa): improve aa unit tests.
  tests(aa): improve rules unit tests.
  feat(aa): ensure the prebuild jobs are working.
  feat(aa): add more unit tests.
  chore(aa): cleanup.
  feat(aa): Move sort, merge and format methods to the rules interface.
  feat(aa): add the hat template.
  feat(aa): add the Kind struct to manage aa rules.
  feat(aa): cleanup rules methods.
  feat(aa): add function to resolve include preamble.
  feat(aa): updaqte mount flags order.
  feat(aa): update default tunable selection.
  feat(aa): parse apparmor preamble files.
  ...
2024-05-30 19:29:34 +01:00
Alexandre Pujol
dc0e0084a0
feat(aa): add function to resolve include preamble. 2024-05-28 11:53:32 +01:00
Alexandre Pujol
00f6d88cb8
fix: add missings paths import. 2024-04-28 00:44:23 +01:00
Alexandre Pujol
0cd0262bed
chore: update go mod deps. 2024-04-28 00:04:42 +01:00
Alexandre Pujol
de73c9b706
test(aa): improve some internal unit test.
Thanks to the last changes...
2024-04-23 21:38:52 +01:00
Alexandre Pujol
c852fd3a01
refractor(test): move aa-test to tests/cmd/ 2024-03-26 18:13:56 +00:00
Alexandre Pujol
492c5a37dd
refractor: move integration code to the test directory. 2024-03-22 14:08:44 +00:00
Alexandre Pujol
1f3da81d5a
tests: fix pkg outpout directory. 2024-03-17 23:20:05 +00:00
Alexandre Pujol
c9b87efebe
chore: cosmetic. 2024-03-16 19:27:45 +00:00
Alexandre Pujol
a6d263d304
tests(packer): ensure vm images are built with the same cpu model than the host. 2024-03-15 14:56:57 +00:00
Alexandre Pujol
3fc4c29968
tests(packer): cleanup cloud init files. 2024-03-15 14:55:46 +00:00
Alexandre Pujol
bac9658293
test(packer): configure shared directory directly in the image.
This way, we do not always need to use vagrant to start a vm.
2024-03-08 13:13:00 +00:00
Alexandre Pujol
c707b730ef
test(packer): arch images - remove broken swap file. 2024-03-08 13:08:45 +00:00
Alexandre Pujol
14a4e143b0
test(packer): arch: support for plasma 6 image. 2024-03-08 13:07:21 +00:00
Alexandre Pujol
cefd372099
tests: support default value in vagrant boxes. 2024-02-24 14:11:59 +00:00
Alexandre Pujol
a1ce144e1c
tests: cleanup image cleanup script. 2024-02-24 14:10:30 +00:00
Alexandre Pujol
2cd14aa6bb
chore: add missing and update copyright year. 2024-02-07 00:16:21 +01:00
Alexandre Pujol
a3b1597364
chore: fix packer fmt. 2024-01-27 20:33:38 +00:00
Alexandre Pujol
8dfd58a335
test(packer): ensure aa-update remove old aa cache. 2024-01-27 19:35:28 +00:00
Alexandre Pujol
7c7e897d45
test(packer): add debian-kde & ubuntu 24.04 tests image. 2024-01-27 19:34:41 +00:00
Alexandre Pujol
c52f7f0b1f
test(packer): update aa-update script. 2023-12-05 20:49:16 +00:00
Alexandre Pujol
59442062c3
fix(ci): update reference profile. 2023-11-29 22:16:54 +00:00
Alexandre Pujol
157798e93c
tests(packer): improve debian vm. 2023-11-19 21:48:38 +00:00
Alexandre Pujol
d64ef39bd1
build: minor fixes. 2023-11-19 21:04:58 +00:00
Alexandre Pujol
3aa07e4d64
tests(packer): add arch-server and ubuntu 24.04 images. 2023-11-19 16:09:25 +00:00
Alexandre Pujol
aa84d08ef6
tests: improve tests image content. 2023-11-13 23:40:51 +00:00
Alexandre Pujol
5a3dface8e
tests: add debian-gnome vm image. 2023-11-13 18:56:15 +00:00
Alexandre Pujol
a4033f7950
fix(test): aa-log unit tests. 2023-10-01 19:12:27 +01:00
Alexandre Pujol
3372593fc2
test: minor test VM creatiom fixes 2023-10-01 16:02:18 +01:00
Alexandre Pujol
0068c1b9a3
test(aa-log): add some missing unit tests. 2023-09-30 15:36:01 +01:00
Alexandre Pujol
bd4e9bb135
chore: improve linter settings & better packer VM build. 2023-09-29 20:55:24 +01:00
Alexandre Pujol
09a06db803
feat(aa): add sub templates. 2023-09-29 20:28:56 +01:00
Alexandre Pujol
6f2ae26749
build: update debian backports repo. 2023-09-29 19:20:50 +01:00
Alexandre Pujol
6cbc076ba4
test(aa-log): add unit tests for profile printing. 2023-09-25 00:28:28 +01:00
Alexandre Pujol
a53f10e431
build: add linter options. 2023-09-19 18:35:24 +01:00
Alexandre Pujol
1d68b5bbc4
chore(tests): format packer files. 2023-09-15 21:56:28 +01:00
Alexandre Pujol
2a354452a9
test: simplify image build. 2023-09-10 12:24:47 +01:00