Lines Matching refs:net_admin

102 				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
485 if (net_admin && nla_put_u32(skb, INET_DIAG_MARK, in inet_req_diag_fill()
498 u16 nlmsg_flags, bool net_admin) in sk_diag_fill() argument
501 return inet_twsk_diag_fill(sk, skb, cb, nlmsg_flags, net_admin); in sk_diag_fill()
504 return inet_req_diag_fill(sk, skb, cb, nlmsg_flags, net_admin); in sk_diag_fill()
507 net_admin); in sk_diag_fill()
559 bool net_admin = netlink_net_capable(in_skb, CAP_NET_ADMIN); in inet_diag_dump_one_icsk() local
569 rep = nlmsg_new(inet_sk_attr_size(sk, req, net_admin), GFP_KERNEL); in inet_diag_dump_one_icsk()
575 err = sk_diag_fill(sk, rep, cb, req, 0, net_admin); in inet_diag_dump_one_icsk()
914 bool net_admin = netlink_net_capable(skb, CAP_NET_ADMIN); in inet_diag_bc_audit() local
948 if (!net_admin) in inet_diag_bc_audit()
1013 bool net_admin = netlink_net_capable(cb->skb, CAP_NET_ADMIN); in inet_diag_dump_icsk() local
1063 net_admin) < 0) { in inet_diag_dump_icsk()
1142 NLM_F_MULTI, net_admin); in inet_diag_dump_icsk()