diff options
author | Quanfa Fu <quanfafu@gmail.com> | 2023-01-14 17:49:52 +0100 |
---|---|---|
committer | John Johansen <john.johansen@canonical.com> | 2023-07-10 02:30:51 +0200 |
commit | 0897fcb1c1e7316375166e0a665237bce2391a09 (patch) | |
tree | db53124752ae51825125093f6788e847617e97d5 /security/apparmor/include | |
parent | Linux 6.5-rc1 (diff) | |
download | linux-0897fcb1c1e7316375166e0a665237bce2391a09.tar.xz linux-0897fcb1c1e7316375166e0a665237bce2391a09.zip |
apparmor: make aa_set_current_onexec return void
Change the return type to void since it always return 0, and no need
to do the checking in aa_set_current_onexec.
Signed-off-by: Quanfa Fu <quanfafu@gmail.com>
Reviewed-by: "Tyler Hicks (Microsoft)" <code@tyhicks.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'security/apparmor/include')
-rw-r--r-- | security/apparmor/include/task.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/apparmor/include/task.h b/security/apparmor/include/task.h index 13437d62c70f..01717fe432c3 100644 --- a/security/apparmor/include/task.h +++ b/security/apparmor/include/task.h @@ -30,7 +30,7 @@ struct aa_task_ctx { }; int aa_replace_current_label(struct aa_label *label); -int aa_set_current_onexec(struct aa_label *label, bool stack); +void aa_set_current_onexec(struct aa_label *label, bool stack); int aa_set_current_hat(struct aa_label *label, u64 token); int aa_restore_previous_label(u64 cookie); struct aa_label *aa_get_task_label(struct task_struct *task); |