Lines Matching refs:keyring_id
31 bool LoadKeyToKeyring(key_serial_t keyring_id, const char* desc, const char* data, size_t size) { in LoadKeyToKeyring() argument
32 key_serial_t key = add_key("asymmetric", desc, data, size, keyring_id); in LoadKeyToKeyring()
40 void LoadKeyFromDirectory(key_serial_t keyring_id, const char* keyname, const char* dir) { in LoadKeyFromDirectory() argument
50 if (!LoadKeyToKeyring(keyring_id, keyname, content.c_str(), content.size())) { in LoadKeyFromDirectory()
56 void LoadKeyFromVerifiedPartitions(key_serial_t keyring_id) { in LoadKeyFromVerifiedPartitions() argument
59 LoadKeyFromDirectory(keyring_id, "fsv_system", "/system/etc/security/fsverity"); in LoadKeyFromVerifiedPartitions()
60 LoadKeyFromDirectory(keyring_id, "fsv_product", "/product/etc/security/fsverity"); in LoadKeyFromVerifiedPartitions()
64 key_serial_t keyring_id = android::GetKeyringId(".fs-verity"); in main() local
65 if (keyring_id < 0) { in main()
76 LoadKeyFromVerifiedPartitions(keyring_id); in main()
79 if (keyctl_restrict_keyring(keyring_id, nullptr, nullptr) < 0) { in main()