Skip to content

Commit

Permalink
sysent
Browse files Browse the repository at this point in the history
  • Loading branch information
jogolden committed Jul 13, 2018
1 parent fb81b23 commit 2022cbe
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/ksdk.inc
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,4 @@ KDATA(0x1AC60E0, kernel_map, void *);
KDATA(0x10986a0, prison0, void *);
KDATA(0x22C1A70, rootvnode, void *);
KDATA(0x2382FF8, allproc, struct proc *);
KDATA(0x107C610, sysents, struct sysent);
11 changes: 11 additions & 0 deletions include/ksdk_bsd.h
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,17 @@ TYPE_FIELD(struct vm_map vm_map, 0);
// maybe I will add more later just for documentation purposes
TYPE_END();

TYPE_BEGIN(struct sysent, 0x30);
TYPE_FIELD(uint32_t sy_narg, 0x00);
TYPE_FIELD(void *sy_call, 0x08);
TYPE_FIELD(uint16_t sy_auevent, 0x10);
TYPE_FIELD(uint64_t sy_systrace_args_func, 0x18);
TYPE_FIELD(uint32_t sy_entry, 0x20);
TYPE_FIELD(uint32_t sy_return, 0x24);
TYPE_FIELD(uint32_t sy_flags, 0x28);
TYPE_FIELD(uint32_t sy_thrcnt, 0x2C);
TYPE_END();

struct auditinfo_addr {
uint8_t useless[184];
};
Expand Down

0 comments on commit 2022cbe

Please sign in to comment.