Lines Matching defs:uctx
386 * @uctx: a userspace LSM context to be filled
387 * @uctx_len: available uctx size (input), used uctx size (output)
393 * Fill all of the fields in a userspace lsm_ctx structure. If @uctx is NULL
400 int lsm_fill_user_ctx(struct lsm_ctx __user *uctx, u32 *uctx_len,
415 if (!uctx)
429 if (copy_to_user(uctx, nctx, nctx_len))
3715 * @uctx: the user-space destination for the information, or NULL
3721 * A NULL value for @uctx can be used to get both the number of attributes
3728 int security_getselfattr(unsigned int attr, struct lsm_ctx __user *uctx,
3733 u8 __user *base = (u8 __user *)uctx;
3753 if (flags != LSM_FLAG_SINGLE || !uctx)
3755 if (copy_from_user(&lctx, uctx, sizeof(lctx)))
3774 uctx = (struct lsm_ctx __user *)(base + total);
3775 rc = scall->hl->hook.getselfattr(attr, uctx, &entrysize, flags);
3808 * @uctx: the user-space source for the information
3813 * and new value are included in @uctx.
3819 int security_setselfattr(unsigned int attr, struct lsm_ctx __user *uctx,
3834 lctx = memdup_user(uctx, size);