Commit graph

64 commits

Author SHA1 Message Date
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
Alexandre Pujol
105b2aea8c
tests(vagrant): support for integration test.
Do not share the  repository during  integration tests as the test are destructive.
2023-09-01 19:17:29 +01:00
Alexandre Pujol
2f33ff2602
tests(packer): add more software in the generated vm. 2023-09-01 19:16:04 +01:00
Alexandre Pujol
fcdb9079ee
refractor(tests): update packer structure. 2023-09-01 19:13:47 +01:00
Alexandre Pujol
98c701f33d
feat(aa-log): show target in log, show access as owner too. 2023-07-20 23:45:14 +01:00
Alexandre Pujol
cc3b76d7a4
test: add vm image for ubuntu-desktop. 2023-07-18 22:23:47 +01:00
Alexandre Pujol
3393d8f649
test: improve vm image generation 2023-07-18 22:22:08 +01:00
Alexandre Pujol
537e34739d
test: improve VM image creation. 2023-07-08 12:34:18 +01:00
Alexandre Pujol
c9c5db9b9a
tests: simplify test makefile. 2023-04-30 16:27:34 +01:00
Alexandre Pujol
9731a09588
test(packer): add image for opensuse & some cleanup. 2023-04-30 16:26:16 +01:00
Alexandre Pujol
46165fe58f
test(packer): add image for debian. 2023-04-30 16:21:27 +01:00