2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-31 22:35:35 +00:00

parser: Use the kernel and policy abis to detect new capabilities

The kernel and policy abis can be used to detect and support new
capabilities without having to update base_cap_names.h and and
rebuilding the compiler.

This is not perfect however in that the does not provide any backwards
compatibility mappings, so we still need to keep the internal
capability table.

Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
John Johansen
2020-07-03 02:19:41 -07:00
parent c3b0e835b5
commit 3880ef5b54
6 changed files with 192 additions and 41 deletions

View File

@@ -18,6 +18,7 @@
#include <string>
#include <iostream>
#include "capability.h"
#include "parser.h"
#include "rule.h"
#include "libapparmor_re/aare_rules.h"