当前位置:网站首页>Audit migration
Audit migration
2022-07-07 11:16:00 【ldinvicible】
audit transplant
Reference resources https://blog.csdn.net/cfl927096306/article/details/101219403
yocto The following packages need to be installed , Compile the cross tool chain
IMAGE_INSTALL += " openldap libtool python3 swig"audit Source path http://repository.timesys.com/buildsources/a/audit/
Decompression and typing patch
tar -xf audit-3.0.6.tar.gz
cd audit-3.0.6/
patch -p1 < ../audit-3.0.6-cross.patch
patch -p1 < ../audit-3.0.6-sys_stat_h.patch
source /opt/origin/environment-setup-cortexa53-crypto-poky-linux
./configure --host=arm-none-linux --with-arm=yes --prefix=/XXX/tools/audit/audit-3.0.6/audit-3.0.6/__install
Report errors
/usr/include/python3.8/pyconfig.h:9:12: fatal error: aarch64-linux-gnu/python3.8/pyconfig.h: No such file or directory
9 | # include <aarch64-linux-gnu/python3.8/pyconfig.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
modify :
sed -i "s/\/usr\/include\/python3.8/\/opt\/origin\/sysroots\/cortexa53-crypto-poky-linux\/usr\/include\/python3.9/g" `grep /usr/include/python3.8 -rl ./`
Replacement means
sed -i "s/ Original string / New string /g" `grep Original string -rl In the directory `
make -j32
make install
-------------------------
cp -rfp sbin/* /sbin/
cp -rfp bin/* /bin/
cp -rfp lib/ /lib/
cp -rfp lib/* /lib/
cp -rfp etc/* /etc/
mkdir -p /var/log/audit
chown root /etc/audit/auditd.conf
chown root /sbin/audispd
-----------------------------------------
mkdir -p /var/log/audit
auditd -f
auditctl -a exit,always -F arch=b64 -S kill -F a1=9
auditctl -a exit,always -F arch=b64 -S kill -k my_monitor_kill
边栏推荐
猜你喜欢
Deeply understand the characteristics of database transaction isolation
What if copying is prohibited?
Still cannot find RPC dispatcher table failed to connect in virtual KD
基于DE2 115开发板驱动HC_SR04超声波测距模块【附源码】
About the application of writing shell script JSON in JMeter
MPX plug-in
Ping tool ICMP message learning
基于华为云IOT设计智能称重系统(STM32)
Idea shortcut keys
RationalDMIS2022阵列工件测量
随机推荐
Static semantic check of clang tidy in cicd
什么是高内聚、低耦合?
What if copying is prohibited?
Debezium同步之Debezium架构详解
自动化测试框架
Go redis Middleware
mif 文件格式记录
Mpx 插件
Vuthink proper installation process
IDEA快捷键大全
Kitex 重试机制
Project ERROR: Unknown module(s) in QT: core gui
2021 summary and 2022 outlook
uniCloud
About the application of writing shell script JSON in JMeter
基于STC8G1K08的0.96寸IIC液晶屏驱动程序
verilog设计抢答器【附源码】
Arduino board description
Still cannot find RPC dispatcher table failed to connect in virtual KD
0.96 inch IIC LCD driver based on stc8g1k08