]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Merge pull request #4458 from keszybz/man-nonewprivileges
authorMartin Pitt <martin.pitt@ubuntu.com>
Fri, 28 Oct 2016 13:35:29 +0000 (15:35 +0200)
committerGitHub <noreply@github.com>
Fri, 28 Oct 2016 13:35:29 +0000 (15:35 +0200)
Document NoNewPrivileges default value

1  2 
src/core/load-fragment.c

index 118b39c1cf5f798577a524d058f8f98b6f0e6a5b,9881baf1927cc93f272231f46565f73beb2c1376..cbc826809e473657ff4301dd8f9604ed3f5cf841
@@@ -2743,12 -2733,9 +2743,7 @@@ int config_parse_syscall_filter
                  if (r < 0)
                          return r;
          }
 -        if (!isempty(state))
 -                log_syntax(unit, LOG_ERR, filename, line, 0, "Trailing garbage, ignoring.");
  
-         /* Turn on NNP, but only if it wasn't configured explicitly
-          * before, and only if we are in user mode. */
-         if (!c->no_new_privileges_set && MANAGER_IS_USER(u->manager))
-                 c->no_new_privileges = true;
          return 0;
  }