mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-27 22:24:11 +08:00
e530dca584
Using these helpers allows us to avoid the in-kernel calls to these syscalls: sys_setregid(), sys_setgid(), sys_setreuid(), sys_setuid(), sys_setresuid(), sys_setresgid(), sys_setfsuid(), and sys_setfsgid(). The ksys_ prefix denotes that these function are meant as a drop-in replacement for the syscall. In particular, they use the same calling convention. This patch is part of a series which removes in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. For details, see http://lkml.kernel.org/r/20180325162527.GA17492@light.dominikbrodowski.net Cc: Al Viro <viro@ZenIV.linux.org.uk> Cc: Eric W. Biederman <ebiederm@xmission.com> Cc: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
15 lines
442 B
C
15 lines
442 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef LINUX_UID16_H
|
|
#define LINUX_UID16_H
|
|
|
|
long __sys_setuid(uid_t uid);
|
|
long __sys_setgid(gid_t gid);
|
|
long __sys_setreuid(uid_t ruid, uid_t euid);
|
|
long __sys_setregid(gid_t rgid, gid_t egid);
|
|
long __sys_setresuid(uid_t ruid, uid_t euid, uid_t suid);
|
|
long __sys_setresgid(gid_t rgid, gid_t egid, gid_t sgid);
|
|
long __sys_setfsuid(uid_t uid);
|
|
long __sys_setfsgid(gid_t gid);
|
|
|
|
#endif /* LINUX_UID16_H */
|