diff options
author | Dave Airlie <airlied@redhat.com> | 2017-10-03 02:35:04 +0300 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2017-10-03 02:35:04 +0300 |
commit | ebec44a2456fbe5fe18aae88f6010f6878f0cb4a (patch) | |
tree | 427734722bdf3e807333329f33a6dbd6e95ec747 /security/keys/process_keys.c | |
parent | 659333de48268550b5f09fcd45f76459d737b946 (diff) | |
parent | 9e66317d3c92ddaab330c125dfe9d06eee268aff (diff) | |
download | linux-ebec44a2456fbe5fe18aae88f6010f6878f0cb4a.tar.xz |
BackMerge tag 'v4.14-rc3' into drm-next
Linux 4.14-rc3
Requested by Daniel for the tracing build fix in fixes.
Diffstat (limited to 'security/keys/process_keys.c')
-rw-r--r-- | security/keys/process_keys.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/security/keys/process_keys.c b/security/keys/process_keys.c index 86bced9fdbdf..293d3598153b 100644 --- a/security/keys/process_keys.c +++ b/security/keys/process_keys.c @@ -77,7 +77,8 @@ int install_user_keyrings(void) if (IS_ERR(uid_keyring)) { uid_keyring = keyring_alloc(buf, user->uid, INVALID_GID, cred, user_keyring_perm, - KEY_ALLOC_IN_QUOTA, + KEY_ALLOC_UID_KEYRING | + KEY_ALLOC_IN_QUOTA, NULL, NULL); if (IS_ERR(uid_keyring)) { ret = PTR_ERR(uid_keyring); @@ -94,7 +95,8 @@ int install_user_keyrings(void) session_keyring = keyring_alloc(buf, user->uid, INVALID_GID, cred, user_keyring_perm, - KEY_ALLOC_IN_QUOTA, + KEY_ALLOC_UID_KEYRING | + KEY_ALLOC_IN_QUOTA, NULL, NULL); if (IS_ERR(session_keyring)) { ret = PTR_ERR(session_keyring); |