Home
last modified time | relevance | path

Searched refs:blob (Results 1 – 7 of 7) sorted by relevance

/security/apparmor/include/
Dcred.h24 struct aa_label **blob = cred->security + apparmor_blob_sizes.lbs_cred; in cred_label() local
26 AA_BUG(!blob); in cred_label()
27 return *blob; in cred_label()
33 struct aa_label **blob = cred->security + apparmor_blob_sizes.lbs_cred; in set_cred_label() local
35 AA_BUG(!blob); in set_cred_label()
36 *blob = label; in set_cred_label()
Dmatch.h123 struct aa_dfa *aa_dfa_unpack(void *blob, size_t size, int flags);
/security/apparmor/
Dmatch.c77 static struct table_header *unpack_table(char *blob, size_t bsize) in unpack_table() argument
89 th.td_id = be16_to_cpu(*(__be16 *) (blob)) - 1; in unpack_table()
92 th.td_flags = be16_to_cpu(*(__be16 *) (blob + 2)); in unpack_table()
93 th.td_lolen = be32_to_cpu(*(__be32 *) (blob + 8)); in unpack_table()
94 blob += sizeof(struct table_header); in unpack_table()
110 UNPACK_ARRAY(table->td_data, blob, th.td_lolen, in unpack_table()
113 UNPACK_ARRAY(table->td_data, blob, th.td_lolen, in unpack_table()
116 UNPACK_ARRAY(table->td_data, blob, th.td_lolen, in unpack_table()
281 struct aa_dfa *aa_dfa_unpack(void *blob, size_t size, int flags) in aa_dfa_unpack() argument
285 char *data = blob; in aa_dfa_unpack()
Dpolicy_unpack.c368 static size_t unpack_blob(struct aa_ext *e, char **blob, const char *name) in unpack_blob() argument
379 *blob = e->pos; in unpack_blob()
441 char *blob = NULL; in unpack_dfa() local
445 size = unpack_blob(e, &blob, "aadfa"); in unpack_dfa()
452 size_t sz = blob - (char *) e->start - in unpack_dfa()
457 dfa = aa_dfa_unpack(blob + pad, size - pad, flags); in unpack_dfa()
/security/keys/
Dtrusted.c470 unsigned char *blob, uint32_t *bloblen, in tpm_seal() argument
571 memcpy(blob, tb->data + TPM_DATA_OFFSET, storedsize); in tpm_seal()
584 const unsigned char *blob, int bloblen, in tpm_unseal() argument
621 &ordinal, bloblen, blob, 0, 0); in tpm_unseal()
626 &ordinal, bloblen, blob, 0, 0); in tpm_unseal()
636 storebytes(tb, blob, bloblen); in tpm_unseal()
684 p->key, p->key_len + 1, p->blob, &p->blob_len, in key_seal()
706 ret = tpm_unseal(tb, o->keyhandle, o->keyauth, p->blob, p->blob_len, in key_unseal()
901 ret = hex2bin(p->blob, c, p->blob_len); in datablob_parse()
1166 bufp = hex_byte_pack(bufp, p->blob[i]); in trusted_read()
/security/smack/
Dsmack_lsm.c1538 struct smack_known **blob = smack_file(file); in smack_file_alloc_security() local
1540 *blob = smk_of_current(); in smack_file_alloc_security()
1768 struct smack_known **blob = smack_file(file); in smack_file_set_fowner() local
1770 *blob = smk_of_current(); in smack_file_set_fowner()
1787 struct smack_known **blob; in smack_file_send_sigiotask() local
1801 blob = smack_file(file); in smack_file_send_sigiotask()
1802 skp = *blob; in smack_file_send_sigiotask()
2903 struct smack_known **blob = smack_msg_msg(msg); in smack_msg_msg_alloc_security() local
2905 *blob = smk_of_current(); in smack_msg_msg_alloc_security()
2917 struct smack_known **blob = smack_ipc(isp); in smack_of_ipc() local
[all …]
/security/
Dsecurity.c1397 void *blob; in security_file_free() local
1401 blob = file->f_security; in security_file_free()
1402 if (blob) { in security_file_free()
1404 kmem_cache_free(lsm_file_cache, blob); in security_file_free()