• Home
  • Raw
  • Download

Lines Matching refs:sk

623 int __cgroup_bpf_run_filter_skb(struct sock *sk,  in __cgroup_bpf_run_filter_skb()  argument
633 if (!sk || !sk_fullsock(sk)) in __cgroup_bpf_run_filter_skb()
636 if (sk->sk_family != AF_INET && sk->sk_family != AF_INET6) in __cgroup_bpf_run_filter_skb()
639 cgrp = sock_cgroup_ptr(&sk->sk_cgrp_data); in __cgroup_bpf_run_filter_skb()
640 save_sk = skb->sk; in __cgroup_bpf_run_filter_skb()
641 skb->sk = sk; in __cgroup_bpf_run_filter_skb()
657 skb->sk = save_sk; in __cgroup_bpf_run_filter_skb()
676 int __cgroup_bpf_run_filter_sk(struct sock *sk, in __cgroup_bpf_run_filter_sk() argument
679 struct cgroup *cgrp = sock_cgroup_ptr(&sk->sk_cgrp_data); in __cgroup_bpf_run_filter_sk()
682 ret = BPF_PROG_RUN_ARRAY(cgrp->bpf.effective[type], sk, BPF_PROG_RUN); in __cgroup_bpf_run_filter_sk()
700 int __cgroup_bpf_run_filter_sock_addr(struct sock *sk, in __cgroup_bpf_run_filter_sock_addr() argument
706 .sk = sk, in __cgroup_bpf_run_filter_sock_addr()
717 if (sk->sk_family != AF_INET && sk->sk_family != AF_INET6) in __cgroup_bpf_run_filter_sock_addr()
725 cgrp = sock_cgroup_ptr(&sk->sk_cgrp_data); in __cgroup_bpf_run_filter_sock_addr()
748 int __cgroup_bpf_run_filter_sock_ops(struct sock *sk, in __cgroup_bpf_run_filter_sock_ops() argument
752 struct cgroup *cgrp = sock_cgroup_ptr(&sk->sk_cgrp_data); in __cgroup_bpf_run_filter_sock_ops()
983 int __cgroup_bpf_run_filter_setsockopt(struct sock *sk, int *level, in __cgroup_bpf_run_filter_setsockopt() argument
987 struct cgroup *cgrp = sock_cgroup_ptr(&sk->sk_cgrp_data); in __cgroup_bpf_run_filter_setsockopt()
989 .sk = sk, in __cgroup_bpf_run_filter_setsockopt()
1020 lock_sock(sk); in __cgroup_bpf_run_filter_setsockopt()
1023 release_sock(sk); in __cgroup_bpf_run_filter_setsockopt()
1054 int __cgroup_bpf_run_filter_getsockopt(struct sock *sk, int level, in __cgroup_bpf_run_filter_getsockopt() argument
1059 struct cgroup *cgrp = sock_cgroup_ptr(&sk->sk_cgrp_data); in __cgroup_bpf_run_filter_getsockopt()
1061 .sk = sk, in __cgroup_bpf_run_filter_getsockopt()
1104 lock_sock(sk); in __cgroup_bpf_run_filter_getsockopt()
1107 release_sock(sk); in __cgroup_bpf_run_filter_getsockopt()
1463 case offsetof(struct bpf_sockopt, sk): in cg_sockopt_is_valid_access()
1504 case offsetof(struct bpf_sockopt, sk): in cg_sockopt_convert_ctx_access()
1505 *insn++ = CG_SOCKOPT_ACCESS_FIELD(BPF_LDX_MEM, sk); in cg_sockopt_convert_ctx_access()