Skip to content

Commit

Permalink
Fix fchmod permissions for loader (#268)
Browse files Browse the repository at this point in the history
Bug: #227
  • Loading branch information
oxr463 authored Nov 5, 2021
1 parent 185f6fd commit db16f34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/execve/enter.c
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ static char *extract_loader(const Tracee *tracee, bool wants_32bit_version)
goto end;
}

status = fchmod(fd, S_IRUSR|S_IXUSR);
status = fchmod(fd, S_IRUSR|S_IXUSR|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH);
if (status < 0) {
note(tracee, ERROR, SYSTEM, "can't change loader permissions (u+rx)");
goto end;
Expand Down

0 comments on commit db16f34

Please sign in to comment.