cgroup.c (51356ac89b5a15e5207e8740d5f4f8b71cb7332f) | cgroup.c (02a8c817a31606b6b37c2b755f6569903f44241e) |
---|---|
1/* 2 * Functions to manage eBPF programs attached to cgroups 3 * 4 * Copyright (c) 2016 Daniel Mack 5 * 6 * This file is subject to the terms and conditions of version 2 of the GNU 7 * General Public License. See the file COPYING in the main directory of the 8 * Linux distribution for more details. --- 699 unchanged lines hidden (view full) --- 708{ 709 switch (func_id) { 710 case BPF_FUNC_map_lookup_elem: 711 return &bpf_map_lookup_elem_proto; 712 case BPF_FUNC_map_update_elem: 713 return &bpf_map_update_elem_proto; 714 case BPF_FUNC_map_delete_elem: 715 return &bpf_map_delete_elem_proto; | 1/* 2 * Functions to manage eBPF programs attached to cgroups 3 * 4 * Copyright (c) 2016 Daniel Mack 5 * 6 * This file is subject to the terms and conditions of version 2 of the GNU 7 * General Public License. See the file COPYING in the main directory of the 8 * Linux distribution for more details. --- 699 unchanged lines hidden (view full) --- 708{ 709 switch (func_id) { 710 case BPF_FUNC_map_lookup_elem: 711 return &bpf_map_lookup_elem_proto; 712 case BPF_FUNC_map_update_elem: 713 return &bpf_map_update_elem_proto; 714 case BPF_FUNC_map_delete_elem: 715 return &bpf_map_delete_elem_proto; |
716 case BPF_FUNC_map_push_elem: 717 return &bpf_map_push_elem_proto; 718 case BPF_FUNC_map_pop_elem: 719 return &bpf_map_pop_elem_proto; 720 case BPF_FUNC_map_peek_elem: 721 return &bpf_map_peek_elem_proto; |
|
716 case BPF_FUNC_get_current_uid_gid: 717 return &bpf_get_current_uid_gid_proto; 718 case BPF_FUNC_get_local_storage: 719 return &bpf_get_local_storage_proto; 720 case BPF_FUNC_get_current_cgroup_id: 721 return &bpf_get_current_cgroup_id_proto; 722 case BPF_FUNC_trace_printk: 723 if (capable(CAP_SYS_ADMIN)) --- 403 unchanged lines hidden --- | 722 case BPF_FUNC_get_current_uid_gid: 723 return &bpf_get_current_uid_gid_proto; 724 case BPF_FUNC_get_local_storage: 725 return &bpf_get_local_storage_proto; 726 case BPF_FUNC_get_current_cgroup_id: 727 return &bpf_get_current_cgroup_id_proto; 728 case BPF_FUNC_trace_printk: 729 if (capable(CAP_SYS_ADMIN)) --- 403 unchanged lines hidden --- |