Home
last modified time | relevance | path

Searched refs:b (Results 1 – 20 of 20) sorted by relevance

/security/keys/trusted-keys/
A Dtrusted_dcp.c202 struct dcp_blob_fmt *b = (struct dcp_blob_fmt *)p->blob; in trusted_dcp_seal() local
214 b->fmt_version = DCP_BLOB_VERSION; in trusted_dcp_seal()
215 get_random_bytes(b->nonce, AES_KEYSIZE_128); in trusted_dcp_seal()
219 b->nonce, true); in trusted_dcp_seal()
225 ret = encrypt_blob_key(plain_blob_key, b->blob_key); in trusted_dcp_seal()
231 put_unaligned_le32(p->key_len, &b->payload_len); in trusted_dcp_seal()
248 if (b->fmt_version != DCP_BLOB_VERSION) { in trusted_dcp_unseal()
250 b->fmt_version, DCP_BLOB_VERSION); in trusted_dcp_unseal()
255 p->key_len = le32_to_cpu(b->payload_len); in trusted_dcp_unseal()
270 ret = decrypt_blob_key(b->blob_key, plain_blob_key); in trusted_dcp_unseal()
[all …]
A Dtrusted_tee.c218 memcpy(sess_arg.uuid, rng_device->id.uuid.b, TEE_IOCTL_UUID_LEN); in trusted_key_probe()
/security/
A Ddevice_cgroup.c613 const char *b; in devcgroup_update_access() local
625 b = buffer; in devcgroup_update_access()
627 switch (*b) { in devcgroup_update_access()
678 b++; in devcgroup_update_access()
681 b++; in devcgroup_update_access()
684 b++; in devcgroup_update_access()
689 b++; in devcgroup_update_access()
701 b++; in devcgroup_update_access()
706 b++; in devcgroup_update_access()
711 b++; in devcgroup_update_access()
[all …]
/security/apparmor/
A Dlabel.c112 AA_BUG(!b); in ns_cmp()
116 if (a == b) in ns_cmp()
140 AA_BUG(!b); in profile_cmp()
146 if (a == b || a->base.hname == b->base.hname) in profile_cmp()
172 AA_BUG(!b); in vec_cmp()
173 AA_BUG(!*b); in vec_cmp()
474 AA_BUG(!b); in label_cmp()
476 if (a == b) in label_cmp()
479 return vec_cmp(a->vec, a->size, b->vec, b->size); in label_cmp()
1184 b = br = aa_get_newest_label(b); in aa_label_find_merge()
[all …]
A Dmatch.c422 u32 b = (base)[(state)]; \
423 unsigned int pos = base_idx(b) + (C); \
426 if (b & MATCH_FLAG_DIFF_ENCODE) \
552 u32 b = (base)[(state)]; in aa_dfa_outofband_transition() local
554 if (!(b & MATCH_FLAG_OOB_TRANSITION)) in aa_dfa_outofband_transition()
A Daf_unix.c299 __be16 b = cpu_to_be16(backlog); in profile_listen_perm() local
310 (char *) &b, 2); in profile_listen_perm()
366 __be16 b = cpu_to_be16(optname); in profile_opt_perm() local
376 (char *) &b, 2); in profile_opt_perm()
/security/tomoyo/
A Dgroup.c22 const struct tomoyo_acl_head *b) in tomoyo_same_path_group() argument
25 container_of(b, struct tomoyo_path_group, head)->member_name; in tomoyo_same_path_group()
37 const struct tomoyo_acl_head *b) in tomoyo_same_number_group() argument
41 &container_of(b, struct tomoyo_number_group, head) in tomoyo_same_number_group()
56 const struct tomoyo_acl_head *b) in tomoyo_same_address_group() argument
60 const struct tomoyo_address_group *p2 = container_of(b, typeof(*p2), in tomoyo_same_address_group()
A Dfile.c342 const struct tomoyo_acl_info *b) in tomoyo_same_path_acl() argument
345 const struct tomoyo_path_acl *p2 = container_of(b, typeof(*p2), head); in tomoyo_same_path_acl()
360 struct tomoyo_acl_info *b, in tomoyo_merge_path_acl() argument
414 const struct tomoyo_acl_info *b) in tomoyo_same_mkdev_acl() argument
435 struct tomoyo_acl_info *b, in tomoyo_merge_mkdev_acl() argument
441 const u8 b_perm = container_of(b, struct tomoyo_mkdev_acl, head) in tomoyo_merge_mkdev_acl()
496 const struct tomoyo_acl_info *b) in tomoyo_same_path2_acl() argument
515 struct tomoyo_acl_info *b, in tomoyo_merge_path2_acl() argument
632 const struct tomoyo_acl_info *b) in tomoyo_same_path_number_acl() argument
653 struct tomoyo_acl_info *b, in tomoyo_merge_path_number_acl() argument
[all …]
A Dcommon.h1163 const struct tomoyo_path_info *b) in tomoyo_pathcmp() argument
1165 return a->hash != b->hash || strcmp(a->name, b->name); in tomoyo_pathcmp()
1231 (const struct tomoyo_name_union *a, const struct tomoyo_name_union *b) in tomoyo_same_name_union() argument
1233 return a->filename == b->filename && a->group == b->group; in tomoyo_same_name_union()
1245 (const struct tomoyo_number_union *a, const struct tomoyo_number_union *b) in tomoyo_same_number_union() argument
1247 return a->values[0] == b->values[0] && a->values[1] == b->values[1] && in tomoyo_same_number_union()
1248 a->group == b->group && a->value_type[0] == b->value_type[0] && in tomoyo_same_number_union()
1249 a->value_type[1] == b->value_type[1]; in tomoyo_same_number_union()
1261 (const struct tomoyo_ipaddr_union *a, const struct tomoyo_ipaddr_union *b) in tomoyo_same_ipaddr_union() argument
1263 return !memcmp(a->ip, b->ip, sizeof(a->ip)) && a->group == b->group && in tomoyo_same_ipaddr_union()
[all …]
A Dnetwork.c193 const struct tomoyo_acl_info *b) in tomoyo_same_inet_acl() argument
196 const struct tomoyo_inet_acl *p2 = container_of(b, typeof(*p2), head); in tomoyo_same_inet_acl()
212 const struct tomoyo_acl_info *b) in tomoyo_same_unix_acl() argument
215 const struct tomoyo_unix_acl *p2 = container_of(b, typeof(*p2), head); in tomoyo_same_unix_acl()
231 struct tomoyo_acl_info *b, in tomoyo_merge_inet_acl() argument
237 const u8 b_perm = container_of(b, struct tomoyo_inet_acl, head)->perm; in tomoyo_merge_inet_acl()
257 struct tomoyo_acl_info *b, in tomoyo_merge_unix_acl() argument
263 const u8 b_perm = container_of(b, struct tomoyo_unix_acl, head)->perm; in tomoyo_merge_unix_acl()
A Denviron.c77 const struct tomoyo_acl_info *b) in tomoyo_same_env_acl() argument
80 const struct tomoyo_env_acl *p2 = container_of(b, typeof(*p2), head); in tomoyo_same_env_acl()
A Dcondition.c358 const struct tomoyo_condition *b) in tomoyo_same_condition() argument
360 return a->size == b->size && a->condc == b->condc && in tomoyo_same_condition()
361 a->numbers_count == b->numbers_count && in tomoyo_same_condition()
362 a->names_count == b->names_count && in tomoyo_same_condition()
363 a->argc == b->argc && a->envc == b->envc && in tomoyo_same_condition()
364 a->grant_log == b->grant_log && a->transit == b->transit && in tomoyo_same_condition()
365 !memcmp(a + 1, b + 1, a->size - sizeof(*a)); in tomoyo_same_condition()
A Ddomain.c74 const struct tomoyo_acl_info *b) in tomoyo_same_acl_head() argument
76 return a->type == b->type && a->cond == b->cond; in tomoyo_same_acl_head()
220 const struct tomoyo_acl_head *b) in tomoyo_same_transition_control() argument
225 const struct tomoyo_transition_control *p2 = container_of(b, in tomoyo_same_transition_control()
383 const struct tomoyo_acl_head *b) in tomoyo_same_aggregator() argument
387 const struct tomoyo_aggregator *p2 = container_of(b, typeof(*p2), in tomoyo_same_aggregator()
A Dcommon.c837 const struct tomoyo_acl_head *b) in tomoyo_same_manager() argument
840 container_of(b, struct tomoyo_manager, head)->manager; in tomoyo_same_manager()
1036 const struct tomoyo_acl_info *b) in tomoyo_same_task_acl() argument
1039 const struct tomoyo_task_acl *p2 = container_of(b, typeof(*p2), head); in tomoyo_same_task_acl()
/security/ipe/
A Dipe.c35 struct ipe_bdev *ipe_bdev(struct block_device *b) in ipe_bdev() argument
37 return b->bd_security + ipe_blobs.lbs_bdev; in ipe_bdev()
A Dipe.h20 struct ipe_bdev *ipe_bdev(struct block_device *b);
/security/smack/
A DKconfig21 Enable the bring-up ("b") access mode in Smack rules.
22 When access is granted by a rule with the "b" mode a
/security/apparmor/include/
A Dlabel.h284 struct aa_label *b);
285 struct aa_label *aa_label_find_merge(struct aa_label *a, struct aa_label *b);
286 struct aa_label *aa_label_merge(struct aa_label *a, struct aa_label *b,
/security/keys/
A Dkeyring.c329 const struct keyring_index_key *b = data; in keyring_diff_objects() local
335 seg_b = b->hash; in keyring_diff_objects()
345 seg_b = b->x; in keyring_diff_objects()
352 seg_b = (unsigned long)b->type; in keyring_diff_objects()
358 seg_b = (unsigned long)b->domain_tag; in keyring_diff_objects()
369 seg_b = *(unsigned char *)(b->description + i); in keyring_diff_objects()
/security/selinux/ss/
A Dconditional.c202 static int bool_isvalid(struct cond_bool_datum *b) in bool_isvalid() argument
204 if (!(b->state == 0 || b->state == 1)) in bool_isvalid()

Completed in 66 milliseconds