/net/bridge/netfilter/ |
D | ebt_mark_m.c | 48 const struct compat_ebt_mark_m_info *user = src; in mark_mt_compat_from_user() local 51 kern->mark = user->mark; in mark_mt_compat_from_user() 52 kern->mask = user->mask; in mark_mt_compat_from_user() 53 kern->invert = user->invert; in mark_mt_compat_from_user() 54 kern->bitmask = user->bitmask; in mark_mt_compat_from_user() 59 struct compat_ebt_mark_m_info __user *user = dst; in mark_mt_compat_to_user() local 62 if (put_user(kern->mark, &user->mark) || in mark_mt_compat_to_user() 63 put_user(kern->mask, &user->mask) || in mark_mt_compat_to_user() 64 put_user(kern->invert, &user->invert) || in mark_mt_compat_to_user() 65 put_user(kern->bitmask, &user->bitmask)) in mark_mt_compat_to_user()
|
D | ebt_mark.c | 64 const struct compat_ebt_mark_t_info *user = src; in mark_tg_compat_from_user() local 67 kern->mark = user->mark; in mark_tg_compat_from_user() 68 kern->target = user->target; in mark_tg_compat_from_user() 73 struct compat_ebt_mark_t_info __user *user = dst; in mark_tg_compat_to_user() local 76 if (put_user(kern->mark, &user->mark) || in mark_tg_compat_to_user() 77 put_user(kern->target, &user->target)) in mark_tg_compat_to_user()
|
D | ebt_limit.c | 59 user2credits(u_int32_t user) in user2credits() argument 62 if (user > 0xFFFFFFFF / (HZ*CREDITS_PER_JIFFY)) in user2credits() 64 return (user / EBT_LIMIT_SCALE) * HZ * CREDITS_PER_JIFFY; in user2credits() 66 return (user * HZ * CREDITS_PER_JIFFY) / EBT_LIMIT_SCALE; in user2credits()
|
/net/unix/ |
D | scm.c | 47 void unix_inflight(struct user_struct *user, struct file *fp) in unix_inflight() argument 66 WRITE_ONCE(user->unix_inflight, user->unix_inflight + 1); in unix_inflight() 70 void unix_notinflight(struct user_struct *user, struct file *fp) in unix_notinflight() argument 88 WRITE_ONCE(user->unix_inflight, user->unix_inflight - 1); in unix_notinflight() 100 struct user_struct *user = current_user(); in too_many_unix_fds() local 102 if (unlikely(READ_ONCE(user->unix_inflight) > task_rlimit(p, RLIMIT_NOFILE))) in too_many_unix_fds() 124 unix_inflight(scm->fp->user, scm->fp->fp[i]); in unix_attach_fds() 137 unix_notinflight(scm->fp->user, scm->fp->fp[i]); in unix_detach_fds()
|
/net/xdp/ |
D | xdp_umem.c | 34 if (umem->user) { in xdp_umem_unaccount_pages() 35 atomic_long_sub(umem->npgs, &umem->user->locked_vm); in xdp_umem_unaccount_pages() 36 free_uid(umem->user); in xdp_umem_unaccount_pages() 136 umem->user = get_uid(current_user()); in xdp_umem_account_pages() 139 old_npgs = atomic_long_read(&umem->user->locked_vm); in xdp_umem_account_pages() 142 free_uid(umem->user); in xdp_umem_account_pages() 143 umem->user = NULL; in xdp_umem_account_pages() 146 } while (atomic_long_cmpxchg(&umem->user->locked_vm, old_npgs, in xdp_umem_account_pages() 208 umem->user = NULL; in xdp_umem_reg()
|
/net/ipv4/ |
D | ip_fragment.c | 121 static bool frag_expire_skip_icmp(u32 user) in frag_expire_skip_icmp() argument 123 return user == IP_DEFRAG_AF_PACKET || in frag_expire_skip_icmp() 124 ip_defrag_user_in_between(user, IP_DEFRAG_CONNTRACK_IN, in frag_expire_skip_icmp() 126 ip_defrag_user_in_between(user, IP_DEFRAG_CONNTRACK_BRIDGE_IN, in frag_expire_skip_icmp() 186 if (frag_expire_skip_icmp(qp->q.key.v4.user) && in ip_expire() 206 u32 user, int vif) in ip_find() argument 211 .user = user, in ip_find() 408 return qp->q.key.v4.user == IP_DEFRAG_LOCAL_DELIVER; in ip_frag_coalesce_ok() 484 int ip_defrag(struct net *net, struct sk_buff *skb, u32 user) in ip_defrag() argument 493 qp = ip_find(net, ip_hdr(skb), user, vif); in ip_defrag() [all …]
|
/net/ax25/ |
D | ax25_uid.c | 72 ax25_uid_assoc *user; in ax25_uid_ioctl() local 97 user = ax25_findbyuid(sax25_kuid); in ax25_uid_ioctl() 98 if (user) { in ax25_uid_ioctl() 99 ax25_uid_put(user); in ax25_uid_ioctl()
|
D | ax25_route.c | 399 ax25_uid_assoc *user; in ax25_rt_autobind() local 414 user = ax25_findbyuid(current_euid()); in ax25_rt_autobind() 415 if (user) { in ax25_rt_autobind() 416 ax25->source_addr = user->call; in ax25_rt_autobind() 417 ax25_uid_put(user); in ax25_rt_autobind()
|
/net/ipv4/netfilter/ |
D | nf_defrag_ipv4.c | 27 u_int32_t user) in nf_ct_ipv4_gather_frags() argument 32 err = ip_defrag(net, skb, user); in nf_ct_ipv4_gather_frags() 84 enum ip_defrag_users user = in ipv4_conntrack_defrag() local 87 if (nf_ct_ipv4_gather_frags(state->net, skb, user)) in ipv4_conntrack_defrag()
|
D | ip_tables.c | 397 (strcmp(t->target.u.user.name, in mark_source_chains() 427 if (strcmp(t->target.u.user.name, in mark_source_chains() 481 match = xt_request_find_match(NFPROTO_IPV4, m->u.user.name, in find_check_match() 482 m->u.user.revision); in find_check_match() 544 target = xt_request_find_target(NFPROTO_IPV4, t->u.user.name, in find_check_entry() 545 t->u.user.revision); in find_check_entry() 579 if (strcmp(t->u.user.name, XT_STANDARD_TARGET) != 0) in check_underflow() 694 if (strcmp(ipt_get_target(iter)->u.user.name, in translate_table() 946 static int get_info(struct net *net, void __user *user, const int *len) in get_info() argument 955 if (copy_from_user(name, user, sizeof(name)) != 0) in get_info() [all …]
|
D | arp_tables.c | 334 (strcmp(t->target.u.user.name, in mark_source_chains() 365 if (strcmp(t->target.u.user.name, in mark_source_chains() 417 target = xt_request_find_target(NFPROTO_ARP, t->u.user.name, in find_check_entry() 418 t->u.user.revision); in find_check_entry() 445 if (strcmp(t->u.user.name, XT_STANDARD_TARGET) != 0) in check_underflow() 556 if (strcmp(arpt_get_target(iter)->u.user.name, in translate_table() 791 static int get_info(struct net *net, void __user *user, const int *len) in get_info() argument 800 if (copy_from_user(name, user, sizeof(name)) != 0) in get_info() 831 if (copy_to_user(user, &info, *len) != 0) in get_info() 1106 target = xt_request_find_target(NFPROTO_ARP, t->u.user.name, in check_compat_entry_size_and_hooks() [all …]
|
D | Kconfig | 73 This is a backwards-compat option for the user's convenience 81 This is a backwards-compat option for the user's convenience 148 This is a backwards-compat option for the user's convenience 168 This is a backwards-compat option for the user's convenience 228 This is a backwards-compat option for the user's convenience 236 This is a backwards-compat option for the user's convenience 245 This is a backwards-compat option for the user's convenience 282 This is a backwards-compatible option for the user's convenience
|
/net/netfilter/ |
D | nf_conntrack_ovs.c | 150 enum ip_defrag_users user = IP_DEFRAG_CONNTRACK_IN + zone; in nf_ct_handle_fragments() local 154 err = ip_defrag(net, skb, user); in nf_ct_handle_fragments() 162 enum ip6_defrag_users user = IP6_DEFRAG_CONNTRACK_IN + zone; in nf_ct_handle_fragments() local 165 err = nf_ct_frag6_gather(net, skb, user); in nf_ct_handle_fragments()
|
D | xt_limit.c | 95 static u32 user2credits(u32 user) in user2credits() argument 98 if (user > 0xFFFFFFFF / (HZ*CREDITS_PER_JIFFY)) in user2credits() 100 return (user / XT_LIMIT_SCALE) * HZ * CREDITS_PER_JIFFY; in user2credits() 102 return (user * HZ * CREDITS_PER_JIFFY) / XT_LIMIT_SCALE; in user2credits()
|
D | x_tables.c | 309 U->u.user.name, K->u.kernel.TYPE->name, \ 310 &U->u.user.revision, K->u.kernel.TYPE->revision) 757 u_int16_t msize = cm->u.user.match_size; in xt_compat_match_from_user() 758 char name[sizeof(m->u.user.name)]; in xt_compat_match_from_user() 768 m->u.user.match_size = msize; in xt_compat_match_from_user() 771 strscpy_pad(m->u.user.name, name, sizeof(m->u.user.name)); in xt_compat_match_from_user() 790 u_int16_t msize = m->u.user.match_size - off; in xt_compat_match_to_user() 841 if (strcmp(t->u.user.name, XT_STANDARD_TARGET) == 0) { in xt_compat_check_entry_offsets() 849 } else if (strcmp(t->u.user.name, XT_ERROR_TARGET) == 0) { in xt_compat_check_entry_offsets() 935 if (strcmp(t->u.user.name, XT_STANDARD_TARGET) == 0) { in xt_check_entry_offsets() [all …]
|
D | xt_hashlimit.c | 489 static u64 user2credits(u64 user, int revision) in user2credits() argument 498 return div64_u64(user, div64_u64(scale, HZ * cpj)); in user2credits() 500 return user * div64_u64(HZ * cpj, scale); in user2credits() 503 static u32 user2credits_byte(u32 user) in user2credits_byte() argument 505 u64 us = user; in user2credits_byte() 510 static u64 user2rate(u64 user) in user2rate() argument 512 if (user != 0) { in user2rate() 513 return div64_u64(XT_HASHLIMIT_SCALE_v2, user); in user2rate() 516 user); in user2rate() 521 static u64 user2rate_bytes(u32 user) in user2rate_bytes() argument [all …]
|
/net/core/ |
D | scm.c | 89 fpl->user = NULL; in scm_fp_copy() 116 if (!fpl->user) in scm_fp_copy() 117 fpl->user = get_uid(current_user()); in scm_fp_copy() 131 free_uid(fpl->user); in __scm_destroy() 375 new_fpl->user = get_uid(fpl->user); in scm_fp_dup()
|
/net/sctp/ |
D | Kconfig | 24 -- acknowledged error-free non-duplicated transfer of user data, 26 -- sequenced delivery of user messages within multiple streams, 27 with an option for order-of-arrival delivery of individual user 29 -- optional bundling of multiple user messages into a single SCTP
|
/net/ipv6/netfilter/ |
D | ip6_tables.c | 415 (strcmp(t->target.u.user.name, in mark_source_chains() 445 if (strcmp(t->target.u.user.name, in mark_source_chains() 498 match = xt_request_find_match(NFPROTO_IPV6, m->u.user.name, in find_check_match() 499 m->u.user.revision); in find_check_match() 563 target = xt_request_find_target(NFPROTO_IPV6, t->u.user.name, in find_check_entry() 564 t->u.user.revision); in find_check_entry() 597 if (strcmp(t->u.user.name, XT_STANDARD_TARGET) != 0) in check_underflow() 711 if (strcmp(ip6t_get_target(iter)->u.user.name, in translate_table() 962 static int get_info(struct net *net, void __user *user, const int *len) in get_info() argument 971 if (copy_from_user(name, user, sizeof(name)) != 0) in get_info() [all …]
|
D | nf_conntrack_reasm.c | 145 static struct frag_queue *fq_find(struct net *net, __be32 id, u32 user, in fq_find() argument 153 .user = user, in fq_find() 443 int nf_ct_frag6_gather(struct net *net, struct sk_buff *skb, u32 user) in nf_ct_frag6_gather() argument 477 fq = fq_find(net, fhdr->identification, user, hdr, in nf_ct_frag6_gather()
|
/net/bluetooth/hidp/ |
D | core.c | 66 struct l2cap_user *user); 68 struct l2cap_user *user); 936 session->user.probe = hidp_session_probe; in hidp_session_new() 937 session->user.remove = hidp_session_remove; in hidp_session_new() 938 INIT_LIST_HEAD(&session->user.list); in hidp_session_new() 1098 struct l2cap_user *user) in hidp_session_probe() argument 1100 struct hidp_session *session = container_of(user, in hidp_session_probe() 1102 user); in hidp_session_probe() 1159 struct l2cap_user *user) in hidp_session_remove() argument 1161 struct hidp_session *session = container_of(user, in hidp_session_remove() [all …]
|
/net/netrom/ |
D | af_netrom.c | 570 ax25_uid_assoc *user; in nr_bind() local 609 user = ax25_findbyuid(current_euid()); in nr_bind() 610 if (user) { in nr_bind() 611 nr->user_addr = user->call; in nr_bind() 612 ax25_uid_put(user); in nr_bind() 642 ax25_uid_assoc *user; in nr_connect() local 688 user = ax25_findbyuid(current_euid()); in nr_connect() 689 if (user) { in nr_connect() 690 nr->user_addr = user->call; in nr_connect() 691 ax25_uid_put(user); in nr_connect() [all …]
|
/net/iucv/ |
D | Kconfig | 7 Select this option if you want to use inter-user communication 17 based on z/VM inter-user communication vehicle or based on
|
/net/bpfilter/ |
D | Kconfig | 12 tristate "bpfilter kernel module with user mode helper" 17 This builds bpfilter kernel module with embedded user mode helper
|
/net/sched/ |
D | act_ipt.c | 40 target = xt_request_find_target(AF_INET, t->u.user.name, in ipt_init_target() 41 t->u.user.revision); in ipt_init_target() 344 t = kmemdup(ipt->tcfi_t, ipt->tcfi_t->u.user.target_size, GFP_ATOMIC); in tcf_ipt_dump() 350 strcpy(t->u.user.name, ipt->tcfi_t->u.kernel.target->name); in tcf_ipt_dump() 352 if (nla_put(skb, TCA_IPT_TARG, ipt->tcfi_t->u.user.target_size, t) || in tcf_ipt_dump()
|