驅動程式 - Linux Device Driver(LDD) - Falco - 解決Cannot find source file: ../libs/userspace/libscap/scap_udig.c問題



參考資訊:
https://falco.org/blog/choosing-a-driver/
https://falco.org/docs/getting-started/installation/

問題如下:

$ cmake ..
    CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
      Compatibility with CMake < 2.8.12 will be removed from a future version of
      CMake.

      Update the VERSION argument <min> value or use a ...<max> suffix to tell
      CMake that the project does not need compatibility with older versions.


    -- Configuring done
    CMake Error at CMakeLists.txt:29 (add_executable):
      Cannot find source file:

        ../libs/userspace/libscap/scap_udig.c

      Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm .h
      .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .hip .ispc


    CMake Error at CMakeLists.txt:29 (add_executable):
      No SOURCES given to target: pdig

解法如下:

$ cd libs
$ git checkout gen-events-falco-engine