From e13f079f22e6887b014d11914a94d5202aa92df0 Mon Sep 17 00:00:00 2001 From: opa334 Date: Mon, 4 Mar 2024 21:15:49 +0100 Subject: [PATCH] Also ensure the permissions of /private and /private/preboot are correct --- Application/Dopamine/Jailbreak/DOBootstrapper.m | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Application/Dopamine/Jailbreak/DOBootstrapper.m b/Application/Dopamine/Jailbreak/DOBootstrapper.m index c99c2c627..a293f0e05 100644 --- a/Application/Dopamine/Jailbreak/DOBootstrapper.m +++ b/Application/Dopamine/Jailbreak/DOBootstrapper.m @@ -283,8 +283,15 @@ - (NSError *)ensurePrivatePrebootIsWritable - (void)fixupPathPermissions { + // Ensure the following paths are owned by root:wheel and have permissions of 755: + // /private + // /private/preboot + // /private/preboot/UUID + // /private/preboot/UUID/dopamine- + // /private/preboot/UUID/dopamine-/procursus + NSString *tmpPath = NSJBRootPath(@"/"); - while (![tmpPath isEqualToString:@"/private/preboot"]) { + while (![tmpPath isEqualToString:@"/"]) { struct stat s; stat(tmpPath.fileSystemRepresentation, &s); if (s.st_uid != 0 || s.st_gid != 0) {