Skip to content

Commit

Permalink
Merge pull request #39 from rhatdan/master
Browse files Browse the repository at this point in the history
We should not be mounting /run and /tmp as NOEXEC
  • Loading branch information
Mrunal Patel committed Dec 20, 2016
2 parents 45455fe + 6388a92 commit 61721be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/systemdhook.c
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ static int prestart(const char *rootfs,
}

/* Mount tmpfs at new temp directory */
if (mount("tmpfs", run_tmp_dir, "tmpfs", MS_NODEV|MS_NOSUID|MS_NOEXEC, options) == -1) {
if (mount("tmpfs", run_tmp_dir, "tmpfs", MS_NODEV|MS_NOSUID, options) == -1) {
pr_perror("Failed to mount tmpfs at %s", run_tmp_dir);
return -1;
}
Expand Down

0 comments on commit 61721be

Please sign in to comment.