当前位置:网站首页>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 determines whether the mouse clicks on the UI
- Use of dotween
- 学习笔记|数据小白使用DataEase制作数据大屏
- Poj1821 fence problem solving Report
- Project ERROR: Unknown module(s) in QT: core gui
- TDengine 社区问题双周精选 | 第二期
- 网络协议 概念
- Verilog design responder [with source code]
- 在我有限的软件测试经历里,一段专职的自动化测试经验总结
- Still cannot find RPC dispatcher table failed to connect in virtual KD
猜你喜欢

数据库同步工具 DBSync 新增对MongoDB、ES的支持

科普达人丨一文弄懂什么是云计算?
![[pyqt] the cellwidget in tablewidget uses signal and slot mechanism](/img/0e/02265f7195ca0add4155694530822a.png)
[pyqt] the cellwidget in tablewidget uses signal and slot mechanism
![[untitled]](/img/c2/d70d052b7e9587dc81c622f62f8566.jpg)
[untitled]

Transaction rolled back because it has been marked as rollback-only解决

2021-04-08

VR development optimization

Unity script generates configurable files and loads

RationalDMIS2022阵列工件测量

About the application of writing shell script JSON in JMeter
随机推荐
POJ1821 Fence 题解报告
JSON format query of MySQL
Poj1821 fence problem solving Report
Socket socket programming
Antd select selector drop-down box follows the scroll bar to scroll through the solution
Verilog 实现数码管显视驱动【附源码】
[pytorch 07] hands on deep learning chapter_ Preliminaries/ndarray exercises hands-on version
Go redis Middleware
软件设计之——“高内聚低耦合”
高考作文,高频提及科技那些事儿……
vim 的各种用法,很实用哦,都是本人是在工作中学习和总结的
Template initial level template
Arduino receives and sends strings
[C #] the solution of WinForm operation zoom (blur)
解决VSCode只能开两个标签页的问题
JS add spaces to the string
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
[untitled]
What if copying is prohibited?