Home
last modified time | relevance | path

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

/linux-6.15/kernel/
H A Daudit.c1224 struct lsm_context lsmctx = { NULL, 0, 0 }; in audit_receive_msg() local
1476 &lsmctx); in audit_receive_msg()
1480 sig_data = kmalloc(struct_size(sig_data, ctx, lsmctx.len), in audit_receive_msg()
1484 security_release_secctx(&lsmctx); in audit_receive_msg()
1490 memcpy(sig_data->ctx, lsmctx.context, lsmctx.len); in audit_receive_msg()
1491 security_release_secctx(&lsmctx); in audit_receive_msg()
1495 lsmctx.len)); in audit_receive_msg()
H A Dauditsc.c1395 struct lsm_context lsmctx; in show_special() local
1398 &lsmctx) < 0) { in show_special()
1401 audit_log_format(ab, " obj=%s", lsmctx.context); in show_special()
1402 security_release_secctx(&lsmctx); in show_special()
/linux-6.15/fs/ceph/
H A Dxattr.c1386 &name, &as_ctx->lsmctx); in ceph_security_init_secctx()
1411 4 * 2 + name_len + as_ctx->lsmctx.len); in ceph_security_init_secctx()
1434 ceph_pagelist_encode_32(pagelist, as_ctx->lsmctx.len); in ceph_security_init_secctx()
1435 ceph_pagelist_append(pagelist, as_ctx->lsmctx.context, in ceph_security_init_secctx()
1436 as_ctx->lsmctx.len); in ceph_security_init_secctx()
1454 security_release_secctx(&as_ctx->lsmctx); in ceph_release_acl_sec_ctx()
H A Dsuper.h1135 struct lsm_context lsmctx; member
/linux-6.15/fs/fuse/
H A Ddir.c469 struct lsm_context lsmctx = { }; in get_security_context() local
477 &name, &lsmctx); in get_security_context()
483 if (lsmctx.len) { in get_security_context()
488 lsmctx.len > S32_MAX)) in get_security_context()
491 lsmctx.len); in get_security_context()
504 fctx->size = lsmctx.len; in get_security_context()
510 memcpy(ptr, lsmctx.context, lsmctx.len); in get_security_context()
517 security_release_secctx(&lsmctx); in get_security_context()
/linux-6.15/drivers/android/
H A Dbinder.c3020 struct lsm_context lsmctx = { }; in binder_transaction() local
3299 ret = security_secid_to_secctx(secid, &lsmctx); in binder_transaction()
3308 added_size = ALIGN(lsmctx.len, sizeof(u64)); in binder_transaction()
3342 if (lsmctx.context) { in binder_transaction()
3347 ALIGN(lsmctx.len, sizeof(u64)); in binder_transaction()
3352 lsmctx.context, lsmctx.len); in binder_transaction()
3357 security_release_secctx(&lsmctx); in binder_transaction()
3358 lsmctx.context = NULL; in binder_transaction()
3402 ALIGN(lsmctx.len, sizeof(u64)); in binder_transaction()
3781 if (lsmctx.context) in binder_transaction()
[all …]
/linux-6.15/security/
H A Dsecurity.c1755 struct lsm_context *lsmctx) in security_dentry_init_security() argument
1758 xattr_name, lsmctx); in security_dentry_init_security()