diff --git a/kernel/include/process.h b/kernel/include/process.h index ce122d5f..06a43b1c 100644 --- a/kernel/include/process.h +++ b/kernel/include/process.h @@ -570,6 +570,12 @@ struct process_vm { long currss; }; +static inline int has_cap_ipc_lock(struct thread *th) +{ + /* CAP_IPC_LOCK (= 14) */ + return !(th->proc->euid); +} + static inline int has_cap_sys_admin(struct thread *th) { /* CAP_SYS_ADMIN (= 21) */