fangxinyong
903e87a7bd
builtin: support uid/gid config for binfs app
...
Implement I_SUID/I_SGID feature for binfs in the POSIX compliant way.
If set-user-ID bit is set in the file permissions, then the effective
user ID of process shall be set to UID of the new process image file.
test case:
hello example emulates to set uid and file set-user-ID bit, and call
geteuid and getegid API.
UID = 2000
GID = 3000
MODE = 06555
nsh> ls -l /bin/hello
-r-sr-sr-x 2000 3000 0 hello
nsh> hello
geteuid:2000
getegid:3000
Signed-off-by: fangxinyong <fangxinyong@xiaomi.com>
2023-08-14 01:37:00 +08:00
..
2023-05-17 10:24:42 +08:00
2022-08-02 21:04:19 +08:00
2023-08-10 13:36:19 +08:00
2023-01-25 14:31:37 +02:00
2023-07-08 10:59:37 -03:00
2023-08-02 22:47:29 -07:00
2023-07-11 23:32:17 +08:00
2023-08-14 01:37:00 +08:00
2022-01-29 01:04:23 +08:00
2023-08-09 17:07:58 +08:00
2023-08-01 23:09:46 -07:00
2023-03-02 09:37:58 +01:00
2023-08-03 03:17:22 -07:00
2021-08-20 07:47:07 -07:00
2021-07-30 09:43:26 -03:00
2023-08-11 20:39:16 +08:00
2023-03-02 09:37:58 +01:00
2023-06-12 08:39:38 +02:00
2022-02-20 21:58:10 +08:00
2023-07-13 10:11:58 +08:00
2023-07-13 10:11:58 +08:00
2023-07-13 10:11:58 +08:00
2023-01-15 12:26:15 -03:00
2023-05-01 12:48:55 +08:00
2023-07-11 23:32:17 +08:00
2023-07-31 05:46:37 -07:00
2023-07-28 20:56:22 -07:00
2021-08-02 08:23:35 -03:00
2023-03-02 09:37:58 +01:00
2021-04-01 23:06:23 -05:00
2021-09-25 07:54:39 -03:00
2023-08-11 19:43:37 +08:00
2023-04-25 19:12:53 +01:00
2023-07-08 15:42:11 +08:00
2023-03-02 09:37:58 +01:00
2021-07-31 15:35:47 -03:00
2022-12-21 01:05:19 +02:00
2023-05-21 09:52:08 -03:00
2021-07-31 15:35:47 -03:00
2023-05-21 09:52:08 -03:00
2023-06-18 14:26:07 +03:00
2023-08-03 03:10:56 -07:00
2022-12-10 02:36:24 +08:00
2021-08-02 08:24:59 -03:00
2022-12-21 01:05:19 +02:00
2023-07-28 20:55:22 -07:00
2023-03-19 14:54:59 -06:00
2023-07-31 07:50:10 -07:00
2023-05-19 02:40:38 +08:00
2022-03-17 09:37:15 +02:00
2023-08-06 11:28:49 +02:00
2023-06-17 08:26:46 +03:00
2023-07-31 07:50:10 -07:00
2022-11-01 09:51:18 +09:00
2022-05-05 16:23:32 -03:00
2021-08-27 08:55:45 -07:00
2023-07-11 23:32:17 +08:00
2023-06-22 20:38:45 +08:00
2023-07-29 07:28:23 -07:00
2023-06-22 20:38:45 +08:00
2023-06-22 20:38:45 +08:00
2022-12-30 22:13:34 +08:00
2023-05-05 18:36:36 +08:00
2021-12-29 08:11:08 -03:00
2023-02-02 10:33:01 +08:00
2023-07-11 22:36:23 +08:00
2023-08-02 22:57:28 -07:00
2021-07-09 15:51:28 -03:00
2023-06-22 20:38:45 +08:00
2022-07-27 10:55:37 +03:00