Skip to content

Commit

Permalink
Merge pull request #95 from pylerSM/patch-17
Browse files Browse the repository at this point in the history
Disable regex filtering on X86 (causes seg fault)
  • Loading branch information
devadvance committed Jul 31, 2016
2 parents 36c5522 + ead25a5 commit 4c8a865
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/jni/rootcloak.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@ int open(const char *path, int oflag, ... ) {
original_open = dlsym(RTLD_NEXT, "open");
}
int fd = original_open(path, oflag);
#if !(defined(__i386__) || defined(__x86_64__))
if (fd != -1) {
int status;
regex_t re;

#if 0
if (regcomp(&re, "^/proc/[0-9]+/(stat|cmdline)$", REG_EXTENDED | REG_NOSUB) == 0) {
status = regexec(&re, path, 0, NULL, 0);
regfree(&re);
Expand Down Expand Up @@ -148,8 +148,8 @@ int open(const char *path, int oflag, ... ) {
}
}
}
#endif
}
#endif
return fd;
}

Expand Down

0 comments on commit 4c8a865

Please sign in to comment.