Lines Matching refs:id
258 long keyctl_get_keyring_ID(key_serial_t id, int create) in keyctl_get_keyring_ID() argument
265 key_ref = lookup_user_key(id, lflags, KEY_NEED_SEARCH); in keyctl_get_keyring_ID()
325 long keyctl_update_key(key_serial_t id, in keyctl_update_key() argument
351 key_ref = lookup_user_key(id, 0, KEY_NEED_WRITE); in keyctl_update_key()
379 long keyctl_revoke_key(key_serial_t id) in keyctl_revoke_key() argument
385 key_ref = lookup_user_key(id, 0, KEY_NEED_WRITE); in keyctl_revoke_key()
390 key_ref = lookup_user_key(id, 0, KEY_NEED_SETATTR); in keyctl_revoke_key()
420 long keyctl_invalidate_key(key_serial_t id) in keyctl_invalidate_key() argument
426 kenter("%d", id); in keyctl_invalidate_key()
428 key_ref = lookup_user_key(id, 0, KEY_NEED_SEARCH); in keyctl_invalidate_key()
434 key_ref = lookup_user_key(id, 0, KEY_SYSADMIN_OVERRIDE); in keyctl_invalidate_key()
515 long keyctl_keyring_link(key_serial_t id, key_serial_t ringid) in keyctl_keyring_link() argument
526 key_ref = lookup_user_key(id, KEY_LOOKUP_CREATE, KEY_NEED_LINK); in keyctl_keyring_link()
552 long keyctl_keyring_unlink(key_serial_t id, key_serial_t ringid) in keyctl_keyring_unlink() argument
564 key_ref = lookup_user_key(id, KEY_LOOKUP_PARTIAL, KEY_NEED_UNLINK); in keyctl_keyring_unlink()
595 long keyctl_keyring_move(key_serial_t id, key_serial_t from_ringid, in keyctl_keyring_move() argument
604 key_ref = lookup_user_key(id, KEY_LOOKUP_CREATE, KEY_NEED_LINK); in keyctl_keyring_move()
949 long keyctl_chown_key(key_serial_t id, uid_t user, gid_t group) in keyctl_chown_key() argument
970 key_ref = lookup_user_key(id, KEY_LOOKUP_CREATE | KEY_LOOKUP_PARTIAL, in keyctl_chown_key()
1072 long keyctl_setperm_key(key_serial_t id, key_perm_t perm) in keyctl_setperm_key() argument
1082 key_ref = lookup_user_key(id, KEY_LOOKUP_CREATE | KEY_LOOKUP_PARTIAL, in keyctl_setperm_key()
1172 static long keyctl_instantiate_key_common(key_serial_t id, in keyctl_instantiate_key_common() argument
1183 kenter("%d,,%zu,%d", id, plen, ringid); in keyctl_instantiate_key_common()
1200 if (rka->target_key->serial != id) in keyctl_instantiate_key_common()
1249 long keyctl_instantiate_key(key_serial_t id, in keyctl_instantiate_key() argument
1264 return keyctl_instantiate_key_common(id, &from, ringid); in keyctl_instantiate_key()
1267 return keyctl_instantiate_key_common(id, NULL, ringid); in keyctl_instantiate_key()
1279 long keyctl_instantiate_key_iov(key_serial_t id, in keyctl_instantiate_key_iov() argument
1295 ret = keyctl_instantiate_key_common(id, &from, ringid); in keyctl_instantiate_key_iov()
1315 long keyctl_negate_key(key_serial_t id, unsigned timeout, key_serial_t ringid) in keyctl_negate_key() argument
1317 return keyctl_reject_key(id, timeout, ENOKEY, ringid); in keyctl_negate_key()
1335 long keyctl_reject_key(key_serial_t id, unsigned timeout, unsigned error, in keyctl_reject_key() argument
1343 kenter("%d,%u,%u,%d", id, timeout, error, ringid); in keyctl_reject_key()
1362 if (rka->target_key->serial != id) in keyctl_reject_key()
1457 long keyctl_set_timeout(key_serial_t id, unsigned timeout) in keyctl_set_timeout() argument
1463 key_ref = lookup_user_key(id, KEY_LOOKUP_CREATE | KEY_LOOKUP_PARTIAL, in keyctl_set_timeout()
1469 instkey = key_get_instantiation_authkey(id); in keyctl_set_timeout()
1472 key_ref = lookup_user_key(id, in keyctl_set_timeout()
1516 long keyctl_assume_authority(key_serial_t id) in keyctl_assume_authority() argument
1523 if (id < 0) in keyctl_assume_authority()
1527 if (id == 0) { in keyctl_assume_authority()
1537 authkey = key_get_instantiation_authkey(id); in keyctl_assume_authority()
1729 long keyctl_restrict_keyring(key_serial_t id, const char __user *_type, in keyctl_restrict_keyring() argument
1737 key_ref = lookup_user_key(id, 0, KEY_NEED_SETATTR); in keyctl_restrict_keyring()
1773 long keyctl_watch_key(key_serial_t id, int watch_queue_fd, int watch_id) in keyctl_watch_key() argument
1785 key_ref = lookup_user_key(id, KEY_LOOKUP_CREATE, KEY_NEED_VIEW); in keyctl_watch_key()
1810 watch->id = key->serial; in keyctl_watch_key()