diff options
Diffstat (limited to 'security/keys/request_key.c')
-rw-r--r-- | security/keys/request_key.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/security/keys/request_key.c b/security/keys/request_key.c index ba32ca6469bd..a8ebc9520cac 100644 --- a/security/keys/request_key.c +++ b/security/keys/request_key.c | |||
@@ -77,7 +77,7 @@ static int call_sbin_request_key(struct key_construction *cons, | |||
77 | /* allocate a new session keyring */ | 77 | /* allocate a new session keyring */ |
78 | sprintf(desc, "_req.%u", key->serial); | 78 | sprintf(desc, "_req.%u", key->serial); |
79 | 79 | ||
80 | keyring = keyring_alloc(desc, current->fsuid, current->fsgid, current, | 80 | keyring = keyring_alloc(desc, current_fsuid(), current_fsgid(), current, |
81 | KEY_ALLOC_QUOTA_OVERRUN, NULL); | 81 | KEY_ALLOC_QUOTA_OVERRUN, NULL); |
82 | if (IS_ERR(keyring)) { | 82 | if (IS_ERR(keyring)) { |
83 | ret = PTR_ERR(keyring); | 83 | ret = PTR_ERR(keyring); |
@@ -90,8 +90,8 @@ static int call_sbin_request_key(struct key_construction *cons, | |||
90 | goto error_link; | 90 | goto error_link; |
91 | 91 | ||
92 | /* record the UID and GID */ | 92 | /* record the UID and GID */ |
93 | sprintf(uid_str, "%d", current->fsuid); | 93 | sprintf(uid_str, "%d", current_fsuid()); |
94 | sprintf(gid_str, "%d", current->fsgid); | 94 | sprintf(gid_str, "%d", current_fsgid()); |
95 | 95 | ||
96 | /* we say which key is under construction */ | 96 | /* we say which key is under construction */ |
97 | sprintf(key_str, "%d", key->serial); | 97 | sprintf(key_str, "%d", key->serial); |
@@ -279,7 +279,7 @@ static int construct_alloc_key(struct key_type *type, | |||
279 | mutex_lock(&user->cons_lock); | 279 | mutex_lock(&user->cons_lock); |
280 | 280 | ||
281 | key = key_alloc(type, description, | 281 | key = key_alloc(type, description, |
282 | current->fsuid, current->fsgid, current, KEY_POS_ALL, | 282 | current_fsuid(), current_fsgid(), current, KEY_POS_ALL, |
283 | flags); | 283 | flags); |
284 | if (IS_ERR(key)) | 284 | if (IS_ERR(key)) |
285 | goto alloc_failed; | 285 | goto alloc_failed; |
@@ -342,7 +342,7 @@ static struct key *construct_key_and_link(struct key_type *type, | |||
342 | struct key *key; | 342 | struct key *key; |
343 | int ret; | 343 | int ret; |
344 | 344 | ||
345 | user = key_user_lookup(current->fsuid); | 345 | user = key_user_lookup(current_fsuid()); |
346 | if (!user) | 346 | if (!user) |
347 | return ERR_PTR(-ENOMEM); | 347 | return ERR_PTR(-ENOMEM); |
348 | 348 | ||