Alexandre Pujol
16f30007e7
chore(aa): cosmetic.
2024-05-30 20:56:53 +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
bc216176a3
fix: go linter issue & not defined variables.
2024-05-30 12:28:12 +01:00
Alexandre Pujol
b636b4b3e9
feat(aa-log): improve the journalctl filter.
2024-05-03 13:01:10 +01:00
Alexandre Pujol
9c0f4dd6a7
fix(aa-log): grep journal logs over apparmor instead of AVC for wider compatibility.
2024-05-03 12:34:08 +01:00
Alexandre Pujol
511ba6c6a9
feat(aa-log): filter journactl log
2024-05-01 18:25:11 +01:00
Alexandre Pujol
d1fb9574cb
feat(aa-log): speed up log generation.
2024-04-28 12:06:40 +01:00
Alexandre Pujol
0cd0262bed
chore: update go mod deps.
2024-04-28 00:04:42 +01:00
Alexandre Pujol
c719a0a109
feat(aa): ensure accesses are slice of string.
2024-04-23 21:17:25 +01:00
Alexandre Pujol
c97886d960
feat(aa): continue refractoring the aa structure.
2024-04-19 22:43:02 +01:00
Alexandre Pujol
890275fb22
feat(aa): rename the main profile struct.
2024-04-16 21:51:56 +01:00
Alexandre Pujol
4b753210e7
feat(aa): modify the apparmor struct to support multiple profiles and subprofile.
2024-04-15 14:09:04 +01:00
Alexandre Pujol
ab4feda5ba
feat(aa): improve apparmor struct.
2024-04-14 23:58:34 +01:00
Alexandre Pujol
ea1736083a
chore: use slices from standard library.
2024-04-12 20:07:05 +01:00
Alexandre Pujol
4490db45c9
feat(aa-log): improve log cleaning.
2024-04-02 17:50:33 +01:00
Alexandre Pujol
f81ceb9185
feat(aa-log): speed up log generation.
2024-03-23 13:41:19 +00:00
Alexandre Pujol
bf613f59a5
feat(profile): replace @{md5} by @{hex32}.
2024-03-19 21:26:12 +00:00
Alexandre Pujol
e3545cc3bb
feat(aa-log): improve the regex helper type.
2024-03-10 15:53:25 +00:00
Alexandre Pujol
86898ec673
feat(aa-log): update order of impression.
2024-02-29 23:37:50 +00:00
Alexandre Pujol
65386321c2
feat(aa-log): update shell paths.
2024-02-29 23:14:01 +00:00
Alexandre Pujol
19b27a26c0
feat(aa-log): do not filter out addresses from the log.
2024-02-29 23:13:15 +00:00
Alexandre Pujol
2cd14aa6bb
chore: add missing and update copyright year.
2024-02-07 00:16:21 +01:00
Alexandre Pujol
7cf7adc197
fix(aa-log): ensure aa-log -s return valid result.
...
Fix #268
2023-12-29 18:28:14 +01:00
Alexandre Pujol
11ca694af7
feat(aa-log): more log cleanup.
2023-10-10 23:47:31 +01:00
Alexandre Pujol
0068c1b9a3
test(aa-log): add some missing unit tests.
2023-09-30 15:36:01 +01:00
Alexandre Pujol
cd80a7d919
refractor(aa-log): merge identical function together.
2023-09-30 15:34:30 +01:00
Alexandre Pujol
99d1a4e302
feat(aa-log): add --raw option.
2023-09-24 19:50:15 +01:00
Alexandre Pujol
aea0034fcc
chore: various cosmetic changes.
2023-09-01 19:26:52 +01:00
Alexandre Pujol
256d4abde8
feat(aa-log): improve log cleaning.
2023-09-01 19:19:19 +01:00
Alexandre Pujol
d06a474b0c
feat(aa-log): parse log file to AA object to allow easy print.
2023-08-17 23:12:46 +01:00
Alexandre Pujol
e0f79b9c9a
feat(aa-log): resolve all main apparmor vars in log.
...
This also deprecate the anonymize option
2023-08-17 19:12:02 +01:00
Alexandre Pujol
6325314825
feat(aa-log): minor structure improvments.
2023-07-23 17:00:52 +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
538da05696
feat(aa-log): add -a option to anonymize the logs.
2023-05-06 12:18:20 +01:00
Alexandre Pujol
26bd9350f2
chore(aa-log): make some resource internal only.
2023-05-01 22:21:30 +01:00
Alexandre Pujol
c53049293b
feat(aa-log): use os.ReadFile instead of ioutil.ReadFile
2023-04-25 23:23:09 +01:00
Alexandre Pujol
fdbf58abfb
feat(aa-log): move useless global variables.
2023-04-19 19:03:47 +01:00
Alexandre Pujol
400ecc52f5
refractor: add logs internal pkg module.
2023-04-16 23:31:05 +01:00