当前位置:网站首页>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
边栏推荐
猜你喜欢
從色情直播到直播電商
测试开发基础,教你做一个完整功能的Web平台之环境准备
Still cannot find RPC dispatcher table failed to connect in virtual KD
"Dream Cup" 2017 Jiangsu information and future primary school summer camp it expert PK program design questions
About the application of writing shell script JSON in JMeter
Idea shortcut keys
What if copying is prohibited?
The post-90s resigned and started a business, saying they would kill cloud database
关于在云服务器上(这里用腾讯云)安装mysql8.0并使本地可以远程连接的方法
Wallhaven wallpaper desktop version
随机推荐
Which securities company is the best and safest to open an account for the subscription of new shares
When initializing 'float', what is the difference between converting to 'float' and adding 'f' as a suffix?
变量的解构赋值
Creative information was surveyed by 2 institutions: greatdb database has been deployed in 9 places
90后,辞职创业,说要卷死云数据库
[C #] the solution of WinForm operation zoom (blur)
Still cannot find RPC dispatcher table failed to connect in virtual KD
[untitled]
Deconstruction and assignment of variables
通过 Play Integrity API 的 nonce 字段提高应用安全性
Go slice comparison
2021-04-23
TDengine 社区问题双周精选 | 第二期
VR development optimization
Ping tool ICMP message learning
shardingsphere分库分表示例(逻辑表,真实表,绑定表,广播表,单表)
Poj1821 fence problem solving Report
Arduino board description
解决VSCode只能开两个标签页的问题
Unity downloads files through the server address