/security/selinux/ss/ |
D | context.h | 41 static inline int mls_context_cpy(struct context *dst, const struct context *src) in mls_context_cpy() argument 45 dst->range.level[0].sens = src->range.level[0].sens; in mls_context_cpy() 46 rc = ebitmap_cpy(&dst->range.level[0].cat, &src->range.level[0].cat); in mls_context_cpy() 50 dst->range.level[1].sens = src->range.level[1].sens; in mls_context_cpy() 51 rc = ebitmap_cpy(&dst->range.level[1].cat, &src->range.level[1].cat); in mls_context_cpy() 53 ebitmap_destroy(&dst->range.level[0].cat); in mls_context_cpy() 61 static inline int mls_context_cpy_low(struct context *dst, const struct context *src) in mls_context_cpy_low() argument 65 dst->range.level[0].sens = src->range.level[0].sens; in mls_context_cpy_low() 66 rc = ebitmap_cpy(&dst->range.level[0].cat, &src->range.level[0].cat); in mls_context_cpy_low() 70 dst->range.level[1].sens = src->range.level[0].sens; in mls_context_cpy_low() [all …]
|
D | sidtab.c | 270 struct sidtab_entry *dst, *dst_convert; in sidtab_context_to_sid() local 304 dst = sidtab_do_lookup(s, count, 1); in sidtab_context_to_sid() 305 if (!dst) in sidtab_context_to_sid() 308 dst->sid = index_to_sid(count); in sidtab_context_to_sid() 309 dst->hash = hash; in sidtab_context_to_sid() 311 rc = context_cpy(&dst->context, context); in sidtab_context_to_sid() 323 context_destroy(&dst->context); in sidtab_context_to_sid() 330 context_destroy(&dst->context); in sidtab_context_to_sid() 349 hash_add_rcu(s->context_to_sid, &dst->list, dst->hash); in sidtab_context_to_sid()
|
D | ebitmap.c | 53 int ebitmap_cpy(struct ebitmap *dst, const struct ebitmap *src) in ebitmap_cpy() argument 58 ebitmap_init(dst); in ebitmap_cpy() 64 ebitmap_destroy(dst); in ebitmap_cpy() 73 dst->node = new; in ebitmap_cpy() 78 dst->highbit = src->highbit; in ebitmap_cpy() 82 int ebitmap_and(struct ebitmap *dst, const struct ebitmap *e1, const struct ebitmap *e2) in ebitmap_and() argument 87 ebitmap_init(dst); in ebitmap_and() 91 rc = ebitmap_set_bit(dst, bit, 1); in ebitmap_and()
|
D | hashtab.c | 50 int __hashtab_insert(struct hashtab *h, struct hashtab_node **dst, in __hashtab_insert() argument 60 newnode->next = *dst; in __hashtab_insert() 61 *dst = newnode; in __hashtab_insert()
|
D | ebitmap.h | 126 int ebitmap_cpy(struct ebitmap *dst, const struct ebitmap *src); 127 int ebitmap_and(struct ebitmap *dst, const struct ebitmap *e1, const struct ebitmap *e2);
|
D | hashtab.h | 50 int __hashtab_insert(struct hashtab *h, struct hashtab_node **dst,
|
D | conditional.c | 255 struct avtab_node **dst; member 320 *data->dst = node_ptr; in cond_insertf() 348 data.dst = &list->nodes[i]; in cond_read_av_list()
|
D | policydb.c | 1970 struct filename_trans_datum **dst, *datum, *first = NULL; in filename_trans_read_helper() local 2001 dst = &first; in filename_trans_read_helper() 2009 *dst = datum; in filename_trans_read_helper() 2022 dst = &datum->next; in filename_trans_read_helper()
|
/security/landlock/ |
D | ruleset.c | 261 static int merge_ruleset(struct landlock_ruleset *const dst, in merge_ruleset() argument 272 if (WARN_ON_ONCE(!dst || !dst->hierarchy)) in merge_ruleset() 276 mutex_lock(&dst->lock); in merge_ruleset() 280 if (WARN_ON_ONCE(src->num_layers != 1 || dst->num_layers < 1)) { in merge_ruleset() 284 dst->fs_access_masks[dst->num_layers - 1] = src->fs_access_masks[0]; in merge_ruleset() 290 .level = dst->num_layers, in merge_ruleset() 302 err = insert_rule(dst, walker_rule->object, &layers, in merge_ruleset() 310 mutex_unlock(&dst->lock); in merge_ruleset()
|
D | syscalls.c | 47 copy_min_struct_from_user(void *const dst, const size_t ksize, in copy_min_struct_from_user() argument 52 BUILD_BUG_ON(!dst); in copy_min_struct_from_user() 65 return copy_struct_from_user(dst, ksize, src, usize); in copy_min_struct_from_user()
|
/security/selinux/ |
D | xfrm.c | 215 struct dst_entry *dst = skb_dst(skb); in selinux_xfrm_skb_sid_egress() local 218 if (dst == NULL) in selinux_xfrm_skb_sid_egress() 220 x = dst->xfrm; in selinux_xfrm_skb_sid_egress() 442 struct dst_entry *dst; in selinux_xfrm_postroute_last() local 456 dst = skb_dst(skb); in selinux_xfrm_postroute_last() 457 if (dst) { in selinux_xfrm_postroute_last() 460 for (iter = dst; iter != NULL; iter = xfrm_dst_child(iter)) { in selinux_xfrm_postroute_last()
|
/security/safesetid/ |
D | lsm.c | 33 kid_t src, kid_t dst) in _setid_policy_lookup() argument 42 if (uid_eq(rule->dst_id.uid, dst.uid)) in _setid_policy_lookup() 50 if (gid_eq(rule->dst_id.gid, dst.gid)){ in _setid_policy_lookup() 66 static enum sid_policy_type setid_policy_lookup(kid_t src, kid_t dst, enum setid_type new_type) in setid_policy_lookup() argument 84 result = _setid_policy_lookup(pol, src, dst); in setid_policy_lookup()
|
D | lsm.h | 68 kid_t src, kid_t dst);
|
/security/smack/ |
D | smack_lsm.c | 674 struct smack_mnt_opts *dst, *src = src_fc->security; in smack_fs_context_dup() local 682 dst = fc->security; in smack_fs_context_dup() 685 dst->fsdefault = kstrdup(src->fsdefault, GFP_KERNEL); in smack_fs_context_dup() 686 if (!dst->fsdefault) in smack_fs_context_dup() 690 dst->fsfloor = kstrdup(src->fsfloor, GFP_KERNEL); in smack_fs_context_dup() 691 if (!dst->fsfloor) in smack_fs_context_dup() 695 dst->fshat = kstrdup(src->fshat, GFP_KERNEL); in smack_fs_context_dup() 696 if (!dst->fshat) in smack_fs_context_dup() 700 dst->fsroot = kstrdup(src->fsroot, GFP_KERNEL); in smack_fs_context_dup() 701 if (!dst->fsroot) in smack_fs_context_dup() [all …]
|
/security/apparmor/ |
D | policy_unpack.c | 1046 static int deflate_compress(const char *src, size_t slen, char **dst, in deflate_compress() argument 1109 *dst = dstbuf; in deflate_compress()
|
D | apparmorfs.c | 1300 static int deflate_decompress(char *src, size_t slen, char *dst, size_t dlen) in deflate_decompress() argument 1322 strm.next_out = dst; in deflate_decompress() 1341 memcpy(dst, src, slen); in deflate_decompress()
|