Skip to content

Commit

Permalink
Small improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
opa334 committed Mar 26, 2024
1 parent df49257 commit 939b8b7
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion BaseBin/launchdhook/src/daemon_hook.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#import <sys/types.h>
#import <sys/stat.h>
#import <unistd.h>
#import "substrate.h"
#import <substrate.h>
#import <mach-o/dyld.h>
#import <libjailbreak/libjailbreak.h>
#import <Foundation/Foundation.h>
Expand Down
2 changes: 1 addition & 1 deletion BaseBin/launchdhook/src/dsc_hook.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <sys/sysctl.h>
#include <string.h>
#include <unistd.h>
#include "substrate.h"
#include <substrate.h>

int (*sysctlbyname_orig)(const char *name, void *oldp, size_t *oldlenp, void *newp, size_t newlen);
int sysctlbyname_hook(const char *name, void *oldp, size_t *oldlenp, void *newp, size_t newlen)
Expand Down
2 changes: 1 addition & 1 deletion BaseBin/launchdhook/src/ipc_hook.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <sandbox.h>
#include "substrate.h"
#include <substrate.h>

int (*sandbox_check_by_audit_token_orig)(audit_token_t au, const char *operation, int sandbox_filter_type, ...);
int sandbox_check_by_audit_token_hook(audit_token_t au, const char *operation, int sandbox_filter_type, ...)
Expand Down
2 changes: 1 addition & 1 deletion BaseBin/launchdhook/src/jetsam_hook.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include <string.h>
#include <unistd.h>
#include <kern_memorystatus.h>
#include "substrate.h"
#include <substrate.h>

// Allocated page tables (done by physrw handoff) count towards the physical memory footprint of the process that created them
// Unfortunately that means jetsam kills us if we do it too often
Expand Down
2 changes: 1 addition & 1 deletion BaseBin/launchdhook/src/spawn_hook.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include "boomerang.h"
#include "crashreporter.h"
#include "update.h"
#include "substrate.h"
#include <substrate.h>
#include <mach-o/dyld.h>
#include <sys/param.h>
#include <sys/mount.h>
Expand Down
2 changes: 1 addition & 1 deletion BaseBin/launchdhook/src/xpc_hook.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <bsm/libbsm.h>
#include <libproc.h>
#include <sandbox.h>
#include "substrate.h"
#include <substrate.h>
#include <libjailbreak/jbserver.h>

/*#undef JBLogDebug
Expand Down
3 changes: 1 addition & 2 deletions BaseBin/rootlesshooks/cfprefsd.x
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#import <Foundation/Foundation.h>
#import "substrate.h"

#import <substrate.h>

BOOL preferencePlistNeedsRedirection(NSString *plistPath)
{
Expand Down
2 changes: 1 addition & 1 deletion BaseBin/watchdoghook/src/main.m
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <IOKit/IOKitLib.h>
#include <libjailbreak/jbclient_xpc.h>

#include "substrate.h"
#include <substrate.h>

int reboot3(uint64_t flags, ...);
#define RB2_USERREBOOT (0x2000000000000000llu)
Expand Down

0 comments on commit 939b8b7

Please sign in to comment.