mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-11-20 00:26:39 +08:00
file capabilities: uninline cap_safe_nice
This reduces the kernel size by 289 bytes. Signed-off-by: Serge E. Hallyn <serue@us.ibm.com> Acked-by: Andrew G. Morgan <morgan@kernel.org> Signed-off-by: James Morris <jmorris@namei.org>
This commit is contained in:
parent
ab2b49518e
commit
de45e806a8
@ -541,7 +541,7 @@ int cap_task_post_setuid (uid_t old_ruid, uid_t old_euid, uid_t old_suid,
|
||||
* yet with increased caps.
|
||||
* So we check for increased caps on the target process.
|
||||
*/
|
||||
static inline int cap_safe_nice(struct task_struct *p)
|
||||
static int cap_safe_nice(struct task_struct *p)
|
||||
{
|
||||
if (!cap_issubset(p->cap_permitted, current->cap_permitted) &&
|
||||
!capable(CAP_SYS_NICE))
|
||||
|
Loading…
Reference in New Issue
Block a user