Commit Graph

87 Commits

Author SHA1 Message Date
Alexandre Pujol
897302bc5b
chore(profile): remove trailing whitespace in profiles (2). 2024-10-22 20:07:11 +01:00
Alexandre Pujol
38b973c596
chore(profile): remove trailing whitespace in profiles.
Some checks are pending
Ubuntu / build (default, ubuntu-22.04) (push) Waiting to run
Ubuntu / build (default, ubuntu-24.04) (push) Waiting to run
Ubuntu / build (full-system-policy, ubuntu-22.04) (push) Waiting to run
Ubuntu / build (full-system-policy, ubuntu-24.04) (push) Waiting to run
Ubuntu / tests (push) Blocked by required conditions
2024-10-22 20:03:24 +01:00
Alexandre Pujol
d7521b36df
test: improve gpgconf tests.
Some checks are pending
Ubuntu / build (default, ubuntu-22.04) (push) Waiting to run
Ubuntu / build (default, ubuntu-24.04) (push) Waiting to run
Ubuntu / build (full-system-policy, ubuntu-22.04) (push) Waiting to run
Ubuntu / build (full-system-policy, ubuntu-24.04) (push) Waiting to run
Ubuntu / tests (push) Blocked by required conditions
2024-10-22 00:53:50 +01:00
Alexandre Pujol
cca8e6508f
fix(profile): apply some fix raised by the test suite. 2024-10-22 00:37:50 +01:00
Alexandre Pujol
21dcda26bb
tests(integration): add more test cases (2). 2024-10-21 23:36:51 +01:00
Alexandre Pujol
f14fef10c2
tests(integration): add more test cases. 2024-10-21 22:16:08 +01:00
Alexandre Pujol
061f5aa95e
test: add initial structure for the common integration tests.
- Add bats common helpers.
- Add a first set of tests for some simple program.
2024-10-21 19:07:47 +01:00
Alexandre Pujol
d6d4648106
tests(bats): minor improvement to test generation. 2024-10-21 14:13:25 +01:00
Alexandre Pujol
c59086311b
tests: rewrite the way to generate integration tests. 2024-10-19 22:50:09 +01:00
Alexandre Pujol
d406596124
tests: small fixes on builders scripts. 2024-10-16 23:58:48 +01:00
Alexandre Pujol
d793858d26
tests(check): also checks indentation. 2024-10-16 23:38:04 +01:00
Alexandre Pujol
3a6844c8ce
tests(check): also checks files header. 2024-10-15 16:18:53 +01:00
Alexandre Pujol
75f2c0c7b8
tests: ensure vim syntax and abi are set on all profile/abs. 2024-10-09 22:26:11 +01:00
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