Skip to content

Commit 2d78377

Browse files
committed
security: changed to 64bit radix tree
1 parent 1f4ab55 commit 2d78377

File tree

5 files changed

+23
-6
lines changed

5 files changed

+23
-6
lines changed

Config.xcconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
// https://developer.apple.com/documentation/xcode/adding-a-build-configuration-file-to-your-project
1010

1111
VERSION = 0.9.0
12-
BUILD_NUMBER = 20260224.61.US.seanistethered
12+
BUILD_NUMBER = 20260224.75.US.seanistethered

Nyxian/LindChain/LiveContainer/Tweaks/proc_info.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
#define PROX_FDTYPE_VNODE 1
66
#define PROC_PIDFDVNODEPATHINFO 2
7+
#define PROC_PIDFDPIPEINFO 6
78

89
#define PROC_PIDLISTFDS 1
910

@@ -63,5 +64,17 @@ struct vnode_fdinfowithpath {
6364
struct vnode_info_path pvip;
6465
};
6566

67+
struct pipe_info {
68+
struct vinfo_stat pipe_stat;
69+
uint64_t pipe_handle;
70+
uint64_t pipe_peerhandle;
71+
int pipe_status;
72+
int rfu_1;
73+
};
74+
75+
struct pipe_fdinfo {
76+
struct proc_fileinfo pfi;
77+
struct pipe_info pipeinfo;
78+
};
6679

6780
#endif

Nyxian/LindChain/ProcEnvironment/Surface/limits.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
#ifndef PROCENVIRONMENT_LIMITS_H
2121
#define PROCENVIRONMENT_LIMITS_H
2222

23+
#include <stdint.h>
24+
2325
/*
2426
* im sorry if you complain about the
2527
* amount of maximum processes, dont
@@ -39,6 +41,6 @@
3941
* the maximum count of pid that the
4042
* radix tree supports.
4143
*/
42-
#define PID_MAX 1048575
44+
#define PID_MAX UINT64_MAX
4345

4446
#endif /* PROCENVIRONMENT_LIMITS_H */

Nyxian/LindChain/ProcEnvironment/Surface/radix/config.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
#ifndef RADIX_CONFIG_H
2121
#define RADIX_CONFIG_H
2222

23-
#define RADIX_BITS 5
24-
#define RADIX_SIZE 32
25-
#define RADIX_MASK 0x1F
26-
#define RADIX_LEVELS 4
23+
#define RADIX_BITS 8
24+
#define RADIX_SIZE 256
25+
#define RADIX_MASK 0xFF
26+
#define RADIX_LEVELS 8
2727

2828
#endif /* RADIX_CONFIG_H */

Nyxian/Main.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@
2121
#import <Foundation/Foundation.h>
2222
#import <UIKit/UIKit.h>
2323
#import <Nyxian-Swift.h>
24+
#import <LindChain/LiveContainer/Tweaks/libproc.h>
2425
#import "bridge.h"
26+
#import <fcntl.h>
2527

2628
#if !JAILBREAK_ENV
2729

0 commit comments

Comments
 (0)