Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/tools/testing/selftests/capabilities/
H 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 …]
H 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()
/OK3568_Linux_fs/yocto/meta-openembedded/meta-webserver/recipes-httpd/hiawatha/files/
H A Dhiawatha.service13 CapabilityBoundingSet=CAP_NET_BIND_SERVICE CAP_CHOWN CAP_DAC_OVERRIDE CAP_FOWNER CAP_FSETID CAP_SET…
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/include/linux/
H A Dcapability.h181 #define CAP_NET_BIND_SERVICE 10 macro
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/include/linux/
H A Dcapability.h181 #define CAP_NET_BIND_SERVICE 10 macro
/OK3568_Linux_fs/kernel/include/uapi/linux/
H A Dcapability.h183 #define CAP_NET_BIND_SERVICE 10 macro
/OK3568_Linux_fs/kernel/net/ax25/
H A Dax25_route.c420 if (ax25_uid_policy && !capable(CAP_NET_BIND_SERVICE)) { in ax25_rt_autobind()
/OK3568_Linux_fs/kernel/net/netrom/
H A Daf_netrom.c594 if (!capable(CAP_NET_BIND_SERVICE)) { in nr_bind()
609 if (ax25_uid_policy && !capable(CAP_NET_BIND_SERVICE)) { in nr_bind()
/OK3568_Linux_fs/kernel/net/bluetooth/
H A Dl2cap_sock.c62 if (psm < L2CAP_PSM_DYN_START && !capable(CAP_NET_BIND_SERVICE)) in l2cap_validate_bredr_psm()
75 if (psm < L2CAP_PSM_LE_DYN_START && !capable(CAP_NET_BIND_SERVICE)) in l2cap_validate_le_psm()
/OK3568_Linux_fs/kernel/net/atm/
H A Dcommon.c392 if (vci > 0 && vci < ATM_NOT_RSV_VCI && !capable(CAP_NET_BIND_SERVICE)) in __vcc_connect()
/OK3568_Linux_fs/kernel/net/ipv6/
H A Daf_inet6.c301 !ns_capable(net->user_ns, CAP_NET_BIND_SERVICE)) in __inet6_bind()
/OK3568_Linux_fs/kernel/net/rose/
H A Daf_rose.c693 if (ax25_uid_policy && !capable(CAP_NET_BIND_SERVICE)) { in rose_bind()
/OK3568_Linux_fs/kernel/net/vmw_vsock/
H A Dvmci_transport.c1675 if (port <= LAST_RESERVED_PORT && !capable(CAP_NET_BIND_SERVICE)) in vmci_transport_dgram_bind()
H A Daf_vsock.c625 !capable(CAP_NET_BIND_SERVICE)) { in __vsock_bind_stream()
/OK3568_Linux_fs/kernel/net/ipv4/
H A Daf_inet.c507 !ns_capable(net->user_ns, CAP_NET_BIND_SERVICE)) in __inet_bind()
/OK3568_Linux_fs/kernel/net/decnet/
H A Daf_decnet.c741 if (!capable(CAP_NET_BIND_SERVICE) && (saddr->sdn_objnum || in dn_bind()
/OK3568_Linux_fs/kernel/net/sctp/
H A Dsocket.c418 !ns_capable(net->user_ns, CAP_NET_BIND_SERVICE)) in sctp_do_bind()
1088 !ns_capable(net->user_ns, CAP_NET_BIND_SERVICE)) in sctp_connect_new_asoc()
/OK3568_Linux_fs/kernel/drivers/infiniband/core/
H A Dcma.c3651 if (snum < PROT_SOCK && !capable(CAP_NET_BIND_SERVICE)) in cma_use_port()
/OK3568_Linux_fs/kernel/Documentation/networking/
H A Dip-sysctl.rst1075 require root or CAP_NET_BIND_SERVICE in order to bind to them.