Commit 38bb529
committed
Collect logs: aggregate selinux denial patterns
As of now we collect list of all avc denial occurencies,
and then count all of them together from all nodes.
That is not the actually intended neither useful value,
as number just scales to topology or test sets,
does not means how many issues to fix there is.
Instead we want to know the total number of individual patterns
of these denials (e.g. service x cannot read file y, not how many times
it happened).
Can be achieved by:
- strip occurence specific values from denials on each machine
(making sort -u list on each machine)
- build list of all avc from all machines
(this removes cross machine duplicites)
- reporting just total number of this list
(not simply adding numbers from all machines together)
Change-Id: I5e2bad416a696028d8906d56e096bc7e783d347f1 parent ba6b5f4 commit 38bb529
2 files changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| |||
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
47 | | - | |
| 49 | + | |
| 50 | + | |
48 | 51 | | |
49 | 52 | | |
50 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | | - | |
| 183 | + | |
| 184 | + | |
184 | 185 | | |
185 | 186 | | |
186 | 187 | | |
| |||
0 commit comments