From b30bd4dda709768d98d5f16b596afca5067501a2 Mon Sep 17 00:00:00 2001 From: Tongyx Date: Mon, 2 Sep 2024 06:56:27 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20INSTALL.md=20=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E8=BD=AF=E4=BB=B6=E5=8C=85=E5=AE=89=E8=A3=85=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Tongyx --- INSTALL.md | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/INSTALL.md b/INSTALL.md index 6e64f00..d0b0763 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -1,8 +1,15 @@ -# Installing safeguard +# 安装 safeguard -## Kernel Configuration +## 编译工具 -The kernel must have been compiled with the following flags set: +安装必要的编译工具,可能包括: +``` +$ yum install libbpf-devel make clang llvm elfutils-libelf-devel bpftool bcc-tools bcc-devel dwarves +``` + +## 内核配置 + +内核编译时必须开启以下内核选项: ```shell CONFIG_BPF=y @@ -14,9 +21,9 @@ CONFIG_BPF_EVENTS=y CONFIG_DEBUG_INFO_BTF=y ``` -Kernel compile flags can usually be checked by looking at /proc/config.gz or /boot/config-. +内核编译标志可以通过查看`/proc/config.gz`或`/boot/config-` 来检查。 -Also, the `CONFIG_LSM` flag must contain `bpf`. This can also be controlled by boot parameters as following: +此外,`CONFIG_LSM`标志必须包含`bpf`。可以通过以下引导参数进行控制: ```shell $ cat /etc/default/grub @@ -24,7 +31,3 @@ $ cat /etc/default/grub GRUB_CMDLINE_LINUX="... lsm=lockdown,yama,apparmor,bpf" ... ``` - -## Download Binary - -Download latest released binary -- Gitee