/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 | 48 void unix_inflight(struct user_struct *user, struct file *fp) in unix_inflight() argument 67 WRITE_ONCE(user->unix_inflight, user->unix_inflight + 1); in unix_inflight() 71 void unix_notinflight(struct user_struct *user, struct file *fp) in unix_notinflight() argument 89 WRITE_ONCE(user->unix_inflight, user->unix_inflight - 1); in unix_notinflight() 101 struct user_struct *user = current_user(); in too_many_unix_fds() local 103 if (unlikely(READ_ONCE(user->unix_inflight) > task_rlimit(p, RLIMIT_NOFILE))) in too_many_unix_fds() 125 unix_inflight(scm->fp->user, scm->fp->fp[i]); in unix_attach_fds() 138 unix_notinflight(scm->fp->user, scm->fp->fp[i]); in unix_detach_fds()
|
/net/xdp/ |
D | xdp_umem.c | 36 if (umem->user) { in xdp_umem_unaccount_pages() 37 atomic_long_sub(umem->npgs, &umem->user->locked_vm); in xdp_umem_unaccount_pages() 38 free_uid(umem->user); in xdp_umem_unaccount_pages() 138 umem->user = get_uid(current_user()); in xdp_umem_account_pages() 141 old_npgs = atomic_long_read(&umem->user->locked_vm); in xdp_umem_account_pages() 144 free_uid(umem->user); in xdp_umem_account_pages() 145 umem->user = NULL; in xdp_umem_account_pages() 148 } while (atomic_long_cmpxchg(&umem->user->locked_vm, old_npgs, in xdp_umem_account_pages() 210 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() 185 if (frag_expire_skip_icmp(qp->q.key.v4.user) && in ip_expire() 205 u32 user, int vif) in ip_find() argument 210 .user = user, in ip_find() 399 return qp->q.key.v4.user == IP_DEFRAG_LOCAL_DELIVER; in ip_frag_coalesce_ok() 475 int ip_defrag(struct net *net, struct sk_buff *skb, u32 user) in ip_defrag() argument 485 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 | 400 ax25_uid_assoc *user; in ax25_rt_autobind() local 415 user = ax25_findbyuid(current_euid()); in ax25_rt_autobind() 416 if (user) { in ax25_rt_autobind() 417 ax25->source_addr = user->call; in ax25_rt_autobind() 418 ax25_uid_put(user); in ax25_rt_autobind()
|
/net/ipv4/netfilter/ |
D | nf_defrag_ipv4.c | 26 u_int32_t user) in nf_ct_ipv4_gather_frags() argument 31 err = ip_defrag(net, skb, user); in nf_ct_ipv4_gather_frags() 83 enum ip_defrag_users user = in ipv4_conntrack_defrag() local 86 if (nf_ct_ipv4_gather_frags(state->net, skb, user)) in ipv4_conntrack_defrag()
|
D | ip_tables.c | 398 (strcmp(t->target.u.user.name, in mark_source_chains() 428 if (strcmp(t->target.u.user.name, in mark_source_chains() 482 match = xt_request_find_match(NFPROTO_IPV4, m->u.user.name, in find_check_match() 483 m->u.user.revision); in find_check_match() 545 target = xt_request_find_target(NFPROTO_IPV4, t->u.user.name, in find_check_entry() 546 t->u.user.revision); in find_check_entry() 580 if (strcmp(t->u.user.name, XT_STANDARD_TARGET) != 0) in check_underflow() 695 if (strcmp(ipt_get_target(iter)->u.user.name, in translate_table() 947 static int get_info(struct net *net, void __user *user, const int *len) in get_info() argument 956 if (copy_from_user(name, user, sizeof(name)) != 0) in get_info() [all …]
|
D | arp_tables.c | 333 (strcmp(t->target.u.user.name, in mark_source_chains() 364 if (strcmp(t->target.u.user.name, in mark_source_chains() 416 target = xt_request_find_target(NFPROTO_ARP, t->u.user.name, in find_check_entry() 417 t->u.user.revision); in find_check_entry() 444 if (strcmp(t->u.user.name, XT_STANDARD_TARGET) != 0) in check_underflow() 555 if (strcmp(arpt_get_target(iter)->u.user.name, in translate_table() 790 static int get_info(struct net *net, void __user *user, const int *len) in get_info() argument 799 if (copy_from_user(name, user, sizeof(name)) != 0) in get_info() 830 if (copy_to_user(user, &info, *len) != 0) in get_info() 1101 target = xt_request_find_target(NFPROTO_ARP, t->u.user.name, in check_compat_entry_size_and_hooks() [all …]
|
D | Kconfig | 81 This is a backwards-compat option for the user's convenience 89 This is a backwards-compat option for the user's convenience 156 This is a backwards-compat option for the user's convenience 176 This is a backwards-compat option for the user's convenience 236 This is a backwards-compat option for the user's convenience 244 This is a backwards-compat option for the user's convenience 253 This is a backwards-compat option for the user's convenience 304 This is a backwards-compatible option for the user's convenience
|
/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() 371 new_fpl->user = get_uid(fpl->user); in scm_fp_dup()
|
/net/netfilter/ |
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 strncpy(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/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 | 417 (strcmp(t->target.u.user.name, in mark_source_chains() 447 if (strcmp(t->target.u.user.name, in mark_source_chains() 500 match = xt_request_find_match(NFPROTO_IPV6, m->u.user.name, in find_check_match() 501 m->u.user.revision); in find_check_match() 565 target = xt_request_find_target(NFPROTO_IPV6, t->u.user.name, in find_check_entry() 566 t->u.user.revision); in find_check_entry() 599 if (strcmp(t->u.user.name, XT_STANDARD_TARGET) != 0) in check_underflow() 713 if (strcmp(ip6t_get_target(iter)->u.user.name, in translate_table() 964 static int get_info(struct net *net, void __user *user, const int *len) in get_info() argument 973 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() 437 int nf_ct_frag6_gather(struct net *net, struct sk_buff *skb, u32 user) in nf_ct_frag6_gather() argument 472 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); 937 session->user.probe = hidp_session_probe; in hidp_session_new() 938 session->user.remove = hidp_session_remove; in hidp_session_new() 939 INIT_LIST_HEAD(&session->user.list); in hidp_session_new() 1099 struct l2cap_user *user) in hidp_session_probe() argument 1101 struct hidp_session *session = container_of(user, in hidp_session_probe() 1103 user); in hidp_session_probe() 1160 struct l2cap_user *user) in hidp_session_remove() argument 1162 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 | 41 target = xt_request_find_target(AF_INET, t->u.user.name, in ipt_init_target() 42 t->u.user.revision); in ipt_init_target() 302 t = kmemdup(ipt->tcfi_t, ipt->tcfi_t->u.user.target_size, GFP_ATOMIC); in tcf_ipt_dump() 308 strcpy(t->u.user.name, ipt->tcfi_t->u.kernel.target->name); in tcf_ipt_dump() 310 if (nla_put(skb, TCA_IPT_TARG, ipt->tcfi_t->u.user.target_size, t) || in tcf_ipt_dump()
|
/net/tipc/ |
D | crypto.h | 122 user:4, member 132 user:4,
|