Lines Matching refs:scall
408 struct lsm_static_call *scall = hl->scalls; in lsm_static_call_init() local
413 if (!scall->hl) { in lsm_static_call_init()
414 __static_call_update(scall->key, scall->trampoline, in lsm_static_call_init()
416 scall->hl = hl; in lsm_static_call_init()
417 static_branch_enable(scall->active); in lsm_static_call_init()
420 scall++; in lsm_static_call_init()
981 #define lsm_for_each_hook(scall, NAME) \ argument
982 for (scall = static_calls_table.NAME; \
983 scall - static_calls_table.NAME < MAX_LSM_COUNT; scall++) \
984 if (static_key_enabled(&scall->active->key))
1220 struct lsm_static_call *scall; in security_vm_enough_memory_mm() local
1230 lsm_for_each_hook(scall, vm_enough_memory) { in security_vm_enough_memory_mm()
1231 rc = scall->hl->hook.vm_enough_memory(mm, pages); in security_vm_enough_memory_mm()
1378 struct lsm_static_call *scall; in security_fs_context_parse_param() local
1382 lsm_for_each_hook(scall, fs_context_parse_param) { in security_fs_context_parse_param()
1383 trc = scall->hl->hook.fs_context_parse_param(fc, param); in security_fs_context_parse_param()
1613 struct lsm_static_call *scall; in security_sb_set_mnt_opts() local
1616 lsm_for_each_hook(scall, sb_set_mnt_opts) { in security_sb_set_mnt_opts()
1617 rc = scall->hl->hook.sb_set_mnt_opts(sb, mnt_opts, kern_flags, in security_sb_set_mnt_opts()
1813 struct lsm_static_call *scall; in security_inode_init_security() local
1831 lsm_for_each_hook(scall, inode_init_security) { in security_inode_init_security()
1832 ret = scall->hl->hook.inode_init_security(inode, dir, qstr, new_xattrs, in security_inode_init_security()
3681 struct lsm_static_call *scall; in security_task_prctl() local
3683 lsm_for_each_hook(scall, task_prctl) { in security_task_prctl()
3684 thisrc = scall->hl->hook.task_prctl(option, arg2, arg3, arg4, arg5); in security_task_prctl()
4090 struct lsm_static_call *scall; in security_getselfattr() local
4128 lsm_for_each_hook(scall, getselfattr) { in security_getselfattr()
4129 if (single && lctx.id != scall->hl->lsmid->id) in security_getselfattr()
4134 rc = scall->hl->hook.getselfattr(attr, uctx, &entrysize, flags); in security_getselfattr()
4183 struct lsm_static_call *scall; in security_setselfattr() local
4206 lsm_for_each_hook(scall, setselfattr) in security_setselfattr()
4207 if ((scall->hl->lsmid->id) == lctx->id) { in security_setselfattr()
4208 rc = scall->hl->hook.setselfattr(attr, lctx, size, flags); in security_setselfattr()
4231 struct lsm_static_call *scall; in security_getprocattr() local
4233 lsm_for_each_hook(scall, getprocattr) { in security_getprocattr()
4234 if (lsmid != 0 && lsmid != scall->hl->lsmid->id) in security_getprocattr()
4236 return scall->hl->hook.getprocattr(p, name, value); in security_getprocattr()
4255 struct lsm_static_call *scall; in security_setprocattr() local
4257 lsm_for_each_hook(scall, setprocattr) { in security_setprocattr()
4258 if (lsmid != 0 && lsmid != scall->hl->lsmid->id) in security_setprocattr()
4260 return scall->hl->hook.setprocattr(name, value, size); in security_setprocattr()
5392 struct lsm_static_call *scall; in security_xfrm_state_pol_flow_match() local
5404 lsm_for_each_hook(scall, xfrm_state_pol_flow_match) { in security_xfrm_state_pol_flow_match()
5405 rc = scall->hl->hook.xfrm_state_pol_flow_match(x, xp, flic); in security_xfrm_state_pol_flow_match()