mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 06:16:03 +00:00
parser: Finalize the aa_kernel_interface API
Create new, ref, and unref functions for aa_kernel_interface. The "new" function allows for the caller to pass in an aa_features object that is then used to check if the kernel supports set load operations. Additionally, the "new" function allows for the apparmorfs path to be discovered once instead of during every policy load. Signed-off-by: Tyler Hicks <tyhicks@canonical.com> Acked-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
@@ -82,7 +82,6 @@ int option = OPTION_ADD;
|
||||
dfaflags_t dfaflags = (dfaflags_t)(DFA_CONTROL_TREE_NORMAL | DFA_CONTROL_TREE_SIMPLE | DFA_CONTROL_MINIMIZE | DFA_CONTROL_DIFF_ENCODE);
|
||||
dfaflags_t warnflags = 0;
|
||||
|
||||
char *subdomainbase = NULL;
|
||||
const char *progname = __FILE__;
|
||||
char *profile_ns = NULL;
|
||||
char *profilename = NULL;
|
||||
|
Reference in New Issue
Block a user