mirror of
https://github.com/Leonmmcoset/cleonos.git
synced 2026-04-21 18:44:01 +00:00
Compare commits
2 Commits
a4f2c8eb89
...
98897031e8
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
98897031e8 | ||
|
|
315b230dc4 |
@@ -1828,8 +1828,7 @@ static i32 clks_syscall_usc_find_allowed_path(const char *path) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0U; i < CLKS_SYSCALL_USC_MAX_ALLOWED_APPS; i++) {
|
for (i = 0U; i < CLKS_SYSCALL_USC_MAX_ALLOWED_APPS; i++) {
|
||||||
if (clks_syscall_usc_allowed_used[i] == CLKS_TRUE &&
|
if (clks_syscall_usc_allowed_used[i] == CLKS_TRUE && clks_strcmp(clks_syscall_usc_allowed_path[i], path) == 0) {
|
||||||
clks_strcmp(clks_syscall_usc_allowed_path[i], path) == 0) {
|
|
||||||
return (i32)i;
|
return (i32)i;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1851,7 +1850,8 @@ static void clks_syscall_usc_remember_path(const char *path) {
|
|||||||
for (i = 0U; i < CLKS_SYSCALL_USC_MAX_ALLOWED_APPS; i++) {
|
for (i = 0U; i < CLKS_SYSCALL_USC_MAX_ALLOWED_APPS; i++) {
|
||||||
if (clks_syscall_usc_allowed_used[i] == CLKS_FALSE) {
|
if (clks_syscall_usc_allowed_used[i] == CLKS_FALSE) {
|
||||||
clks_syscall_usc_allowed_used[i] = CLKS_TRUE;
|
clks_syscall_usc_allowed_used[i] = CLKS_TRUE;
|
||||||
clks_syscall_usc_copy_path(clks_syscall_usc_allowed_path[i], sizeof(clks_syscall_usc_allowed_path[i]), path);
|
clks_syscall_usc_copy_path(clks_syscall_usc_allowed_path[i], sizeof(clks_syscall_usc_allowed_path[i]),
|
||||||
|
path);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user