mirror of
https://github.com/apache/nuttx.git
synced 2026-05-24 16:11:56 +08:00
sched: implement effective uid and gid interfaces
Implement 'effective' setuid, getuid, setgid, and getgid interfaces. These will be inheritance by all child task groups. These definitons are explicitly specified here: https://pubs.opengroup.org/onlinepubs/000095399/functions/geteuid.html https://pubs.opengroup.org/onlinepubs/000095399/functions/getegid.html https://pubs.opengroup.org/onlinepubs/000095399/functions/seteuid.html https://pubs.opengroup.org/onlinepubs/000095399/functions/setegid.html Signed-off-by: fangxinyong <fangxinyong@xiaomi.com>
This commit is contained in:
+4
-4
@@ -36,9 +36,9 @@
|
||||
"ftruncate","unistd.h","","int","int","off_t"
|
||||
"futimens","sys/stat.h","","int","int","const struct timespec [2]|FAR const struct timespec *"
|
||||
"get_environ_ptr","stdlib.h","!defined(CONFIG_DISABLE_ENVIRON)","FAR char **"
|
||||
"getegid","unistd.h","","gid_t"
|
||||
"getegid","unistd.h","defined(CONFIG_SCHED_USER_IDENTITY)","gid_t"
|
||||
"getenv","stdlib.h","!defined(CONFIG_DISABLE_ENVIRON)","FAR char *","FAR const char *"
|
||||
"geteuid","unistd.h","","uid_t"
|
||||
"geteuid","unistd.h","defined(CONFIG_SCHED_USER_IDENTITY)","uid_t"
|
||||
"getgid","unistd.h","defined(CONFIG_SCHED_USER_IDENTITY)","gid_t"
|
||||
"gethostname","unistd.h","","int","FAR char *","size_t"
|
||||
"getitimer","sys/time.h","!defined(CONFIG_DISABLE_POSIX_TIMERS)","int","int","FAR struct itimerval *"
|
||||
@@ -150,9 +150,9 @@
|
||||
"sendfile","sys/sendfile.h","","ssize_t","int","int","FAR off_t *","size_t"
|
||||
"sendmsg","sys/socket.h","defined(CONFIG_NET)","ssize_t","int","FAR struct msghdr *","int"
|
||||
"sendto","sys/socket.h","defined(CONFIG_NET)","ssize_t","int","FAR const void *","size_t","int","FAR const struct sockaddr *","socklen_t"
|
||||
"setegid","unistd.h","","int","gid_t"
|
||||
"setegid","unistd.h","defined(CONFIG_SCHED_USER_IDENTITY)","int","gid_t"
|
||||
"setenv","stdlib.h","!defined(CONFIG_DISABLE_ENVIRON)","int","FAR const char *","FAR const char *","int"
|
||||
"seteuid","unistd.h","","int","uid_t"
|
||||
"seteuid","unistd.h","defined(CONFIG_SCHED_USER_IDENTITY)","int","uid_t"
|
||||
"setgid","unistd.h","defined(CONFIG_SCHED_USER_IDENTITY)","int","gid_t"
|
||||
"sethostname","unistd.h","","int","FAR const char *","size_t"
|
||||
"setitimer","sys/time.h","!defined(CONFIG_DISABLE_POSIX_TIMERS)","int","int","FAR const struct itimerval *","FAR struct itimerval *"
|
||||
|
||||
|
Reference in New Issue
Block a user