Skip to content

Commit

Permalink
Increase verbosity
Browse files Browse the repository at this point in the history
  • Loading branch information
probonopd authored and TheAssassin committed Nov 24, 2024
1 parent 6e07305 commit 03499e1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/runtime/runtime.c
Original file line number Diff line number Diff line change
Expand Up @@ -452,11 +452,17 @@ char* find_fusermount() {
}

if (sb.st_uid != 0 || (sb.st_mode & S_ISUID) == 0) {
// Not setuid root, skip this binary
if (VERBOSE) {
printf("Not setuid root, skipping...\n");
}
free(fusermount_full_path);
continue;
}

if (VERBOSE) {
printf("Found setuid root executable: %s\n", fusermount_full_path);
}

pid_t pid = fork();
if (pid == -1) {
perror("fork");
Expand Down

0 comments on commit 03499e1

Please sign in to comment.