• Home
  • Raw
  • Download

Lines Matching refs:src

41 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()
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()
71 rc = ebitmap_cpy(&dst->range.level[1].cat, &src->range.level[0].cat); in mls_context_cpy_low()
81 static inline int mls_context_cpy_high(struct context *dst, struct context *src) in mls_context_cpy_high() argument
85 dst->range.level[0].sens = src->range.level[1].sens; in mls_context_cpy_high()
86 rc = ebitmap_cpy(&dst->range.level[0].cat, &src->range.level[1].cat); in mls_context_cpy_high()
90 dst->range.level[1].sens = src->range.level[1].sens; in mls_context_cpy_high()
91 rc = ebitmap_cpy(&dst->range.level[1].cat, &src->range.level[1].cat); in mls_context_cpy_high()
150 static inline int context_cpy(struct context *dst, struct context *src) in context_cpy() argument
154 dst->user = src->user; in context_cpy()
155 dst->role = src->role; in context_cpy()
156 dst->type = src->type; in context_cpy()
157 if (src->str) { in context_cpy()
158 dst->str = kstrdup(src->str, GFP_ATOMIC); in context_cpy()
161 dst->len = src->len; in context_cpy()
166 rc = mls_context_cpy(dst, src); in context_cpy()