Home
last modified time | relevance | path

Searched refs:net_port_attr (Results 1 – 2 of 2) sorted by relevance

/linux/security/landlock/
H A Dsyscalls.c90 struct landlock_net_port_attr net_port_attr; in build_check_abi() local
109 net_port_size = sizeof(net_port_attr.allowed_access); in build_check_abi()
110 net_port_size += sizeof(net_port_attr.port); in build_check_abi()
111 BUILD_BUG_ON(sizeof(net_port_attr) != net_port_size); in build_check_abi()
112 BUILD_BUG_ON(sizeof(net_port_attr) != 16); in build_check_abi()
351 struct landlock_net_port_attr net_port_attr; in add_rule_net_port() local
356 res = copy_from_user(&net_port_attr, rule_attr, sizeof(net_port_attr)); in add_rule_net_port()
364 if (!net_port_attr.allowed_access) in add_rule_net_port()
369 if ((net_port_attr.allowed_access | mask) != mask) in add_rule_net_port()
373 if (net_port_attr.port > U16_MAX) in add_rule_net_port()
[all …]
/linux/tools/perf/tests/workloads/
H A Dlandlock.c52 struct landlock_net_port_attr net_port_attr = { in landlock() local
61 &net_port_attr, flags); in landlock()