Home
last modified time | relevance | path

Searched refs:CAP_NET_BIND_SERVICE (Results 1 – 17 of 17) sorted by relevance

/linux-6.3-rc2/tools/testing/selftests/capabilities/
A Dtest_execve.c268 capng_update(CAPNG_DROP, CAPNG_INHERITABLE, CAP_NET_BIND_SERVICE); in do_tests()
285 …if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, CAP_NET_BIND_SERVICE, 0, 0, 0) != -1 || errno != E… in do_tests()
310 capng_update(CAPNG_ADD, CAPNG_INHERITABLE, CAP_NET_BIND_SERVICE); in do_tests()
313 if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, CAP_NET_BIND_SERVICE, 0, 0, 0) != 0) { in do_tests()
320 if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_IS_SET, CAP_NET_BIND_SERVICE, 0, 0, 0) != 1) { in do_tests()
329 if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_IS_SET, CAP_NET_BIND_SERVICE, 0, 0, 0) != 0) { in do_tests()
335 if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, CAP_NET_BIND_SERVICE, 0, 0, 0) != 0) in do_tests()
339 capng_update(CAPNG_DROP, CAPNG_INHERITABLE, CAP_NET_BIND_SERVICE); in do_tests()
343 if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_IS_SET, CAP_NET_BIND_SERVICE, 0, 0, 0) != 0) { in do_tests()
350 capng_update(CAPNG_ADD, CAPNG_INHERITABLE, CAP_NET_BIND_SERVICE); in do_tests()
[all …]
A Dvalidate_cap.c57 if (capng_have_capability(CAPNG_EFFECTIVE, CAP_NET_BIND_SERVICE) != bool_arg(argv, 1)) { in main()
62 if (capng_have_capability(CAPNG_PERMITTED, CAP_NET_BIND_SERVICE) != bool_arg(argv, 2)) { in main()
67 if (capng_have_capability(CAPNG_INHERITABLE, CAP_NET_BIND_SERVICE) != bool_arg(argv, 3)) { in main()
72 …if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_IS_SET, CAP_NET_BIND_SERVICE, 0, 0, 0) != bool_arg(argv, … in main()
/linux-6.3-rc2/include/uapi/linux/
A Dcapability.h183 #define CAP_NET_BIND_SERVICE 10 macro
/linux-6.3-rc2/tools/testing/selftests/bpf/prog_tests/
A Dbind_perm.c54 const __u64 net_bind_svc_cap = 1ULL << CAP_NET_BIND_SERVICE; in test_bind_perm()
/linux-6.3-rc2/net/ax25/
A Dax25_route.c419 if (ax25_uid_policy && !capable(CAP_NET_BIND_SERVICE)) { in ax25_rt_autobind()
/linux-6.3-rc2/net/netrom/
A Daf_netrom.c599 if (!capable(CAP_NET_BIND_SERVICE)) { in nr_bind()
614 if (ax25_uid_policy && !capable(CAP_NET_BIND_SERVICE)) { in nr_bind()
/linux-6.3-rc2/net/mctp/
A Daf_mctp.c65 if (!capable(CAP_NET_BIND_SERVICE)) in mctp_bind()
/linux-6.3-rc2/net/bluetooth/
A Dl2cap_sock.c63 if (psm < L2CAP_PSM_DYN_START && !capable(CAP_NET_BIND_SERVICE)) in l2cap_validate_bredr_psm()
76 if (psm < L2CAP_PSM_LE_DYN_START && !capable(CAP_NET_BIND_SERVICE)) in l2cap_validate_le_psm()
/linux-6.3-rc2/net/atm/
A Dcommon.c392 if (vci > 0 && vci < ATM_NOT_RSV_VCI && !capable(CAP_NET_BIND_SERVICE)) in __vcc_connect()
/linux-6.3-rc2/net/ipv6/
A Daf_inet6.c300 !ns_capable(net->user_ns, CAP_NET_BIND_SERVICE)) in __inet6_bind()
/linux-6.3-rc2/net/rose/
A Daf_rose.c702 if (ax25_uid_policy && !capable(CAP_NET_BIND_SERVICE)) { in rose_bind()
/linux-6.3-rc2/net/vmw_vsock/
A Dvmci_transport.c1676 if (port <= LAST_RESERVED_PORT && !capable(CAP_NET_BIND_SERVICE)) in vmci_transport_dgram_bind()
A Daf_vsock.c656 !capable(CAP_NET_BIND_SERVICE)) { in __vsock_bind_connectible()
/linux-6.3-rc2/net/ipv4/
A Daf_inet.c498 !ns_capable(net->user_ns, CAP_NET_BIND_SERVICE)) in __inet_bind()
/linux-6.3-rc2/net/sctp/
A Dsocket.c417 !ns_capable(net->user_ns, CAP_NET_BIND_SERVICE)) in sctp_do_bind()
1085 !ns_capable(net->user_ns, CAP_NET_BIND_SERVICE)) in sctp_connect_new_asoc()
/linux-6.3-rc2/drivers/infiniband/core/
A Dcma.c3785 if (snum < PROT_SOCK && !capable(CAP_NET_BIND_SERVICE)) in cma_use_port()
/linux-6.3-rc2/Documentation/networking/
A Dip-sysctl.rst1310 require root or CAP_NET_BIND_SERVICE in order to bind to them.

Completed in 60 milliseconds