Home
last modified time | relevance | path

Searched refs:cgrp (Results 1 – 3 of 3) sorted by relevance

/net/netfilter/
Dxt_cgroup.c39 struct cgroup *cgrp; in cgroup_mt_check_v1() local
56 cgrp = cgroup_get_from_path(info->path); in cgroup_mt_check_v1()
57 if (IS_ERR(cgrp)) { in cgroup_mt_check_v1()
59 PTR_ERR(cgrp)); in cgroup_mt_check_v1()
62 info->priv = cgrp; in cgroup_mt_check_v1()
71 struct cgroup *cgrp; in cgroup_mt_check_v2() local
88 cgrp = cgroup_get_from_path(info->path); in cgroup_mt_check_v2()
89 if (IS_ERR(cgrp)) { in cgroup_mt_check_v2()
91 PTR_ERR(cgrp)); in cgroup_mt_check_v2()
94 info->priv = cgrp; in cgroup_mt_check_v2()
Dnft_socket.c42 struct cgroup *cgrp; in nft_sock_get_eval_cgroupv2() local
48 cgrp = cgroup_ancestor(sock_cgroup_ptr(&sk->sk_cgrp_data), level); in nft_sock_get_eval_cgroupv2()
49 if (!cgrp) in nft_sock_get_eval_cgroupv2()
52 cgid = cgroup_id(cgrp); in nft_sock_get_eval_cgroupv2()
/net/core/
Dfilter.c4762 struct cgroup *cgrp; in BPF_CALL_3() local
4771 cgrp = READ_ONCE(array->ptrs[idx]); in BPF_CALL_3()
4772 if (unlikely(!cgrp)) in BPF_CALL_3()
4775 return sk_under_cgroup_hierarchy(sk, cgrp); in BPF_CALL_3()
4790 struct cgroup *cgrp; in __bpf_sk_cgroup_id() local
4796 cgrp = sock_cgroup_ptr(&sk->sk_cgrp_data); in __bpf_sk_cgroup_id()
4797 return cgroup_id(cgrp); in __bpf_sk_cgroup_id()
4816 struct cgroup *cgrp; in __bpf_sk_ancestor_cgroup_id() local
4822 cgrp = sock_cgroup_ptr(&sk->sk_cgrp_data); in __bpf_sk_ancestor_cgroup_id()
4823 ancestor = cgroup_ancestor(cgrp, ancestor_level); in __bpf_sk_ancestor_cgroup_id()