Skip to content

Commit

Permalink
small rlimits adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
smitsohu committed Sep 10, 2018
1 parent e09da6a commit 3fa3cbb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/firejail/sandbox.c
Expand Up @@ -1143,9 +1143,6 @@ int sandbox(void* sandbox_arg) {
errExit("fork");

if (app_pid == 0) {
// set rlimits
set_rlimits();

#ifdef HAVE_APPARMOR
if (checkcfg(CFG_APPARMOR) && arg_apparmor) {
errno = 0;
Expand All @@ -1158,6 +1155,8 @@ int sandbox(void* sandbox_arg) {
printf("AppArmor enabled\n");
}
#endif
// set rlimits
set_rlimits();

prctl(PR_SET_PDEATHSIG, SIGKILL, 0, 0, 0); // kill the child in case the parent died
start_application(0, fp); // start app
Expand Down

0 comments on commit 3fa3cbb

Please sign in to comment.