{"id":41901,"date":"2021-04-15T11:00:32","date_gmt":"2021-04-15T02:00:32","guid":{"rendered":"https:\/\/www.creationline.com\/?p=41901"},"modified":"2021-04-15T10:38:58","modified_gmt":"2021-04-15T01:38:58","slug":"libbpfgo%e3%81%ab%e3%82%88%e3%82%8bebpf%e3%83%97%e3%83%ad%e3%82%b0%e3%83%a9%e3%83%a0%e3%81%ae%e4%bd%9c%e3%82%8a%e6%96%b9-aqua-%e3%82%bb%e3%82%ad%e3%83%a5%e3%83%aa%e3%83%86%e3%82%a3-ebpf","status":"publish","type":"post","link":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/aquasecurity\/41901","title":{"rendered":"libbpfgo\u306b\u3088\u308beBPF\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u4f5c\u308a\u65b9 #aqua #\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3 #eBPF"},"content":{"rendered":"<p>\u672c\u30d6\u30ed\u30b0\u306f\u300cAqua Security\u300d\u793e\u306e\u6280\u8853\u30d6\u30ed\u30b0\u30672021\u5e744\u67086\u65e5\u306b\u516c\u958b\u3055\u308c\u305f\u300c<a href=\"https:\/\/blog.aquasec.com\/libbpf-ebpf-programs\" rel=\"nofollow noopener noreferrer\" target=\"_blank\"> How to Build eBPF Programs with libbpfgo <\/a>\u300d\u306e\u65e5\u672c\u8a9e\u7ffb\u8a33\u3067\u3059\u3002<\/p>\n<p><center><img loading=\"lazy\" decoding=\"async\" src=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2021\/04\/8bcd9345b70138c57efe2a1008c24170.png\" alt=\"\" width=\"867\" height=\"417\" class=\"alignnone size-full wp-image-41902\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2021\/04\/8bcd9345b70138c57efe2a1008c24170.png 867w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2021\/04\/8bcd9345b70138c57efe2a1008c24170-360x173.png 360w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2021\/04\/8bcd9345b70138c57efe2a1008c24170-768x369.png 768w\" sizes=\"auto, (max-width: 867px) 100vw, 867px\" \/><\/center><\/p>\n<h2>libbpfgo\u306b\u3088\u308beBPF\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u4f5c\u308a\u65b9<\/h2>\n<hr \/>\n<p>\u3053\u3053\u6570\u5e74\u3001\u79c1\u306f BCC \u3068\u3044\u3046\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f7f\u3063\u3066\u3001bpf \u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u30b3\u30f3\u30d1\u30a4\u30eb\u3001\u30ed\u30fc\u30c9\u3001\u64cd\u4f5c\u3092\u3057\u3066\u304d\u307e\u3057\u305f\u3002\u305d\u3057\u3066\u6700\u8fd1\u306b\u306a\u308a\u3001<a href=\"https:\/\/github.com\/libbpf\/libbpf\" rel=\"noopener noreferrer\" target=\"_blank\">libbpf<\/a> \u3068\u547c\u3070\u308c\u308b ebpf \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u69cb\u7bc9\u3059\u308b\u305f\u3081\u306e\u3088\u308a\u826f\u3044\u65b9\u6cd5\u306b\u3064\u3044\u3066\u5b66\u3073\u307e\u3057\u305f\u3002libbpf \u30d9\u30fc\u30b9\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u958b\u767a\u3059\u308b\u969b\u306b\u5229\u7528\u3067\u304d\u308b\u3044\u304f\u3064\u304b\u306e\u826f\u3044\u30ea\u30bd\u30fc\u30b9\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u59cb\u3081\u3088\u3046\u3068\u3059\u308b\u3068\u304b\u306a\u308a\u5727\u5012\u3055\u308c\u3066\u3057\u307e\u3044\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u306e\u76ee\u7684\u306f\u3001libbpf \u3068\u306f\u4f55\u304b\u3001\u3069\u3046\u3084\u3063\u3066\u4f7f\u3044\u59cb\u3081\u308b\u304b\u306b\u3064\u3044\u3066\u3001\u7c21\u5358\u304b\u3064\u52b9\u679c\u7684\u306b\u8aac\u660e\u3059\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>libbpf \u306f\u3001\u30e6\u30fc\u30b6\u30fc\u30b9\u30da\u30fc\u30b9\u3068 bpf \u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u4e21\u65b9\u306b\u30a4\u30f3\u30dd\u30fc\u30c8\u3067\u304d\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3059\u3002libbpf \u306f\u3001bpf \u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u30ed\u30fc\u30c9\u3057\u3066\u64cd\u4f5c\u3059\u308b\u305f\u3081\u306e API \u3092\u958b\u767a\u8005\u306b\u63d0\u4f9b\u3057\u307e\u3059\u3002<a href=\"https:\/\/git.kernel.org\/pub\/scm\/linux\/kernel\/git\/bpf\/bpf-next.git\/tree\/tools\/lib\/bpf\" rel=\"noopener noreferrer\" target=\"_blank\">Linux \u30ab\u30fc\u30cd\u30eb\u306e\u30bd\u30fc\u30b9\u30c4\u30ea\u30fc\u3067\u7ba1\u7406<\/a>\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001\u4fe1\u983c\u3067\u304d\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u3067\u3059\u3002<\/p>\n<p>libbpf \u306e\u6027\u8cea\u3068\u4f7f\u3044\u65b9\u3092\u8aac\u660e\u3059\u308b\u305f\u3081\u306b\u3001\u30d7\u30ed\u30bb\u30b9\u304c mmap() \u30b7\u30b9\u30c6\u30e0\u30b3\u30fc\u30eb\u3092\u4f7f\u7528\u3059\u308b\u305f\u3073\u306b\u901a\u77e5\u3055\u308c\u308b\u7c21\u5358\u306a bpf \u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u66f8\u3044\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u6b21\u306b\u3001\u30b3\u30f3\u30d1\u30a4\u30eb\u3055\u308c\u305f bpf \u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u30ed\u30fc\u30c9\u3057\u3001\u305d\u306e\u51fa\u529b\u3092\u30ea\u30c3\u30b9\u30f3\u3059\u308b\u30e6\u30fc\u30b6\u30fc\u30b9\u30da\u30fc\u30b9\u30d7\u30ed\u30b0\u30e9\u30e0\u3092 C \u8a00\u8a9e\u3067\u66f8\u304d\u307e\u3059\u3002<\/p>\n<p><center><img decoding=\"async\" src=\"https:\/\/blog.aquasec.com\/hs-fs\/hubfs\/libbpfgo%20diagram%201-01-jpg.jpeg?width=850&name=libbpfgo%20diagram%201-01-jpg.jpeg\" alt=\"\" \/><\/center><\/p>\n<h3>bpf\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u4f5c\u6210<\/h3>\n<p>\u307e\u305a\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30d8\u30c3\u30c0\u30d5\u30a1\u30a4\u30eb\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002<\/p>\n<table border=\"0\" cellpadding=\"4\" style=\"width: 100%; margin-left: auto; margin-right: auto; border-color: #99acc2; border-style: none; border-collapse: collapse; table-layout: fixed;\">\n<tbody>\n<tr>\n<td style=\"width: 100%; background-color: #eeeeee;\">\n<p style=\"font-size: 18px;\"><span style=\"font-family: 'courier new', courier;\">#include &lt;bpf\/bpf_helpers.h&gt;<\/span><\/p>\n<p style=\"font-size: 18px;\"><span style=\"font-family: 'courier new', courier;\">#include \"vmlinux.h\"<\/span><\/p>\n<p style=\"font-size: 18px;\"><span style=\"font-family: 'courier new', courier;\">#include \"simple.h\"<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>bpf_helpers.h \u30d8\u30c3\u30c0\u30d5\u30a1\u30a4\u30eb\u306f\u3001libbpf \u306e\u4e00\u90e8\u3067\u3059\u3002bpf_helpers.h \u306b\u306f\u3001bpf \u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u4f7f\u7528\u3067\u304d\u308b\u4fbf\u5229\u306a\u95a2\u6570\u304c\u591a\u304f\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002vmlinux.h \u306b\u3064\u3044\u3066\u306f\u3001\u88dc\u8db3\u7684\u306a\u30d6\u30ed\u30b0\u8a18\u4e8b\u3092\u66f8\u3044\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u300c<a href=\"\/41897\" rel=\"noopener noreferrer\" target=\"_blank\">vmlinux.h\u3068\u306f\u4f55\u304b\u3002\u306a\u305ceBPF\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u3068\u3063\u3066\u91cd\u8981\u306a\u306e\u304b\u3002<\/a>\u300d\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>simple.h \u306b\u306f\u3001bpf \u3068\u30e6\u30fc\u30b6\u30fc\u30b9\u30da\u30fc\u30b9\u306e\u30b3\u30fc\u30c9\u306b\u542b\u3081\u305f\u3044\u69cb\u9020\u4f53\u3092\u5b9a\u7fa9\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u306f\u6b21\u306e\u3088\u3046\u306a\u5358\u7d14\u306a\u3082\u306e\u3067\u3059\u3002<\/p>\n<div data-hs-responsive-table=\"true\" style=\"overflow-x: auto; max-width: 100%; width: 100%; margin-left: auto; margin-right: auto;\">\n<table border=\"0\" cellpadding=\"4\" style=\"width: 100%; border-color: #99acc2; border-style: none; border-collapse: collapse; table-layout: fixed; height: 199px;\">\n<tbody>\n<tr style=\"height: 199px;\">\n<td style=\"width: 100%; background-color: #eeeeee; height: 199px;\">\n<p style=\"font-size: 18px;\"><span style=\"font-family: 'courier new', courier;\">struct process_info {&nbsp;&nbsp; <\/span><\/p>\n<p style=\"font-size: 18px; padding-left: 40px;\"><span style=\"font-family: 'courier new', courier;\">int pid;&nbsp;&nbsp; <\/span><\/p>\n<p style=\"font-size: 18px; padding-left: 40px;\"><span style=\"font-family: 'courier new', courier;\">char comm[100];<\/span><\/p>\n<p style=\"font-size: 18px;\"><span style=\"font-family: 'courier new', courier;\">};<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u6b21\u306b\u3001bpf \u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u547c\u3073\u51fa\u3055\u308c\u308b\u305f\u3073\u306b\u3001\u51fa\u529b\u3092\u30e6\u30fc\u30b6\u30fc\u30b9\u30da\u30fc\u30b9\u306b\u9001\u4fe1\u3059\u308b\u624b\u6bb5\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u306b\u3001<a href=\"https:\/\/nakryiko.com\/posts\/bpf-ringbuf\/\" rel=\"noopener noreferrer\" target=\"_blank\">\u30ea\u30f3\u30b0\u30d0\u30c3\u30d5\u30a1<\/a>\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<div data-hs-responsive-table=\"true\" style=\"overflow-x: auto; max-width: 100%; width: 100%; margin-left: auto; margin-right: auto;\">\n<table border=\"0\" cellpadding=\"4\" style=\"width: 100%; border-color: #99acc2; border-style: none; border-collapse: collapse; table-layout: fixed;\">\n<tbody>\n<tr>\n<td style=\"width: 100%; background-color: #eeeeee; border-width: 0px; border-style: none;\">\n<p style=\"font-size: 18px;\"><span style=\"font-family: 'courier new', courier;\">struct { <\/span><\/p>\n<p style=\"font-size: 18px; padding-left: 40px;\"><span style=\"font-family: 'courier new', courier;\"> __uint(type, BPF_MAP_TYPE_RINGBUF);<\/span><\/p>\n<p style=\"font-size: 18px; padding-left: 40px;\"><span style=\"font-family: 'courier new', courier;\">&nbsp;&nbsp; __uint(max_entries, 1 &lt;&lt; 24);<\/span><\/p>\n<p style=\"font-size: 18px;\"><span style=\"font-family: 'courier new', courier;\">} events SEC(\".maps\");<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u4f7f\u7528\u3067\u304d\u308b <a href=\"https:\/\/elixir.bootlin.com\/linux\/v5.11.2\/source\/include\/uapi\/linux\/bpf.h#L130\" rel=\"noopener noreferrer\" target=\"_blank\">bpf \u30d7\u30ed\u30b0\u30e9\u30e0\u30de\u30c3\u30d7<\/a>\u306b\u306f\u591a\u304f\u306e\u7a2e\u985e\u304c\u3042\u308a\u307e\u3059\u3002\u30ea\u30f3\u30b0\u30d0\u30c3\u30d5\u30a1\u306f\u3001\u30ab\u30fc\u30cd\u30eb\u30b9\u30da\u30fc\u30b9\u304b\u3089\u30e6\u30fc\u30b6\u30b9\u30da\u30fc\u30b9\u3078\u30c7\u30fc\u30bf\u3092\u8ee2\u9001\u3059\u308b\u305f\u3081\u306e\u4fe1\u983c\u3067\u304d\u308b\u65b9\u6cd5\u3067\u3059\u3002\u4ee5\u524d\u306b\u3082 bpf \u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u66f8\u3044\u305f\u3053\u3068\u304c\u3042\u308b\u306e\u3067\u3042\u308c\u3070\u3001\u304a\u305d\u3089\u304f perfbuffers \u3082\u898b\u305f\u3053\u3068\u304c\u3042\u308b\u3067\u3057\u3087\u3046\u3002\u4e0a\u8a18\u3067\u8a18\u8f09\u3057\u305f\u30d6\u30ed\u30b0\u8a18\u4e8b\u3067\u306f\u3001perf \u3067\u306f\u306a\u304f\u30ea\u30f3\u30b0\u30d0\u30c3\u30d5\u30a1\u3092\u4f7f\u3046\u3053\u3068\u306e\u30e1\u30ea\u30c3\u30c8\u306b\u3064\u3044\u3066\u66f8\u304b\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u6700\u5f8c\u306b\u3001\u5b9f\u969b\u306e bpf \u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<div data-hs-responsive-table=\"true\" style=\"overflow-x: auto; max-width: 100%; width: 100%; margin-left: auto; margin-right: auto;\">\n<table border=\"0\" cellpadding=\"4\" style=\"width: 100%; border-color: #99acc2; border-style: none; border-collapse: collapse; table-layout: fixed;\">\n<tbody>\n<tr>\n<td style=\"width: 100%; background-color: #eeeeee;\">\n<p style=\"font-size: 18px;\"><span style=\"font-family: 'courier new', courier;\">SEC(\"kprobe\/sys_execve\")<\/span><\/p>\n<p style=\"font-size: 18px;\"><span style=\"font-family: 'courier new', courier;\">int kprobe__sys_execve(struct pt_regs *ctx) { <\/span><\/p>\n<p style=\"font-size: 18px; padding-left: 40px;\"><span style=\"font-family: 'courier new', courier;\">__u64 id = bpf_get_current_pid_tgid();<\/span><\/p>\n<p style=\"font-size: 18px; padding-left: 40px;\"><span style=\"font-family: 'courier new', courier;\"> __u32 tgid = id &gt;&gt; 32;<\/span><\/p>\n<p style=\"font-size: 18px; padding-left: 40px;\"><span style=\"font-family: 'courier new', courier;\"> proc_info *process; \/\/ Reserve space on the ringbuffer for the sample process = bpf_ringbuf_reserve(&amp;events, sizeof(proc_info), ringbuffer_flags); <\/span><\/p>\n<p style=\"font-size: 18px; padding-left: 40px;\"><span style=\"font-family: 'courier new', courier;\">if (!process) { <\/span><\/p>\n<p style=\"font-size: 18px; padding-left: 80px;\"><span style=\"font-family: 'courier new', courier;\">return 0; <\/span><\/p>\n<p style=\"font-size: 18px; padding-left: 40px;\"><span style=\"font-family: 'courier new', courier;\">} <\/span><\/p>\n<p style=\"font-size: 18px; padding-left: 40px;\"><span style=\"font-family: 'courier new', courier;\">process-&gt;pid = tgid;<\/span><\/p>\n<p style=\"font-size: 18px; padding-left: 40px;\"><span style=\"font-family: 'courier new', courier;\">bpf_get_current_comm(&amp;process-&gt;comm, 100); bpf_ringbuf_submit(process, ringbuffer_flags); <\/span><\/p>\n<p style=\"font-size: 18px; padding-left: 40px;\"><span style=\"font-family: 'courier new', courier;\">return 0; <\/span><\/p>\n<p style=\"font-size: 18px;\"><span style=\"font-family: 'courier new', courier;\">}<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>bpf \u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u81ea\u4f53\u306f\u3053\u306e\u95a2\u6570\u3060\u3051\u3067\u3001\u57fa\u672c\u7684\u306b\u306f main() \u3067\u3059\u3002\u3082\u3061\u308d\u3093 main() \u4ee5\u5916\u306e\u95a2\u6570\u3092\u5b9a\u7fa9\u3057\u3066\u30a4\u30f3\u30dd\u30fc\u30c8\u3067\u304d\u307e\u3059\u304c\u3001\u305d\u306e\u5834\u5408\u306f __always_inline \u5c5e\u6027\u3067\u30de\u30fc\u30af\u3055\u308c\u3066\u3044\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002\u3053\u308c\u306f\u8907\u96d1\u3055\u3092\u5236\u9650\u3057\u3001bpf \u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5fc5\u305a\u7d42\u4e86\u3055\u305b\u308b\u305f\u3081\u3001\u518d\u8d77\u7684\u306a\u95a2\u6570\u306e\u5b9f\u884c\u3092\u907f\u3051\u308b\u305f\u3081\u3067\u3059\u3002<\/p>\n<p>\u3067\u306f\u3001\u3053\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u30d6\u30ec\u30fc\u30af\u30c0\u30a6\u30f3\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p style=\"font-size: 18px; padding-left: 40px;\"><span style=\"font-family: 'courier new', courier; background-color: #eeeeee;\">SEC(\"kprobe\/sys_mmap\")<\/span><\/p>\n<p>\u3053\u308c\u306f\u3001<a href=\"https:\/\/git.kernel.org\/pub\/scm\/linux\/kernel\/git\/bpf\/bpf-next.git\/tree\/tools\/lib\/bpf\/bpf_helpers.h#n25\" rel=\"noopener noreferrer\" target=\"_blank\">bpf_helpers.h<\/a> \u3067\u5b9a\u7fa9\u3055\u308c\u305f\u30bb\u30af\u30b7\u30e7\u30f3\u30de\u30af\u30ed\u3067\u3059\u3002\u3059\u3079\u3066\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u306f\u3001\u30b3\u30f3\u30d1\u30a4\u30eb\u3055\u308c\u305f\u30d0\u30a4\u30ca\u30ea\u306e\u3069\u306e\u90e8\u5206\u3078\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u914d\u7f6e\u3059\u308b\u304b\u3092 libbpf \u306b\u4f1d\u3048\u308b\u305f\u3081\u3001\u3053\u306e\u30de\u30af\u30ed\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u308c\u306f\u57fa\u672c\u7684\u306b\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u4fee\u98fe\u540d\u3067\u3059\u3002\u53b3\u5bc6\u306a\u30eb\u30fc\u30eb\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3001libbpf \u3067\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u6163\u7fd2\u306b\u5f93\u3046\u3079\u304d\u3067\u3059\u3002\u4e0a\u8a18\u306e SEC \u30e9\u30d9\u30eb\u306f\u3001\u30ea\u30f3\u30b0\u30d0\u30c3\u30d5\u30a1\u306e\u5b9a\u7fa9\u3067\u3082\u898b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p style=\"font-size: 18px; padding-left: 40px;\"><span style=\"font-family: 'courier new', courier; background-color: #eeeeee;\">int kprobe__sys_mmap(struct pt_regs *ctx)<\/span><\/p>\n<p>\u3053\u3053\u3067\u306f\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u540d\u304c <i>kprobe__sys_mmap<\/i> \u3067\u3042\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002\u30d7\u30ed\u30b0\u30e9\u30e0\u540d\u306b\u306f\u597d\u304d\u306a\u540d\u524d\u3092\u3064\u3051\u3066\u3001\u3053\u306e\u540d\u524d\u3092\u30e6\u30fc\u30b6\u30fc\u30b9\u30da\u30fc\u30b9\u5074\u304b\u3089\u306e\u8b58\u5225\u5b50\u3068\u3057\u3066\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<a href=\"https:\/\/elixir.bootlin.com\/linux\/v5.11.2\/source\/include\/uapi\/linux\/bpf.h#L171\" rel=\"noopener noreferrer\" target=\"_blank\">bpf \u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u7a2e\u985e<\/a>\u3054\u3068\u306b\u3001bpf \u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u4f7f\u7528\u3059\u308b\u305f\u3081\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u72ec\u81ea\u306e\u300c\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u300d\u304c\u3042\u308a\u307e\u3059\u3002bpf \u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u6dfb\u4ed8\u3067\u304d\u308b\u3055\u307e\u3056\u307e\u306a\u3082\u306e\u3068\u3001\u305d\u306e\u305f\u3081\u306b\u5229\u7528\u3067\u304d\u308b\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u306b\u3064\u3044\u3066\u306e\u8a73\u3057\u3044\u8aac\u660e\u306f\u3001<a href=\"https:\/\/blogs.oracle.com\/linux\/notes-on-bpf-1\" rel=\"noopener noreferrer\" target=\"_blank\">BPF \u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u7a2e\u985e<\/a>\u306b\u6295\u7a3f\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e kprobe bpf \u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u5834\u5408\u3001<a href=\"https:\/\/elixir.bootlin.com\/linux\/v5.11.2\/source\/arch\/x86\/include\/asm\/ptrace.h#L12\" rel=\"noopener noreferrer\" target=\"_blank\">struct pt_regs<\/a> \u304c\u3042\u308a\u3001\u547c\u3073\u51fa\u3057\u305f\u30d7\u30ed\u30bb\u30b9\u306e\u4eee\u60f3\u30ec\u30b8\u30b9\u30bf\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u3053\u304b\u3089\u5148\u306f\u30b7\u30f3\u30d7\u30eb\u3067\u3059\u3002<\/p>\n<div data-hs-responsive-table=\"true\" style=\"overflow-x: auto; max-width: 100%; width: 100%; margin-left: auto; margin-right: auto;\">\n<table border=\"0\" cellpadding=\"4\" style=\"width: 100%; border-color: #99acc2; border-style: none; border-collapse: collapse; table-layout: fixed;\">\n<tbody>\n<tr>\n<td style=\"width: 100%; background-color: #eeeeee;\">\n<p style=\"font-size: 18px;\"><span style=\"font-family: 'courier new', courier;\">proc_info *process <\/span><\/p>\n<p style=\"font-size: 18px;\"><span style=\"font-family: 'courier new', courier;\">process = bpf_ringbuf_reserve(&amp;events, sizeof(proc_info), ringbuffer_flags); <\/span><\/p>\n<p style=\"font-size: 18px;\"><span style=\"font-family: 'courier new', courier;\">if (! process) { <\/span><\/p>\n<p style=\"font-size: 18px; padding-left: 40px;\"><span style=\"font-family: 'courier new', courier;\">return 0; <\/span><\/p>\n<p style=\"font-size: 18px;\"><span style=\"font-family: 'courier new', courier;\">} <\/span><\/p>\n<p style=\"font-size: 18px;\"><span style=\"font-family: 'courier new', courier;\">process-&gt;pid = tgid;<\/span><\/p>\n<p style=\"font-size: 18px;\"><span style=\"font-family: 'courier new', courier;\">bpf_get_current_comm(&amp;process-&gt;comm, 100); bpf_ringbuf_submit(process, ringbuffer_flags); <\/span><\/p>\n<p style=\"font-size: 18px;\"><span style=\"font-family: 'courier new', courier;\">return 0;<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u30ea\u30f3\u30b0\u30d0\u30c3\u30d5\u30a1\u4e0a\u306b struct process_info \u306e\u30b9\u30da\u30fc\u30b9\u3092\u78ba\u4fdd\u3057\u3001\u30d7\u30ed\u30bb\u30b9 ID \u3068\u30d7\u30ed\u30bb\u30b9\u540d\u3092\u8aad\u307f\u8fbc\u3093\u3067\u3001\u30ea\u30f3\u30b0\u30d0\u30c3\u30d5\u30a1\u4e0a\u306b\u9001\u4fe1\u3057\u307e\u3059\u3002\u4ee5\u4e0a\u3067\u3059\u3002<\/p>\n<h3>libbpfgo\u306e\u30e6\u30fc\u30b6\u30fc\u30b9\u30da\u30fc\u30b9\u5074\u306e\u4f7f\u7528<\/h3>\n<p>\u30e6\u30fc\u30b6\u30fc\u30b9\u30da\u30fc\u30b9\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u76ee\u7684\u306f\u3001\u30b3\u30f3\u30d1\u30a4\u30eb\u3055\u308c\u305f bpf \u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u30ed\u30fc\u30c9\u3057\u9069\u5207\u306a kprobe \u306b\u30a2\u30bf\u30c3\u30c1\u3059\u308b\u3053\u3068\u3001\u30ea\u30f3\u30b0\u30d0\u30c3\u30d5\u30a1\u304b\u3089\u306e\u51fa\u529b\u3092\u5f85\u3063\u3066\u5b8c\u4e86\u5f8c\u306b\u30af\u30ea\u30fc\u30f3\u30a2\u30c3\u30d7\u3059\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>libbpf \u306f C \u8a00\u8a9e\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u306a\u306e\u3067\u3001Go \u306a\u3069\u306e\u9ad8\u30ec\u30d9\u30eb\u8a00\u8a9e\u3067\u306e\u30d0\u30a4\u30f3\u30c7\u30a3\u30f3\u30b0\u3082\u7c21\u5358\u306b\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002\u30e6\u30fc\u30b6\u30fc\u30b9\u30da\u30fc\u30b9\u306e\u30b3\u30fc\u30c9\u3092\u7d14\u7c8b\u306a C \u8a00\u8a9e\u3067\u66f8\u304d\u305f\u3044\u5834\u5408\u306f\u3001<a href=\"https:\/\/nakryiko.com\/posts\/bpf-portability-and-co-re\/\" rel=\"noopener noreferrer\" target=\"_blank\">\u3053\u3061\u3089\u306e\u8a18\u4e8b<\/a>\u3092\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u6700\u521d\u306e\u30b9\u30c6\u30c3\u30d7\u306f\u3001bpf \u306e\u30b3\u30fc\u30c9\u3092\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30d5\u30a1\u30a4\u30eb\u306b\u30b3\u30f3\u30d1\u30a4\u30eb\u3059\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n<p style=\"font-size: 18px; padding-left: 40px;\"><span style=\"font-family: 'courier new', courier; background-color: #eeeeee;\">clang -g -O2 -c -target bpf -o mybpfobject.o mybpfcode.bpf.c<\/span><\/p>\n<p>\u3053\u308c\u3067\u3001libbpf \u81ea\u4f53\u306e\u30e9\u30c3\u30d1\u30fc\u3067\u3042\u308b <a href=\"https:\/\/github.com\/aquasecurity\/tracee\/tree\/main\/libbpfgo\" rel=\"noopener noreferrer\" target=\"_blank\">libbpfgo<\/a> \u3092\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002libbpfgo \u306e\u76ee\u7684\u306f\u3001libbpf \u306e\u3059\u3079\u3066\u306e\u30d1\u30d6\u30ea\u30c3\u30af API \u3092\u5b9f\u88c5\u3059\u308b\u3053\u3068\u3067\u3001Go \u8a00\u8a9e\u304b\u3089\u7c21\u5358\u306b\u4f7f\u3048\u308b\u3088\u3046\u306b\u3059\u308b\u3053\u3068\u3067\u3059\u3002Aqua \u306e\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e1\u3064\u3067\u3042\u308b <a href=\"https:\/\/github.com\/aquasecurity\/tracee\" rel=\"noopener noreferrer\" target=\"_blank\">tracee<\/a> \u304c\u5fc5\u8981\u3068\u3057\u3066\u3044\u308b\u6a5f\u80fd\u304b\u3089\u59cb\u3081\u307e\u3057\u305f\u304c\u3001\u4ed6\u306e\u3059\u3079\u3066\u306e\u6a5f\u80fd\u3082\u3059\u3050\u306b\u63d0\u4f9b\u3055\u308c\u308b\u4e88\u5b9a\u3067\u3059\u3002<\/p>\n<p>\u30b3\u30fc\u30c9\u3067\u5b9f\u88c5\u3059\u308b\u524d\u306b\u3001\u3053\u308c\u304b\u3089\u3084\u308b\u3053\u3068\u3092\u5927\u307e\u304b\u306b\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><center><img decoding=\"async\" src=\"https:\/\/blog.aquasec.com\/hs-fs\/hubfs\/libbpfgo%20diagram%202-01-01.jpg?width=850&name=libbpfgo%20diagram%202-01-01.jpg\" alt=\"\" \/><\/center><\/p>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3057\u3066\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u3080\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<div data-hs-responsive-table=\"true\" style=\"overflow-x: auto; max-width: 100%; width: 100%; margin-left: auto; margin-right: auto;\">\n<table border=\"0\" cellpadding=\"4\" style=\"width: 100%; border-color: #99acc2; border-style: none; border-collapse: collapse; table-layout: fixed;\">\n<tbody>\n<tr>\n<td style=\"width: 100%; background-color: #eeeeee;\">\n<p style=\"font-size: 18px;\"><span style=\"font-family: 'courier new', courier;\">bpfModule, err := bpf.NewModuleFromFile(\"mybpfobject.o\")<\/span><\/p>\n<p style=\"font-size: 18px;\"><span style=\"font-family: 'courier new', courier;\">if err != nil {<\/span><\/p>\n<p style=\"font-size: 18px; padding-left: 40px;\"><span style=\"font-family: 'courier new', courier;\">panic(err)<\/span><\/p>\n<p style=\"font-size: 18px;\"><span style=\"font-family: 'courier new', courier;\">}&nbsp;&nbsp;<\/span><\/p>\n<p style=\"font-size: 18px;\"><span style=\"font-family: 'courier new', courier;\">defer bpfModule.Close()<\/span><\/p>\n<p style=\"font-size: 18px;\"><span style=\"font-family: 'courier new', courier;\">bpfModule.BPFLoadObject()<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u6b21\u306b\u3001\u4f7f\u7528\u3057\u305f\u3044 bpf \u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u63a2\u3057(\u8907\u6570\u3092\u4e00\u3064\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30d5\u30a1\u30a4\u30eb\u306b\u307e\u3068\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059)\u3001\u305d\u308c\u3092\u5fc5\u8981\u306a\u30d5\u30c3\u30af(\u3053\u3053\u3067\u306f <span style=\"font-family: 'courier new', courier; font-size: 18px;\">__x64_sys_mmap<\/span> \u30ab\u30fc\u30cd\u30eb\u95a2\u6570)\u306b\u30a2\u30bf\u30c3\u30c1\u3057\u307e\u3059\u3002<\/p>\n<div data-hs-responsive-table=\"true\" style=\"overflow-x: auto; max-width: 100%; width: 100%; margin-left: auto; margin-right: auto;\">\n<table border=\"0\" cellpadding=\"4\" style=\"width: 100%; border-color: #99acc2; border-style: none; border-collapse: collapse; table-layout: fixed;\">\n<tbody>\n<tr>\n<td style=\"width: 100%; background-color: #eeeeee;\">\n<p style=\"font-size: 18px;\"><span style=\"font-family: 'courier new', courier;\">prog, err := bpfModule.GetProgram(\"kprobe__sys_mmap\")<\/span><\/p>\n<p style=\"font-size: 18px;\"><span style=\"font-family: 'courier new', courier;\">if err != nil {<\/span><\/p>\n<p style=\"font-size: 18px; padding-left: 40px;\"><span style=\"font-family: 'courier new', courier;\">panic()&nbsp;&nbsp; <\/span><\/p>\n<p style=\"font-size: 18px;\"><span style=\"font-family: 'courier new', courier;\">}<\/span><\/p>\n<p style=\"font-size: 18px;\"><span style=\"font-family: 'courier new', courier;\">_, err = prog.AttachKprobe(\"__x64_sys_mmap\")<\/span><\/p>\n<p style=\"font-size: 18px;\"><span style=\"font-family: 'courier new', courier;\">if err != nil { <\/span><\/p>\n<p style=\"font-size: 18px; padding-left: 40px;\"><span style=\"font-family: 'courier new', courier;\">panic() <\/span><\/p>\n<p style=\"font-size: 18px;\"><span style=\"font-family: 'courier new', courier;\">}<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u305d\u3057\u3066\u6700\u5f8c\u306b\u3001\u30ea\u30f3\u30b0\u30d0\u30c3\u30d5\u30a1\u304b\u3089\u306e\u51fa\u529b\u3092\u805e\u304f\u305f\u3081\u306e Go \u30c1\u30e3\u30cd\u30eb\u3092\u8a2d\u5b9a\u3057\u3001\u30a4\u30d9\u30f3\u30c8\u3092\u53d7\u4fe1\u3057\u305f\u3089\u305d\u308c\u3092\u51fa\u529b\u3057\u307e\u3059\u3002<\/p>\n<div data-hs-responsive-table=\"true\" style=\"overflow-x: auto; max-width: 100%; width: 100%; margin-left: auto; margin-right: auto;\">\n<table border=\"0\" cellpadding=\"4\" style=\"width: 100%; border-color: #99acc2; border-style: none; border-collapse: collapse; table-layout: fixed;\">\n<tbody>\n<tr>\n<td style=\"width: 100%; background-color: #eeeeee;\">\n<p style=\"font-size: 18px;\"><span style=\"font-family: 'courier new', courier;\">eventsChannel := make(chan []byte)<\/span><\/p>\n<p style=\"font-size: 18px;\"><span style=\"font-family: 'courier new', courier;\">rb, err := bpfModule.InitRingBuf(\"events\", eventsChannel)<\/span><\/p>\n<p style=\"font-size: 18px;\"><span style=\"font-family: 'courier new', courier;\">if err != nil {<\/span><\/p>\n<p style=\"font-size: 18px; padding-left: 40px;\"><span style=\"font-family: 'courier new', courier;\">panic()<\/span><\/p>\n<p style=\"font-size: 18px;\"><span style=\"font-family: 'courier new', courier;\">}<\/span><\/p>\n<p style=\"font-size: 18px;\"><span style=\"font-family: 'courier new', courier;\">rb.Start()<\/span><\/p>\n<p style=\"font-size: 18px;\"><span style=\"font-family: 'courier new', courier;\">for {<\/span><\/p>\n<p style=\"font-size: 18px; padding-left: 40px;\"><span style=\"font-family: 'courier new', courier;\">eventBytes := &lt;-eventsChannel<\/span><\/p>\n<p style=\"font-size: 18px; padding-left: 40px;\"><span style=\"font-family: 'courier new', courier;\">pid := int(binary.LittleEndian.Uint32(eventBytes[0:4])) \/\/ Treat first 4 bytes as LittleEndian Uint32<\/span><\/p>\n<p style=\"font-size: 18px; padding-left: 40px;\"><span style=\"font-family: 'courier new', courier;\">comm := string(bytes.TrimRight(eventBytes[4:], \"\\x00\")) \/\/ Remove excess 0's from comm, treat as string<\/span><\/p>\n<p style=\"font-size: 18px;\"><span style=\"font-family: 'courier new', courier;\">&nbsp; &nbsp; fmt.Printf(\"%d %v\\n\", pid, comm)<\/span><\/p>\n<p style=\"font-size: 18px;\"><span style=\"font-family: 'courier new', courier;\">}<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u30d3\u30eb\u30c9\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u884c\u3044\u307e\u3059\u3002<\/p>\n<p style=\"font-size: 18px;\"><span style=\"font-family: 'courier new', courier; background-color: #eeeeee;\">CC=gcc CGO_CFLAGS=\"-I \/usr\/include\/bpf\" CGO_LDFLAGS=\"\/usr\/lib64\/libbpf.a\" go build -o libbpfgo-prog<\/span><\/p>\n<p>\u3053\u3053\u306b\u306f\u5fc5\u8981\u306a\u4f9d\u5b58\u95a2\u4fc2\u304c\u3044\u304f\u3064\u304b\u3042\u308a\u307e\u3059\u304c\u3001\u5e78\u3044\u306a\u3053\u3068\u306b\u3001\u307b\u3068\u3093\u3069\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u30de\u30cd\u30fc\u30b8\u30e3\u3067\u63d0\u4f9b\u3055\u308c\u3066\u3044\u307e\u3059\u3002\/usr\/include\/bpf \u306f\u3001\u79c1\u306e\u30b7\u30b9\u30c6\u30e0\u3067\u306e libbpf \u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3078\u306e\u30d1\u30b9\u3067\u3059\u3002libbpf.a \u306f\u624b\u52d5\u3067\u30d3\u30eb\u30c9\u3059\u308b\u304b\u3001\u30d1\u30c3\u30b1\u30fc\u30b8(libbpf-dev-static \u306e\u3088\u3046\u306a\u5f62)\u3067\u63d0\u4f9b\u3055\u308c\u307e\u3059\u3002\u3067\u304d\u3042\u304c\u3063\u305f\u30d0\u30a4\u30ca\u30ea\u306f libbpfgo-prog \u3068\u3044\u3046\u540d\u524d\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u6700\u5f8c\u306b\u3001\u3053\u308c\u3092 root \u3067\u5b9f\u884c\u3059\u308b\u304b\u3001\u30b1\u30a4\u30d1\u30d3\u30ea\u30c6\u30a3<span style=\"background-color: #eeeeee;\"><span style=\"font-family: 'courier new', courier; font-size: 18px; background-color: #eeeeee;\">CAP_BPF\/CAP_TRACING<\/span> (linux 5.8+)<\/span>: \u3067\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<div data-hs-responsive-table=\"true\" style=\"overflow-x: auto; max-width: 100%; width: 100%; margin-left: auto; margin-right: auto;\">\n<table border=\"0\" cellpadding=\"4\" style=\"width: 100%; border-color: #99acc2; border-style: none; border-collapse: collapse; table-layout: fixed;\">\n<tbody>\n<tr>\n<td style=\"width: 100%; background-color: #eeeeee;\">\n<p style=\"font-size: 18px;\"><span style=\"font-family: 'courier new', courier;\">[*] sudo .\/libbpfgo-prog<\/span><\/p>\n<p style=\"font-size: 18px;\"><span style=\"font-family: 'courier new', courier;\">6400 sh<\/span><\/p>\n<p style=\"font-size: 18px;\"><span style=\"font-family: 'courier new', courier;\">6399 sh<\/span><\/p>\n<p style=\"font-size: 18px;\"><span style=\"font-family: 'courier new', courier;\">6401 node<\/span><\/p>\n<p style=\"font-size: 18px;\"><span style=\"font-family: 'courier new', courier;\">6403 sh<\/span><\/p>\n<p style=\"font-size: 18px;\"><span style=\"font-family: 'courier new', courier;\">6402 sh<\/span><\/p>\n<p style=\"font-size: 18px;\"><span style=\"font-family: 'courier new', courier;\">6404 node<\/span><\/p>\n<p style=\"font-size: 18px;\"><span style=\"font-family: 'courier new', courier;\">...<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h2>\u307e\u3068\u3081<\/h2>\n<hr \/>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001libbpf \u3067\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u30d8\u30eb\u30d1\u30fc\u3092\u4f7f\u3063\u3066 bpf \u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u66f8\u304f\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3057\u305f\u3002\u79c1\u305f\u3061\u306e bpf \u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u3001\u30d7\u30ed\u30bb\u30b9 ID \u3084\u30b3\u30de\u30f3\u30c9\u306a\u3069\u306e\u60c5\u5831\u3092\u8aad\u307f\u53d6\u308a\u3001\u305d\u308c\u3092\u5171\u6709\u30ea\u30f3\u30b0\u30d0\u30c3\u30d5\u30a1\u306b\u66f8\u304d\u8fbc\u307f\u307e\u3059\u3002\u305d\u308c\u3092 clang \u3067\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3001libbpfgo \u3092\u4f7f\u3063\u3066\u30ab\u30fc\u30cd\u30eb\u306b\u30ed\u30fc\u30c9\u3057\u3001\u30ea\u30f3\u30b0\u30d0\u30c3\u30d5\u30a1\u304b\u3089\u306e\u51fa\u529b\u3092\u5f85\u3061\u307e\u3059\u3002<\/p>\n<p>\u305c\u3072\u4e00\u5ea6 <a href=\"https:\/\/pkg.go.dev\/github.com\/aquasecurity\/tracee\/libbpfgo\" rel=\"noopener noreferrer\" target=\"_blank\">libbpfgo<\/a> \u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u4f7f\u7528\u4f8b\u3092\u898b\u308b\u306b\u306f\u3001<a href=\"https:\/\/github.com\/aquasecurity\/tracee\/tree\/main\/libbpfgo\/selftest\" rel=\"noopener noreferrer\" target=\"_blank\">libbpfgo \u30c6\u30b9\u30c8<\/a>\u304c\u826f\u3044\u3067\u3057\u3087\u3046\u3002\u3053\u306e\u30d6\u30ed\u30b0\u8a18\u4e8b\u306e\u305f\u3081\u306b\u66f8\u304b\u308c\u305f\u3059\u3079\u3066\u306e\u30b3\u30fc\u30c9\u306f\u3001<a href=\"https:\/\/github.com\/grantseltzer\/libbpfgo-example\" rel=\"noopener noreferrer\" target=\"_blank\">GitHub<\/a> \u3067\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><center>\n\t\t<!--HubSpot Call-to-Action Code -->\n\t\t<span class=\"hs-cta-wrapper\" id=\"hs-cta-wrapper-fecc193b-bbc5-40d2-9588-ed7b022af3aa\">\n\t\t<span class=\"hs-cta-node hs-cta-fecc193b-bbc5-40d2-9588-ed7b022af3aa\" id=\"fecc193b-bbc5-40d2-9588-ed7b022af3aa\">\n\t\t<!--[if lte IE 8]>\n\t\t<div id=\"hs-cta-ie-element\"><\/div>\n\t\t<![endif]-->\n\t\t<a href=\"https:\/\/cta-redirect.hubspot.com\/cta\/redirect\/6168413\/fecc193b-bbc5-40d2-9588-ed7b022af3aa\" >\n\t\t<img decoding=\"async\" class=\"hs-cta-img\" id=\"hs-cta-img-fecc193b-bbc5-40d2-9588-ed7b022af3aa\" style=\"border-width:0px;\" src=\"https:\/\/no-cache.hubspot.com\/cta\/default\/6168413\/fecc193b-bbc5-40d2-9588-ed7b022af3aa.png\"  alt=\"New call-to-action\"\/>\n\t\t<\/a>\n\t\t<\/span>\n\t\t<script charset=\"utf-8\" src=\"\/\/js.hubspot.com\/cta\/current.js\"><\/script>\n\t\t<script>\n\t\thbspt.cta.load(6168413, 'fecc193b-bbc5-40d2-9588-ed7b022af3aa', {});\n\t\t<\/script>\n\t\t<\/span>\n\t\t<!-- end HubSpot Call-to-Action Code -->\n\t\t<\/center><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u30d6\u30ed\u30b0\u306f\u300cAqua Security\u300d\u793e\u306e\u6280\u8853\u30d6\u30ed\u30b0\u30672021\u5e744\u67086\u65e5\u306b\u516c\u958b\u3055\u308c\u305f\u300c How to Build eBPF Programs with libbpfgo \u300d\u306e\u65e5\u672c\u8a9e\u7ffb\u8a33\u3067\u3059\u3002 libbpfgo\u306b\u3088\u308beB [&#8230;]<\/p>\n","protected":false},"author":56,"featured_media":41902,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"content-type":"","footnotes":""},"categories":[176],"tags":[174,152,494,358],"class_list":["post-41901","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-aquasecurity","tag-aqua","tag-aquasecurity","tag-ebpf","tag-358"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>libbpfgo\u306b\u3088\u308beBPF\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u4f5c\u308a\u65b9 #aqua #\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3 #eBPF - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3<\/title>\n<meta name=\"description\" content=\"AquaSecurity |\u672c\u30d6\u30ed\u30b0\u306f\u300cAqua Security\u300d\u793e\u306e\u6280\u8853\u30d6\u30ed\u30b0\u30672021\u5e744\u67086\u65e5\u306b\u516c\u958b\u3055\u308c\u305f\u300c How to Build eBPF Programs with\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/aquasecurity\/41901\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"libbpfgo\u306b\u3088\u308beBPF\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u4f5c\u308a\u65b9 #aqua #\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3 #eBPF - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\" \/>\n<meta property=\"og:description\" content=\"AquaSecurity |\u672c\u30d6\u30ed\u30b0\u306f\u300cAqua Security\u300d\u793e\u306e\u6280\u8853\u30d6\u30ed\u30b0\u30672021\u5e744\u67086\u65e5\u306b\u516c\u958b\u3055\u308c\u305f\u300c How to Build eBPF Programs with\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/aquasecurity\/41901\" \/>\n<meta property=\"og:site_name\" content=\"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/creationline\" \/>\n<meta property=\"article:published_time\" content=\"2021-04-15T02:00:32+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2021\/04\/8bcd9345b70138c57efe2a1008c24170.png\" \/>\n\t<meta property=\"og:image:width\" content=\"867\" \/>\n\t<meta property=\"og:image:height\" content=\"417\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Kent Magruder\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@creationline\" \/>\n<meta name=\"twitter:site\" content=\"@creationline\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"Kent Magruder\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"2\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/aquasecurity\/41901#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/aquasecurity\/41901\"},\"author\":{\"name\":\"Kent Magruder\",\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/2dfcdde19e3b7cb7da7c9ae23e1b7717\"},\"headline\":\"libbpfgo\u306b\u3088\u308beBPF\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u4f5c\u308a\u65b9 #aqua #\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3 #eBPF\",\"datePublished\":\"2021-04-15T02:00:32+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/aquasecurity\/41901\"},\"wordCount\":432,\"image\":{\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/aquasecurity\/41901#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2021\/04\/8bcd9345b70138c57efe2a1008c24170.png\",\"keywords\":[\"aqua\",\"AquaSecurity\",\"eBPF\",\"\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\"],\"articleSection\":[\"AquaSecurity\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/aquasecurity\/41901\",\"url\":\"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/aquasecurity\/41901\",\"name\":\"libbpfgo\u306b\u3088\u308beBPF\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u4f5c\u308a\u65b9 #aqua #\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3 #eBPF - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\",\"isPartOf\":{\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/aquasecurity\/41901#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/aquasecurity\/41901#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2021\/04\/8bcd9345b70138c57efe2a1008c24170.png\",\"datePublished\":\"2021-04-15T02:00:32+00:00\",\"author\":{\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/2dfcdde19e3b7cb7da7c9ae23e1b7717\"},\"description\":\"AquaSecurity |\u672c\u30d6\u30ed\u30b0\u306f\u300cAqua Security\u300d\u793e\u306e\u6280\u8853\u30d6\u30ed\u30b0\u30672021\u5e744\u67086\u65e5\u306b\u516c\u958b\u3055\u308c\u305f\u300c How to Build eBPF Programs with\",\"breadcrumb\":{\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/aquasecurity\/41901#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/aquasecurity\/41901\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/aquasecurity\/41901#primaryimage\",\"url\":\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2021\/04\/8bcd9345b70138c57efe2a1008c24170.png\",\"contentUrl\":\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2021\/04\/8bcd9345b70138c57efe2a1008c24170.png\",\"width\":867,\"height\":417},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/aquasecurity\/41901#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"HOME\",\"item\":\"https:\/\/www.creationline.com\/tech-blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6\",\"item\":\"https:\/\/www.creationline.com\/tech-blog\/cloudnative\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"AquaSecurity\",\"item\":\"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/aquasecurity\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"libbpfgo\u306b\u3088\u308beBPF\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u4f5c\u308a\u65b9 #aqua #\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3 #eBPF\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/#website\",\"url\":\"https:\/\/www.creationline.com\/tech-blog\/\",\"name\":\"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\",\"description\":\"\u30a2\u30b8\u30e3\u30a4\u30eb\uff06DevOps\u3001\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6\u3001AI\uff06LLM\u306e\u5148\u7aef\u6280\u8853\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.creationline.com\/tech-blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/2dfcdde19e3b7cb7da7c9ae23e1b7717\",\"name\":\"Kent Magruder\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2021\/12\/avatar.png\",\"url\":\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2021\/12\/avatar.png\",\"contentUrl\":\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2021\/12\/avatar.png\",\"caption\":\"Kent Magruder\"},\"url\":\"https:\/\/www.creationline.com\/tech-blog\/author\/k-magruder\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"libbpfgo\u306b\u3088\u308beBPF\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u4f5c\u308a\u65b9 #aqua #\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3 #eBPF - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","description":"AquaSecurity |\u672c\u30d6\u30ed\u30b0\u306f\u300cAqua Security\u300d\u793e\u306e\u6280\u8853\u30d6\u30ed\u30b0\u30672021\u5e744\u67086\u65e5\u306b\u516c\u958b\u3055\u308c\u305f\u300c How to Build eBPF Programs with","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/aquasecurity\/41901","og_locale":"ja_JP","og_type":"article","og_title":"libbpfgo\u306b\u3088\u308beBPF\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u4f5c\u308a\u65b9 #aqua #\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3 #eBPF - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","og_description":"AquaSecurity |\u672c\u30d6\u30ed\u30b0\u306f\u300cAqua Security\u300d\u793e\u306e\u6280\u8853\u30d6\u30ed\u30b0\u30672021\u5e744\u67086\u65e5\u306b\u516c\u958b\u3055\u308c\u305f\u300c How to Build eBPF Programs with","og_url":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/aquasecurity\/41901","og_site_name":"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","article_publisher":"https:\/\/www.facebook.com\/creationline","article_published_time":"2021-04-15T02:00:32+00:00","og_image":[{"width":867,"height":417,"url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2021\/04\/8bcd9345b70138c57efe2a1008c24170.png","type":"image\/png"}],"author":"Kent Magruder","twitter_card":"summary_large_image","twitter_creator":"@creationline","twitter_site":"@creationline","twitter_misc":{"\u57f7\u7b46\u8005":"Kent Magruder","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"2\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/aquasecurity\/41901#article","isPartOf":{"@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/aquasecurity\/41901"},"author":{"name":"Kent Magruder","@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/2dfcdde19e3b7cb7da7c9ae23e1b7717"},"headline":"libbpfgo\u306b\u3088\u308beBPF\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u4f5c\u308a\u65b9 #aqua #\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3 #eBPF","datePublished":"2021-04-15T02:00:32+00:00","mainEntityOfPage":{"@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/aquasecurity\/41901"},"wordCount":432,"image":{"@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/aquasecurity\/41901#primaryimage"},"thumbnailUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2021\/04\/8bcd9345b70138c57efe2a1008c24170.png","keywords":["aqua","AquaSecurity","eBPF","\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3"],"articleSection":["AquaSecurity"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/aquasecurity\/41901","url":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/aquasecurity\/41901","name":"libbpfgo\u306b\u3088\u308beBPF\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u4f5c\u308a\u65b9 #aqua #\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3 #eBPF - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","isPartOf":{"@id":"https:\/\/www.creationline.com\/tech-blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/aquasecurity\/41901#primaryimage"},"image":{"@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/aquasecurity\/41901#primaryimage"},"thumbnailUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2021\/04\/8bcd9345b70138c57efe2a1008c24170.png","datePublished":"2021-04-15T02:00:32+00:00","author":{"@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/2dfcdde19e3b7cb7da7c9ae23e1b7717"},"description":"AquaSecurity |\u672c\u30d6\u30ed\u30b0\u306f\u300cAqua Security\u300d\u793e\u306e\u6280\u8853\u30d6\u30ed\u30b0\u30672021\u5e744\u67086\u65e5\u306b\u516c\u958b\u3055\u308c\u305f\u300c How to Build eBPF Programs with","breadcrumb":{"@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/aquasecurity\/41901#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.creationline.com\/tech-blog\/cloudnative\/aquasecurity\/41901"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/aquasecurity\/41901#primaryimage","url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2021\/04\/8bcd9345b70138c57efe2a1008c24170.png","contentUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2021\/04\/8bcd9345b70138c57efe2a1008c24170.png","width":867,"height":417},{"@type":"BreadcrumbList","@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/aquasecurity\/41901#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"HOME","item":"https:\/\/www.creationline.com\/tech-blog"},{"@type":"ListItem","position":2,"name":"\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6","item":"https:\/\/www.creationline.com\/tech-blog\/cloudnative"},{"@type":"ListItem","position":3,"name":"AquaSecurity","item":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/aquasecurity"},{"@type":"ListItem","position":4,"name":"libbpfgo\u306b\u3088\u308beBPF\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u4f5c\u308a\u65b9 #aqua #\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3 #eBPF"}]},{"@type":"WebSite","@id":"https:\/\/www.creationline.com\/tech-blog\/#website","url":"https:\/\/www.creationline.com\/tech-blog\/","name":"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","description":"\u30a2\u30b8\u30e3\u30a4\u30eb\uff06DevOps\u3001\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6\u3001AI\uff06LLM\u306e\u5148\u7aef\u6280\u8853","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.creationline.com\/tech-blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/2dfcdde19e3b7cb7da7c9ae23e1b7717","name":"Kent Magruder","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2021\/12\/avatar.png","url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2021\/12\/avatar.png","contentUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2021\/12\/avatar.png","caption":"Kent Magruder"},"url":"https:\/\/www.creationline.com\/tech-blog\/author\/k-magruder"}]}},"_links":{"self":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/41901","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/users\/56"}],"replies":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/comments?post=41901"}],"version-history":[{"count":17,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/41901\/revisions"}],"predecessor-version":[{"id":41987,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/41901\/revisions\/41987"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/media\/41902"}],"wp:attachment":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/media?parent=41901"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/categories?post=41901"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/tags?post=41901"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}