Alexandre Pujol
de21ff07a6
build: move upstream overwrite to its own build tasks.
...
It allow us to controll when we want to do it and either or not it should be enabled.
2024-10-03 11:55:33 +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
c5505dee8b
fix(build): abi 4 to abi 3 conversion.
2024-10-02 19:24:12 +01:00
Alexandre Pujol
8ddaa136ba
fix(test): update unit test result to abi 4.
2024-10-02 16:50:54 +01:00
Alexandre Pujol
344ccf3003
build: set default ABI to abi4.
2024-10-02 16:44:15 +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
a8c18f9b94
test(aa-log): update tests to the last changes.
2024-09-27 12:20:48 +01:00
Alexandre Pujol
00d6a664eb
feat(aa-log): improve logs cleaning and varible resolution.
2024-09-26 22:25:24 +01:00
Alexandre Pujol
83bc7d3ade
feat(aa-log): minor improvment in rule generation & formatting.
2024-09-26 22:15:46 +01:00
Alexandre Pujol
fbdf9cea64
build: support directive without argument.
2024-09-26 22:09:49 +01:00
Alexandre Pujol
05a489e021
build: improve internal directive tool.
2024-09-26 22:08:48 +01:00
Alexandre Pujol
6f5604d59d
build: cleanup base build interface.
2024-09-26 22:05:47 +01:00
Alexandre Pujol
bdac1adf8f
fix(aa-log): fix cleaning regex.
...
fix #495
2024-09-18 18:31:24 +01:00
Alexandre Pujol
7f594d51b5
feat(tunable): add the new @{arch} variable.
2024-09-10 18:49:33 +01:00
Alexandre Pujol
e4f963f30f
feat(aa-log): add some util functions.
2024-09-10 18:38:59 +01:00
Alexandre Pujol
f3094cc741
build: add the X option to the stack directive.
2024-09-10 18:13:48 +01:00
Alexandre Pujol
35dcde9d90
feat(tunable): add the new version variable.
2024-09-05 14:05:35 +01:00
Alexandre Pujol
4f4e373877
chore: make go vet happy.
2024-08-20 19:07:56 +01:00
Alexandre Pujol
960135e593
test(build): update userspace unit test.
2024-07-15 23:18:04 +01:00
Alexandre Pujol
9b2470462f
build: ensure @{exec_path} is present in profile att.
2024-07-15 23:04:35 +01:00
Alexandre Pujol
aa58062eb6
chore: correct misspelled english words
2024-07-05 16:00:54 +01:00
Alexandre Pujol
ee3322c463
feat(aa-log): full detection of pci path.
2024-07-04 22:25:09 +01:00
Alexandre Pujol
7c5ba70b40
feat(aa): add missing methods for the Link struct.
2024-06-29 22:52:31 +01:00
Alexandre Pujol
8377dde5d2
feat(aa): update templates to last struct changes.
2024-06-29 22:33:45 +01:00
Alexandre Pujol
4e1b972ee5
feat(aa): rewrite the rules Format method.
...
Automate padding regardless of rule kind.
2024-06-29 22:31:36 +01:00
Alexandre Pujol
0e0f87611a
feat(aa): add implementation of the new rule methods.
2024-06-29 22:27:39 +01:00
Alexandre Pujol
8b24f3521d
feat(aa): add new formatting methods to the rule interface.
2024-06-29 22:20:42 +01:00
Alexandre Pujol
d9bbdb77fa
feat(aa): rename: convert -> util.
2024-06-29 20:01:00 +01:00
Alexandre Pujol
191c72fcb6
chore(aa): minor cosmetic of the rule interface.
2024-06-27 18:45:32 +01:00
Alexandre Pujol
86b2f74a24
test(aa): refractor interface rule unit tests.
2024-06-27 11:39:36 +01:00
Alexandre Pujol
732134bd96
feat(aa): improve internal sorting order.
2024-06-25 20:11:24 +01:00
Alexandre Pujol
7c006dee0a
feat(aa): be more verbose on rule.Merge
2024-06-25 20:10:12 +01:00
Alexandre Pujol
880f0ef37e
refractor(aa): ensure methods order in rules definitions.
2024-06-25 19:56:36 +01:00
Alexandre Pujol
272072d2a5
refractor(aa): rename base struct from RuleBase to Base
2024-06-25 19:50:27 +01:00
Alexandre Pujol
228d3b653c
fix(aa): ineffective assignment
2024-06-23 10:57:46 +01:00
Alexandre Pujol
ff5ff965cd
test(aa): add merge unit tests.
2024-06-23 10:42:18 +01:00
Alexandre Pujol
6791dcde28
feat(aa): add merge methods to the rule interface.
2024-06-22 20:59:43 +01:00
Alexandre Pujol
42ca1be858
feat(aa): add the Merge method to the Rule interface.
2024-06-20 23:23:39 +01:00
Alexandre Pujol
d6424cb950
feat(aa): ensure comments are neither merged nor sorted.
2024-06-20 22:29:22 +01:00
Alexandre Pujol
fe983132cd
chore(aa): rename constructor function for consistency.
2024-06-20 16:34:49 +01:00
Alexandre Pujol
b0f6f15a9e
refractor: use internal Intersect function.
2024-06-19 23:55:45 +01:00
Alexandre Pujol
3b82cc36ba
feat(aa-log): only clean a few log keys, resolve more variables.
...
fix #382
2024-06-19 23:39:23 +01:00
Alexandre Pujol
7317c05646
feat(aa): update templates to last changes.
2024-06-19 23:31:22 +01:00
Alexandre Pujol
944f9575a0
feat(aa): rewrite rules formatting.
2024-06-19 23:30:36 +01:00
Alexandre Pujol
e91b0cc070
test(aa): add paragraph parser unit tests.
2024-06-19 23:26:19 +01:00
Alexandre Pujol
cd03640c10
feat(aa): update parse definition to last changes.
2024-06-19 23:24:43 +01:00
Alexandre Pujol
163c5be61c
feat(aa): add rule constructors from internal parser.
2024-06-19 23:22:49 +01:00
Alexandre Pujol
ac9d6d859f
feat(aa): add ParseRules: parse apparmor profile rules by paragraphs
2024-06-19 23:15:57 +01:00
Alexandre Pujol
cdab2588aa
refractor(aa): newRuleFromLog -> newBaseFromLog
2024-06-19 18:44:55 +01:00