Home
last modified time | relevance | path

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

/security/selinux/ss/
Dcontext.h41 static inline int mls_context_cpy(struct context *dst, 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, 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 …]
Dsidtab.c285 void sidtab_set(struct sidtab *dst, struct sidtab *src) in sidtab_set() argument
291 dst->htable = src->htable; in sidtab_set()
292 dst->nel = src->nel; in sidtab_set()
293 dst->next_sid = src->next_sid; in sidtab_set()
294 dst->shutdown = 0; in sidtab_set()
296 dst->cache[i] = NULL; in sidtab_set()
Debitmap.c52 int ebitmap_cpy(struct ebitmap *dst, struct ebitmap *src) in ebitmap_cpy() argument
56 ebitmap_init(dst); in ebitmap_cpy()
62 ebitmap_destroy(dst); in ebitmap_cpy()
71 dst->node = new; in ebitmap_cpy()
76 dst->highbit = src->highbit; in ebitmap_cpy()
Dsidtab.h52 void sidtab_set(struct sidtab *dst, struct sidtab *src);
Debitmap.h126 int ebitmap_cpy(struct ebitmap *dst, struct ebitmap *src);
/security/selinux/
Dxfrm.c212 struct dst_entry *dst = skb_dst(skb); in selinux_xfrm_skb_sid_egress() local
215 if (dst == NULL) in selinux_xfrm_skb_sid_egress()
217 x = dst->xfrm; in selinux_xfrm_skb_sid_egress()
437 struct dst_entry *dst; in selinux_xfrm_postroute_last() local
451 dst = skb_dst(skb); in selinux_xfrm_postroute_last()
452 if (dst) { in selinux_xfrm_postroute_last()
455 for (iter = dst; iter != NULL; iter = iter->child) { in selinux_xfrm_postroute_last()
/security/keys/
Ddh.c147 u8 *dst, unsigned int dlen, unsigned int zlen) in kdf_ctr() argument
152 u8 *dst_orig = dst; in kdf_ctr()
192 memcpy(dst, tmpbuffer, dlen); in kdf_ctr()
196 err = crypto_shash_final(desc, dst); in kdf_ctr()
201 dst += h; in kdf_ctr()