当前位置:网站首页>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
边栏推荐
- Antd select selector drop-down box follows the scroll bar to scroll through the solution
- RationalDMIS2022阵列工件测量
- Bookmarking - common website navigation for programmers
- 滚动踩坑--UNI_APP(八)
- The database synchronization tool dbsync adds support for mongodb and es
- About the application of writing shell script JSON in JMeter
- Kitex retry mechanism
- Opencv installation and environment configuration - vs2017
- 【C#】WinForm运行缩放(变糊)的解决方法
- Avoid mutating a prop directly since the value will be overwritten whenever the parent component
猜你喜欢
Interprocess communication (IPC)
[untitled]
Wallhaven壁纸桌面版
【pyqt】tableWidget里的cellWidget使用信号与槽机制
Arduino board description
Activity lifecycle
Seata 1.3.0 four modes to solve distributed transactions (at, TCC, Saga, XA)
Input type= "password" how to solve the problem of password automatically brought in
关于jmeter中编写shell脚本json的应用
90后,辞职创业,说要卷死云数据库
随机推荐
Unity script visualization about layout code
How to remove addition and subtraction from inputnumber input box
在我有限的软件测试经历里,一段专职的自动化测试经验总结
Ffmpeg record a video command from RTSP
The seventh training assignment
JS add spaces to the string
Unity script generates configurable files and loads
[untitled]
Vuthink proper installation process
测试优惠券要怎么写测试用例?
滚动踩坑--UNI_APP(八)
关于jmeter中编写shell脚本json的应用
测试开发基础,教你做一个完整功能的Web平台之环境准备
解决VSCode只能开两个标签页的问题
Bookmarking - common website navigation for programmers
RationalDMIS2022阵列工件测量
Qt|多个窗口共有一个提示框类
自动化测试框架
uniCloud
Verilog design responder [with source code]