Merge pull request #6832 from poettering/keyring-mode
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 15 Sep 2017 19:24:48 +0000 (21:24 +0200)
committerGitHub <noreply@github.com>
Fri, 15 Sep 2017 19:24:48 +0000 (21:24 +0200)
Add KeyringMode unit property to fix cryptsetup key caching

1  2 
man/systemd.exec.xml
src/core/execute.c

Simple merge
@@@ -2717,10 -2764,9 +2776,10 @@@ static int exec_child
  
          (void) umask(context->umask);
  
-         r = setup_keyring(unit, params, uid, gid);
+         r = setup_keyring(unit, context, params, uid, gid);
          if (r < 0) {
                  *exit_status = EXIT_KEYRING;
 +                *error_message = strdup("Failed to set up kernel keyring");
                  return r;
          }