Lines Matching defs:user
880 * transferring them to user buffer to avoid potential
943 * If the UID is to be changed, the new user must have sufficient quota to
944 * accept the key. The quota deduction will be removed from the old user to
945 * the new user should the attribute be changed.
949 long keyctl_chown_key(key_serial_t id, uid_t user, gid_t group)
958 uid = make_kuid(current_user_ns(), user);
961 if ((user != (uid_t) -1) && !uid_valid(uid))
967 if (user == (uid_t) -1 && group == (gid_t) -1)
987 if (user != (uid_t) -1 && !uid_eq(key->uid, uid))
1000 if (user != (uid_t) -1 && !uid_eq(uid, key->uid)) {
1006 /* transfer the quota burden to the new user */
1024 spin_lock(&key->user->lock);
1025 key->user->qnkeys--;
1026 key->user->qnbytes -= key->quotalen;
1027 spin_unlock(&key->user->lock);
1030 atomic_dec(&key->user->nkeys);
1034 atomic_dec(&key->user->nikeys);
1038 zapowner = key->user;
1039 key->user = newowner;