Home
last modified time | relevance | path

Searched refs:net_admin (Results 1 – 11 of 11) sorted by relevance

/linux/net/ipv4/
H A Dtcp_diag.c89 const struct tcp_ulp_ops *ulp_ops, bool net_admin) in tcp_diag_put_ulp() argument
103 err = ulp_ops->get_info(sk, skb, net_admin); in tcp_diag_put_ulp()
115 static int tcp_diag_get_aux(struct sock *sk, bool net_admin, in tcp_diag_get_aux() argument
123 if (net_admin) { in tcp_diag_get_aux()
138 err = tcp_diag_put_ulp(skb, sk, ulp_ops, net_admin); in tcp_diag_get_aux()
146 static size_t tcp_diag_get_aux_size(struct sock *sk, bool net_admin) in tcp_diag_get_aux_size() argument
152 if (net_admin && sk_fullsock(sk)) { in tcp_diag_get_aux_size()
177 size += ulp_ops->get_info_size(sk, net_admin); in tcp_diag_get_aux_size()
195 u16 nlmsg_flags, bool net_admin) in tcp_twsk_diag_fill() argument
223 if (net_admin && nla_put_u32(skb, INET_DIAG_MARK, in tcp_twsk_diag_fill()
[all …]
H A Draw_diag.c129 bool net_admin) in sk_diag_dump() argument
134 return inet_sk_diag_fill(sk, NULL, skb, cb, r, NLM_F_MULTI, net_admin); in sk_diag_dump()
140 bool net_admin = netlink_net_capable(cb->skb, CAP_NET_ADMIN); in raw_diag_dump() local
173 if (sk_diag_dump(sk, skb, cb, r, net_admin) < 0) in raw_diag_dump()
H A Dudp_diag.c19 bool net_admin) in sk_diag_dump() argument
25 net_admin); in sk_diag_dump()
93 bool net_admin = netlink_net_capable(cb->skb, CAP_NET_ADMIN); in udp_dump() local
129 if (sk_diag_dump(sk, skb, cb, r, net_admin) < 0) { in udp_dump()
H A Dinet_diag.c100 bool net_admin) in inet_diag_msg_attrs_fill() argument
128 if (net_admin && nla_put_u32(skb, INET_DIAG_MARK, READ_ONCE(sk->sk_mark))) in inet_diag_msg_attrs_fill()
212 u16 nlmsg_flags, bool net_admin) in inet_sk_diag_fill() argument
250 net_admin)) in inet_sk_diag_fill()
328 if (handler->idiag_get_aux(sk, net_admin, skb) < 0) in inet_sk_diag_fill()
729 bool net_admin; in inet_diag_bc_audit() local
737 net_admin = netlink_net_capable(skb, CAP_NET_ADMIN); in inet_diag_bc_audit()
765 if (!net_admin) in inet_diag_bc_audit()
/linux/net/mptcp/
H A Dmptcp_diag.c18 bool net_admin) in sk_diag_dump() argument
24 net_admin); in sk_diag_dump()
77 bool net_admin) in mptcp_diag_dump_listeners() argument
122 ret = sk_diag_dump(sk, skb, cb, r, net_admin); in mptcp_diag_dump_listeners()
152 bool net_admin = netlink_net_capable(cb->skb, CAP_NET_ADMIN); in mptcp_diag_dump() local
177 ret = sk_diag_dump(sk, skb, cb, r, net_admin); in mptcp_diag_dump()
189 mptcp_diag_dump_listeners(skb, cb, r, net_admin); in mptcp_diag_dump()
H A Ddiag.c15 static int subflow_get_info(struct sock *sk, struct sk_buff *skb, bool net_admin) in subflow_get_info() argument
67 if (net_admin && in subflow_get_info()
93 static size_t subflow_get_info_size(const struct sock *sk, bool net_admin) in subflow_get_info_size() argument
105 if (net_admin) in subflow_get_info_size()
/linux/include/linux/
H A Dinet_diag.h24 bool net_admin,
52 u16 nlmsg_flags, bool net_admin);
77 struct user_namespace *user_ns, bool net_admin);
/linux/net/sctp/
H A Ddiag.c132 bool net_admin) in inet_sctp_diag_fill() argument
160 if (inet_diag_msg_attrs_fill(sk, skb, r, ext, user_ns, net_admin)) in inet_sctp_diag_fill()
230 bool net_admin; member
282 commp->nlh, commp->net_admin); in sctp_sock_dump_one()
327 commp->net_admin) < 0) { in sctp_sock_dump()
337 commp->net_admin) < 0) { in sctp_sock_dump()
404 cb->nlh, commp->net_admin) < 0) { in sctp_ep_dump()
443 .net_admin = netlink_net_capable(skb, CAP_NET_ADMIN), in sctp_diag_dump_one()
479 .net_admin = netlink_net_capable(cb->skb, CAP_NET_ADMIN), in sctp_diag_dump()
/linux/tools/testing/selftests/net/
H A Depoll_busy_poll.c231 cap_value_t net_admin[] = { CAP_NET_ADMIN }; in TEST_F() local
233 ret = cap_set_flag(self->caps, CAP_EFFECTIVE, 1, net_admin, CAP_CLEAR); in TEST_F()
251 ret = cap_set_flag(self->caps, CAP_EFFECTIVE, 1, net_admin, CAP_SET); in TEST_F()
/linux/net/tls/
H A Dtls_main.c1120 static int tls_get_info(struct sock *sk, struct sk_buff *skb, bool net_admin) in tls_get_info() argument
1184 static size_t tls_get_info_size(const struct sock *sk, bool net_admin) in tls_get_info_size() argument
/linux/include/net/
H A Dtcp.h2747 int (*get_info)(struct sock *sk, struct sk_buff *skb, bool net_admin);
2748 size_t (*get_info_size)(const struct sock *sk, bool net_admin);