From 146903a3b5d4b156facc61ed5f8fe453c2874ff1 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Wed, 17 Aug 2022 21:03:04 +0100 Subject: Kernel: Require semicolon after VERIFY_{NO_,}PROCESS_BIG_LOCK_ACQUIRED This matches out general macro use, and specifically other verification macros like VERIFY(), VERIFY_NOT_REACHED(), VERIFY_INTERRUPTS_ENABLED(), and VERIFY_INTERRUPTS_DISABLED(). --- Kernel/Syscalls/setuid.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'Kernel/Syscalls/setuid.cpp') diff --git a/Kernel/Syscalls/setuid.cpp b/Kernel/Syscalls/setuid.cpp index 38dadfeaf5..1e726f499e 100644 --- a/Kernel/Syscalls/setuid.cpp +++ b/Kernel/Syscalls/setuid.cpp @@ -10,7 +10,7 @@ namespace Kernel { ErrorOr Process::sys$seteuid(UserID new_euid) { - VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this) + VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this); TRY(require_promise(Pledge::id)); if (new_euid == (uid_t)-1) @@ -30,7 +30,7 @@ ErrorOr Process::sys$seteuid(UserID new_euid) ErrorOr Process::sys$setegid(GroupID new_egid) { - VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this) + VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this); TRY(require_promise(Pledge::id)); if (new_egid == (uid_t)-1) @@ -49,7 +49,7 @@ ErrorOr Process::sys$setegid(GroupID new_egid) ErrorOr Process::sys$setuid(UserID new_uid) { - VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this) + VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this); TRY(require_promise(Pledge::id)); if (new_uid == (uid_t)-1) @@ -70,7 +70,7 @@ ErrorOr Process::sys$setuid(UserID new_uid) ErrorOr Process::sys$setgid(GroupID new_gid) { - VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this) + VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this); TRY(require_promise(Pledge::id)); if (new_gid == (uid_t)-1) @@ -91,7 +91,7 @@ ErrorOr Process::sys$setgid(GroupID new_gid) ErrorOr Process::sys$setreuid(UserID new_ruid, UserID new_euid) { - VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this) + VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this); TRY(require_promise(Pledge::id)); if (new_ruid == (uid_t)-1) @@ -117,7 +117,7 @@ ErrorOr Process::sys$setreuid(UserID new_ruid, UserID new_euid) ErrorOr Process::sys$setresuid(UserID new_ruid, UserID new_euid, UserID new_suid) { - VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this) + VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this); TRY(require_promise(Pledge::id)); if (new_ruid == (uid_t)-1) @@ -143,7 +143,7 @@ ErrorOr Process::sys$setresuid(UserID new_ruid, UserID new_euid, UserID ErrorOr Process::sys$setresgid(GroupID new_rgid, GroupID new_egid, GroupID new_sgid) { - VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this) + VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this); TRY(require_promise(Pledge::id)); if (new_rgid == (gid_t)-1) @@ -169,7 +169,7 @@ ErrorOr Process::sys$setresgid(GroupID new_rgid, GroupID new_egid, Grou ErrorOr Process::sys$setgroups(size_t count, Userspace user_gids) { - VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this) + VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this); TRY(require_promise(Pledge::id)); if (!is_superuser()) return EPERM; -- cgit v1.2.3