mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 14:25:52 +00:00
parser: Add prompt dev compat support
Support mapping rule prompt via the audit bits in pre permtable32 kernels. Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
@@ -1568,6 +1568,7 @@ static bool get_kernel_features(struct aa_features **features)
|
||||
else if (aa_features_supports(*features, "policy/versions/v6"))
|
||||
kernel_abi_version = 6;
|
||||
|
||||
kernel_supports_promptdev = aa_features_supports(*features, "policy/perms_compatprompt");
|
||||
kernel_supports_permstable32 = aa_features_supports(*features, "policy/permstable32");
|
||||
if (kernel_supports_permstable32) {
|
||||
fprintf(stderr, "kernel supports prompt\n");
|
||||
|
Reference in New Issue
Block a user