diff options
author | Ian Moffett <ian@osmora.org> | 2025-09-30 14:44:45 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-09-30 14:44:45 -0400 |
commit | bed9d72177abe904979991a99cd191173579a567 (patch) | |
tree | c4b9aba045b8693cda706246bcbc7cdf0c58fc79 /src/sys/include/compat | |
parent | de1c5a97ecfb41a4bfe8651c9341dc31c17e5cd0 (diff) |
kern: mac: Add MAC resource querying
Introduce a feature where a program with the correct rights may get
information about a MAC object
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/sys/include/compat')
-rw-r--r-- | src/sys/include/compat/unix/syscall.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/sys/include/compat/unix/syscall.h b/src/sys/include/compat/unix/syscall.h index 88c86ba..d39f627 100644 --- a/src/sys/include/compat/unix/syscall.h +++ b/src/sys/include/compat/unix/syscall.h @@ -49,12 +49,18 @@ scret_t sys_write(struct syscall_args *scargs); */ scret_t sys_cross(struct syscall_args *scargs); +/* + * Query a syscall border - L5 mandatory + */ +scret_t sys_query(struct syscall_args *scargs); + #ifdef _NEED_UNIX_SCTAB scret_t(*g_unix_sctab[])(struct syscall_args *) = { [SYS_none] = NULL, [SYS_exit] = sys_exit, [SYS_write] = sys_write, - [SYS_cross] = sys_cross + [SYS_cross] = sys_cross, + [SYS_query] = sys_query }; #endif /* !_NEED_UNIX_SCTAB */ |