当前位置:网站首页>audit 移植
audit 移植
2022-07-07 09:17:00 【ldinvicible】
audit移植
参考https://blog.csdn.net/cfl927096306/article/details/101219403
yocto需要安装以下包,编译出交叉工具链
IMAGE_INSTALL += " openldap libtool python3 swig"audit 源码路径 http://repository.timesys.com/buildsources/a/audit/
解压打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
报错
/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.
修改:
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 ./`
替换的意思
sed -i "s/原字符串/新字符串/g" `grep 原字符串 -rl 所在目录`
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
边栏推荐
- Go Slice 比较
- 基于Retrofit框架的金山API翻译功能案例
- From pornographic live broadcast to live broadcast E-commerce
- After the uniapp jumps to the page in onlaunch, click the event failure solution
- 请问申购新股哪个证券公司开户是最好最安全的
- 关于在云服务器上(这里用腾讯云)安装mysql8.0并使本地可以远程连接的方法
- How to use cherry pick?
- 從色情直播到直播電商
- [untitled]
- Unity websocket server
猜你喜欢
Opencv installation and environment configuration - vs2017
关于jmeter中编写shell脚本json的应用
Verilog design responder [with source code]
2021 summary and 2022 outlook
The concept, implementation and analysis of binary search tree (BST)
如何在博客中添加Aplayer音乐播放器
Array object sorting
JSON format query of MySQL
About the application of writing shell script JSON in JMeter
科普达人丨一文弄懂什么是云计算?
随机推荐
Still cannot find RPC dispatcher table failed to connect in virtual KD
自动化测试框架
基于华为云IOT设计智能称重系统(STM32)
verilog设计抢答器【附源码】
Compile QT project script with qmake
JSON format query of MySQL
Web端自动化测试失败的原因
Transaction rolled back because it has been marked as rollback-only解决
Using ENSP to do MPLS pseudo wire test
uniCloud
Go slice comparison
Ffmpeg record a video command from RTSP
IDEA快捷键大全
The sixth training assignment
Template initial level template
Creative information was surveyed by 2 institutions: greatdb database has been deployed in 9 places
Rolling puddle Uni_ App (VIII)
Realize ray detection, drag the mouse to move the object and use the pulley to scale the object
Laya common script commands
shardingsphere分库分表示例(逻辑表,真实表,绑定表,广播表,单表)