v0.16 update

This commit is contained in:
maj0r authored and GitHub committed 2026-07-20 16:39:55 -03:00
1 parent c3b0e23ba3
commit 513699d113
1 file changed
+3 -2
+3 -2
View File
@@ -65,8 +65,9 @@ cr_priv_init(void) {
}
}
uint64_t attrs = kernel_get_ucred_attrs(mypid);
g_priv.attrs_ok = ((attrs & 0x80) != 0);
uint8_t attrs[32] = {0};
kernel_get_ucred_attrs(mypid, attrs);
g_priv.attrs_ok = ((attrs[3] & 0x80) != 0); /* ptrace attribute, see sdk-master crt/patch.c */
if (g_priv.authid_ok && g_priv.caps_ok && g_priv.attrs_ok) {
printf("[priv] sce auth/caps ok authid=0x%llx\n", (unsigned long long)g_priv.authid);