Home
last modified time | relevance | path

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

/linux-5.19.10/include/linux/
Dinet_diag.h23 bool net_admin,
27 bool net_admin);
49 u16 nlmsg_flags, bool net_admin);
84 struct user_namespace *user_ns, bool net_admin);
/linux-5.19.10/net/mptcp/
Dmptcp_diag.c19 struct nlattr *bc, bool net_admin) in sk_diag_dump() argument
25 net_admin); in sk_diag_dump()
78 bool net_admin) in mptcp_diag_dump_listeners() argument
122 ret = sk_diag_dump(sk, skb, cb, r, bc, net_admin); in mptcp_diag_dump_listeners()
152 bool net_admin = netlink_net_capable(cb->skb, CAP_NET_ADMIN); in mptcp_diag_dump() local
182 ret = sk_diag_dump(sk, skb, cb, r, bc, net_admin); in mptcp_diag_dump()
194 mptcp_diag_dump_listeners(skb, cb, r, net_admin); in mptcp_diag_dump()
/linux-5.19.10/net/ipv4/
Dtcp_diag.c112 static int tcp_diag_get_aux(struct sock *sk, bool net_admin, in tcp_diag_get_aux() argument
119 if (net_admin) { in tcp_diag_get_aux()
132 if (net_admin) { in tcp_diag_get_aux()
144 static size_t tcp_diag_get_aux_size(struct sock *sk, bool net_admin) in tcp_diag_get_aux_size() argument
150 if (net_admin && sk_fullsock(sk)) { in tcp_diag_get_aux_size()
167 if (net_admin && sk_fullsock(sk)) { in tcp_diag_get_aux_size()
Dinet_diag.c102 bool net_admin) in inet_sk_attr_size() argument
109 aux = handler->idiag_get_aux_size(sk, net_admin); in inet_sk_attr_size()
125 bool net_admin) in inet_diag_msg_attrs_fill() argument
153 if (net_admin && nla_put_u32(skb, INET_DIAG_MARK, sk->sk_mark)) in inet_diag_msg_attrs_fill()
237 u16 nlmsg_flags, bool net_admin) in inet_sk_diag_fill() argument
268 net_admin)) in inet_sk_diag_fill()
345 if (handler->idiag_get_aux(sk, net_admin, skb) < 0) in inet_sk_diag_fill()
417 u16 nlmsg_flags, bool net_admin) in inet_twsk_diag_fill() argument
445 if (net_admin && nla_put_u32(skb, INET_DIAG_MARK, in inet_twsk_diag_fill()
457 u16 nlmsg_flags, bool net_admin) in inet_req_diag_fill() argument
[all …]
Draw_diag.c130 struct nlattr *bc, bool net_admin) in sk_diag_dump() argument
135 return inet_sk_diag_fill(sk, NULL, skb, cb, r, NLM_F_MULTI, net_admin); in sk_diag_dump()
141 bool net_admin = netlink_net_capable(cb->skb, CAP_NET_ADMIN); in raw_diag_dump() local
179 if (sk_diag_dump(sk, skb, cb, r, bc, net_admin) < 0) in raw_diag_dump()
Dudp_diag.c19 struct nlattr *bc, 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
133 if (sk_diag_dump(sk, skb, cb, r, bc, net_admin) < 0) { in udp_dump()
/linux-5.19.10/net/sctp/
Ddiag.c125 bool net_admin) in inet_sctp_diag_fill() argument
153 if (inet_diag_msg_attrs_fill(sk, skb, r, ext, user_ns, net_admin)) in inet_sctp_diag_fill()
223 bool net_admin; member
271 commp->nlh, commp->net_admin); in sctp_sock_dump_one()
316 commp->net_admin) < 0) { in sctp_sock_dump()
326 commp->net_admin) < 0) { in sctp_sock_dump()
395 cb->nlh, commp->net_admin) < 0) { in sctp_ep_dump()
433 .net_admin = netlink_net_capable(skb, CAP_NET_ADMIN), in sctp_diag_dump_one()
469 .net_admin = netlink_net_capable(cb->skb, CAP_NET_ADMIN), in sctp_diag_dump()