Home
last modified time | relevance | path

Searched refs:user (Results 1 – 25 of 60) sorted by relevance

123

/net/bridge/netfilter/
Debt_mark_m.c48 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()
Debt_mark.c64 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()
Debt_limit.c59 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/
Dscm.c47 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/
Dxdp_umem.c34 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/
Dip_fragment.c121 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/
Dax25_uid.c72 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()
Dax25_route.c399 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/
Dnf_defrag_ipv4.c27 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()
Dip_tables.c397 (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 …]
Darp_tables.c334 (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 …]
DKconfig73 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/
Dnf_conntrack_ovs.c150 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()
Dxt_limit.c95 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()
Dx_tables.c309 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 …]
Dxt_hashlimit.c489 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/
Dscm.c89 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/
DKconfig24 -- 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/
Dip6_tables.c415 (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 …]
Dnf_conntrack_reasm.c145 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/
Dcore.c66 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/
Daf_netrom.c570 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/
DKconfig7 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/
DKconfig12 tristate "bpfilter kernel module with user mode helper"
17 This builds bpfilter kernel module with embedded user mode helper
/net/sched/
Dact_ipt.c40 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()

123