Long-Term Supported Versions

    Innovation Versions

      Installation

      Requirements

      • Linux kernel 5.13.0
        • BTF (CONFIG_DEBUG_INFO_BTF) must be enabled.
        • BPF LSM (CONFIG_LSM with bpf) must be enabled. This parameter can also be changed in the boot parameter.

      Kernel Configuration

      The kernel must have been compiled with the following flags set:

      CONFIG_BPF=y
      CONFIG_BPF_SYSCALL=y
      CONFIG_BPF_LSM=y
      CONFIF_BPF_JIT=y
      CONFIG_HAVE_EBPF_JIT=y
      CONFIG_BPF_EVENTS=y
      CONFIG_DEBUG_INTO_BTF=y
      

      Kernel compile flags can usually be checked in /proc/config.gz or /boot/config-<kernel-version>.

      Also, the CONFIG_LSM flag must contain bpf. This can also be controlled by the following boot parameter:

      $ cat /etc/default/grub
      ...
      GRUB_CMDLINE_LINUX="... lsm=lockdown,yama,apparmor,bpf"
      ...
      

      Finally, run update-grub2.

      sudo update-grub2
      

      Installation

      Download the latest binary.

      make libbpf-static
      make build
      
      sudo ./build/safeguard --config config/safeguard.yml #|grep BLOCK
      

      Bug Catching

      Buggy Content

      Bug Description

      Submit As Issue

      It's a little complicated....

      I'd like to ask someone.

      PR

      Just a small problem.

      I can fix it online!

      Bug Type
      Specifications and Common Mistakes

      ● Misspellings or punctuation mistakes;

      ● Incorrect links, empty cells, or wrong formats;

      ● Chinese characters in English context;

      ● Minor inconsistencies between the UI and descriptions;

      ● Low writing fluency that does not affect understanding;

      ● Incorrect version numbers, including software package names and version numbers on the UI.

      Usability

      ● Incorrect or missing key steps;

      ● Missing prerequisites or precautions;

      ● Ambiguous figures, tables, or texts;

      ● Unclear logic, such as missing classifications, items, and steps.

      Correctness

      ● Technical principles, function descriptions, or specifications inconsistent with those of the software;

      ● Incorrect schematic or architecture diagrams;

      ● Incorrect commands or command parameters;

      ● Incorrect code;

      ● Commands inconsistent with the functions;

      ● Wrong screenshots.

      Risk Warnings

      ● Lack of risk warnings for operations that may damage the system or important data.

      Content Compliance

      ● Contents that may violate applicable laws and regulations or geo-cultural context-sensitive words and expressions;

      ● Copyright infringement.

      How satisfied are you with this document

      Not satisfied at all
      Very satisfied
      Submit
      Click to create an issue. An issue template will be automatically generated based on your feedback.
      Bug Catching
      编组 3备份