Skip to content

Commit

Permalink
Use normal blobs from MacKernelSDK
Browse files Browse the repository at this point in the history
  • Loading branch information
vit9696 committed Nov 30, 2020
1 parent 227e9f3 commit e4638e5
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions Lilu/Sources/kern_user.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,11 @@
#include <mach/vm_map.h>
#include <mach-o/fat.h>
#include <kern/task.h>
#include <kern/cs_blobs.h>
#include <sys/vm.h>

static UserPatcher *that {nullptr};

// kern/cs_blobs.h is not available in older Xcode SDK, provide the declarations ourselves.
#ifndef CS_ENFORCEMENT
#define CS_INVALID_ALLOWED 0x00000020 /* (macOS Only) Page invalidation allowed by task port policy */
#define CS_HARD 0x00000100 /* don't load invalid pages */
#define CS_KILL 0x00000200 /* kill process if it becomes invalid */
#define CS_ENFORCEMENT 0x00001000 /* require enforcement */
#define CS_KILLED 0x01000000 /* was killed by kernel for invalidity */
#define CS_DEBUGGED 0x10000000 /* process is currently or has previously been debugged and allowed to run with invalid pages */
#endif

struct procref {
LIST_ENTRY(proc) p_list; /* List of all processes. */
task_t task; /* corresponding task (static)*/
Expand Down

0 comments on commit e4638e5

Please sign in to comment.