Home
last modified time | relevance | path

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

/linux-4.4.14/tools/testing/selftests/capabilities/
Dtest_execve.c256 capng_update(CAPNG_DROP, CAPNG_INHERITABLE, CAP_NET_BIND_SERVICE); in do_tests()
273 …if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, CAP_NET_BIND_SERVICE, 0, 0, 0) != -1 || errno != E… in do_tests()
293 capng_update(CAPNG_ADD, CAPNG_INHERITABLE, CAP_NET_BIND_SERVICE); in do_tests()
296 if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, CAP_NET_BIND_SERVICE, 0, 0, 0) != 0) { in do_tests()
302 if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_IS_SET, CAP_NET_BIND_SERVICE, 0, 0, 0) != 1) { in do_tests()
310 if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_IS_SET, CAP_NET_BIND_SERVICE, 0, 0, 0) != 0) { in do_tests()
315 if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, CAP_NET_BIND_SERVICE, 0, 0, 0) != 0) in do_tests()
318 capng_update(CAPNG_DROP, CAPNG_INHERITABLE, CAP_NET_BIND_SERVICE); in do_tests()
322 if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_IS_SET, CAP_NET_BIND_SERVICE, 0, 0, 0) != 0) { in do_tests()
329 capng_update(CAPNG_ADD, CAPNG_INHERITABLE, CAP_NET_BIND_SERVICE); in do_tests()
[all …]
Dvalidate_cap.c53 if (capng_have_capability(CAPNG_EFFECTIVE, CAP_NET_BIND_SERVICE) != bool_arg(argv, 1)) { in main()
57 if (capng_have_capability(CAPNG_PERMITTED, CAP_NET_BIND_SERVICE) != bool_arg(argv, 2)) { in main()
61 if (capng_have_capability(CAPNG_INHERITABLE, CAP_NET_BIND_SERVICE) != bool_arg(argv, 3)) { in main()
66 …if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_IS_SET, CAP_NET_BIND_SERVICE, 0, 0, 0) != bool_arg(argv, … in main()
/linux-4.4.14/include/uapi/linux/
Dcapability.h168 #define CAP_NET_BIND_SERVICE 10 macro
/linux-4.4.14/net/ax25/
Dax25_route.c430 if (ax25_uid_policy && !capable(CAP_NET_BIND_SERVICE)) { in ax25_rt_autobind()
/linux-4.4.14/net/netrom/
Daf_netrom.c597 if (!capable(CAP_NET_BIND_SERVICE)) { in nr_bind()
612 if (ax25_uid_policy && !capable(CAP_NET_BIND_SERVICE)) { in nr_bind()
/linux-4.4.14/net/bluetooth/
Dl2cap_sock.c61 if (psm < 0x1001 && !capable(CAP_NET_BIND_SERVICE)) in l2cap_validate_bredr_psm()
74 if (psm <= 0x007f && !capable(CAP_NET_BIND_SERVICE)) in l2cap_validate_le_psm()
/linux-4.4.14/net/ipv6/
Daf_inet6.c283 if (snum && snum < PROT_SOCK && !ns_capable(net->user_ns, CAP_NET_BIND_SERVICE)) in inet6_bind()
/linux-4.4.14/net/atm/
Dcommon.c396 if (vci > 0 && vci < ATM_NOT_RSV_VCI && !capable(CAP_NET_BIND_SERVICE)) in __vcc_connect()
/linux-4.4.14/net/rose/
Daf_rose.c691 if (ax25_uid_policy && !capable(CAP_NET_BIND_SERVICE)) in rose_bind()
/linux-4.4.14/net/vmw_vsock/
Daf_vsock.c515 !capable(CAP_NET_BIND_SERVICE)) { in __vsock_bind_stream()
Dvmci_transport.c1666 if (port <= LAST_RESERVED_PORT && !capable(CAP_NET_BIND_SERVICE)) in vmci_transport_dgram_bind()
/linux-4.4.14/net/ipv4/
Daf_inet.c474 !ns_capable(net->user_ns, CAP_NET_BIND_SERVICE)) in inet_bind()
/linux-4.4.14/net/sctp/
Dsocket.c364 !ns_capable(net->user_ns, CAP_NET_BIND_SERVICE)) in sctp_do_bind()
1154 !ns_capable(net->user_ns, CAP_NET_BIND_SERVICE)) { in __sctp_connect()
1818 !ns_capable(net->user_ns, CAP_NET_BIND_SERVICE)) { in sctp_sendmsg()
/linux-4.4.14/net/decnet/
Daf_decnet.c748 if (!capable(CAP_NET_BIND_SERVICE) && (saddr->sdn_objnum || in dn_bind()
/linux-4.4.14/drivers/infiniband/core/
Dcma.c2807 if (snum < PROT_SOCK && !capable(CAP_NET_BIND_SERVICE)) in cma_use_port()