当前位置:网站首页>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
边栏推荐
- 使用引用
- Unity script generates configurable files and loads
- [untitled]
- 请问申购新股哪个证券公司开户是最好最安全的
- Mpx 插件
- 滚动踩坑--UNI_APP(八)
- Using ENSP to do MPLS pseudo wire test
- Deeply understand the characteristics of database transaction isolation
- 关于SIoU《SIoU Loss: More Powerful Learning for Bounding Box Regression Zhora Gevorgyan 》的一些看法及代码实现
- vim 的各种用法,很实用哦,都是本人是在工作中学习和总结的
猜你喜欢

2021-04-23

Deeply understand the characteristics of database transaction isolation

verilog设计抢答器【附源码】

Basic knowledge of process (orphan, zombie process)

The use of list and Its Simulation Implementation

2021 summary and 2022 outlook

【pyqt】tableWidget里的cellWidget使用信号与槽机制

electron添加SQLite数据库

How to remove addition and subtraction from inputnumber input box

Using ENSP to do MPLS pseudo wire test
随机推荐
Creative information was surveyed by 2 institutions: greatdb database has been deployed in 9 places
[untitled]
什么是高内聚、低耦合?
[untitled]
【C#】WinForm运行缩放(变糊)的解决方法
数据库同步工具 DBSync 新增对MongoDB、ES的支持
The post-90s resigned and started a business, saying they would kill cloud database
2022.7.5DAY597
A case of compiling QT file qmake compiling script
关于jmeter中编写shell脚本json的应用
[untitled]
变量的解构赋值
Activity lifecycle
seata 1.3.0 四种模式解决分布式事务(AT、TCC、SAGA、XA)
TDengine 社区问题双周精选 | 第二期
学习笔记|数据小白使用DataEase制作数据大屏
VIM命令模式与输入模式切换
软件设计之——“高内聚低耦合”
Project ERROR: Unknown module(s) in QT: core gui
Unity script visualization about layout code