Lines Matching refs:cp
587 char *cp;
597 cp = kasprintf(GFP_KERNEL, "%s,%s", *result, new);
598 if (cp == NULL)
601 *result = cp;
4326 * @cp: the LSM context
4328 * Convert secid to security context. If @cp is NULL the length of the
4335 int security_secid_to_secctx(u32 secid, struct lsm_context *cp)
4337 return call_int_hook(secid_to_secctx, secid, cp);
4344 * @cp: the LSM context
4346 * Convert a @prop entry to security context. If @cp is NULL the
4349 * next call which actually allocates and returns the @cp.
4353 int security_lsmprop_to_secctx(struct lsm_prop *prop, struct lsm_context *cp)
4355 return call_int_hook(lsmprop_to_secctx, prop, cp);
4378 * @cp: the security context
4382 void security_release_secctx(struct lsm_context *cp)
4384 call_void_hook(release_secctx, cp);
4385 memset(cp, 0, sizeof(*cp));
4448 * @cp: security context
4450 * On success, returns 0 and fills out @cp with the security context
4455 int security_inode_getsecctx(struct inode *inode, struct lsm_context *cp)
4457 memset(cp, 0, sizeof(*cp));
4458 return call_int_hook(inode_getsecctx, inode, cp);