Skip to content

Commit 4c8a865

Browse files
authored
Merge pull request #95 from pylerSM/patch-17
Disable regex filtering on X86 (causes seg fault)
2 parents 36c5522 + ead25a5 commit 4c8a865

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/src/main/jni/rootcloak.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,11 @@ int open(const char *path, int oflag, ... ) {
105105
original_open = dlsym(RTLD_NEXT, "open");
106106
}
107107
int fd = original_open(path, oflag);
108+
#if !(defined(__i386__) || defined(__x86_64__))
108109
if (fd != -1) {
109110
int status;
110111
regex_t re;
111112

112-
#if 0
113113
if (regcomp(&re, "^/proc/[0-9]+/(stat|cmdline)$", REG_EXTENDED | REG_NOSUB) == 0) {
114114
status = regexec(&re, path, 0, NULL, 0);
115115
regfree(&re);
@@ -148,8 +148,8 @@ int open(const char *path, int oflag, ... ) {
148148
}
149149
}
150150
}
151-
#endif
152151
}
152+
#endif
153153
return fd;
154154
}
155155

0 commit comments

Comments
 (0)