Filza 27.2 worse_query: public and developer builds
This commit is contained in:
commit
91a6adf723
267 files changed
+42015
No files matched your search
@@ -0,0 +1,14 @@
|
||||
#ifndef sandbox_escape_h
|
||||
#define sandbox_escape_h
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
// Escape sandbox by rewriting sandbox extension data in kernel memory.
|
||||
// Walk: proc_ro -> ucred -> cr_label -> sandbox -> ext_set -> ext_table -> ext -> data
|
||||
int sandbox_escape(uint64_t self_proc);
|
||||
|
||||
// Elevate to uid=0 by swapping our p_ucred pointer with launchd's.
|
||||
// Fixes UNIX DAC (owner/mode) checks so chmod/chown/writes to root-owned
|
||||
int sandbox_elevate_to_root(uint64_t self_proc);
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user