diff --git a/module-nextgen/apparmor/main.c b/module-nextgen/apparmor/main.c index 07806d5e3..2fc410c47 100644 --- a/module-nextgen/apparmor/main.c +++ b/module-nextgen/apparmor/main.c @@ -1594,7 +1594,7 @@ int aa_change_hat(const char *hat_name, u32 hat_magic) /* check to see if an unconfined process is doing a changehat. */ if (!__aa_is_confined(sd)) { - error = -EACCES; + error = -EPERM; goto out; }