当前位置:网站首页>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
边栏推荐
- Kitex 重试机制
- Case study of Jinshan API translation function based on retrofit framework
- 常用sql语句整理:mysql
- Get pictures through opencv, change channels and save them
- Qtcreator sets multiple qmake
- 测试开发基础,教你做一个完整功能的Web平台之环境准备
- shardingsphere分库分表示例(逻辑表,真实表,绑定表,广播表,单表)
- Compile QT project script with qmake
- 技术分享 | 抓包分析 TCP 协议
- A simple example of delegate usage
猜你喜欢
Still cannot find RPC dispatcher table failed to connect in virtual KD
Qtcreator sets multiple qmake
The use of list and Its Simulation Implementation
Transaction rolled back because it has been marked as rollback-only解决
MPX plug-in
2021-04-08
The concept, implementation and analysis of binary search tree (BST)
Transaction rolled back because it has been marked as rollback only
关于SIoU《SIoU Loss: More Powerful Learning for Bounding Box Regression Zhora Gevorgyan 》的一些看法及代码实现
Activity生命周期
随机推荐
2022.7.6DAY598
Case study of Jinshan API translation function based on retrofit framework
seata 1.3.0 四種模式解决分布式事務(AT、TCC、SAGA、XA)
Add a self incrementing sequence number to the antd table component
Socket socket programming
[untitled]
Vuthink proper installation process
高考作文,高频提及科技那些事儿……
关于jmeter中编写shell脚本json的应用
【C#】WinForm运行缩放(变糊)的解决方法
Unity websocket client
Compile QT project script with qmake
Activity生命周期
seata 1.3.0 四种模式解决分布式事务(AT、TCC、SAGA、XA)
V-for img SRC rendering fails
Go-Redis 中间件
2021-04-23
普通测试年薪15w,测试开发年薪30w+,二者差距在哪?
Force buckle 1002 Find common characters
Rolling puddle Uni_ App (VIII)