bpf-lsm:具有LSM挂钩的示例BPF程序

上传者: 42121086 | 上传时间: 2022-11-17 16:46:07 | 文件大小: 584KB | 文件类型: ZIP
C
BPF LSM示例 此仓库包含脚本和示例程序,可与BPF CO-RE模块和LSM一起使用。 为了完全可移植(假设有足够新的内核),并展示它如何与Rust程序互操作,用户空间组件以Rust和C的组合编写,并用clang编译,并与musl链接。 结果应该是您可以将输出二进制文件放在任何Linux 5.8+内核上(用于环形缓冲区和LSM挂钩支持)并运行它。 它还具有关于通过具有lsm挂钩的跟踪点共享用户空间数据的一些想法。 快速开始 vagrant up make 在一个VM ssh会话中: vagrant@ubuntu-hirsute: ~ $ sudo /vagrant/probe -b 1 -f \ ' reject bprm_check_security when user.id == 1000 and process.executable == "/usr/bin/ls" '

文件下载

资源详情

[{"title":"( 34 个子文件 584KB ) bpf-lsm:具有LSM挂钩的示例BPF程序","children":[{"title":"bpf-lsm-master","children":[{"title":"Vagrantfile <span style='color:#111;'> 252B </span>","children":null,"spread":false},{"title":"probe-sys","children":[{"title":"build.rs <span style='color:#111;'> 1.02KB </span>","children":null,"spread":false},{"title":"templates","children":[{"title":"struct.proto.j2 <span style='color:#111;'> 951B </span>","children":null,"spread":false},{"title":"include","children":[{"title":"probe.generated.h.j2 <span style='color:#111;'> 4.66KB </span>","children":null,"spread":false}],"spread":true},{"title":"lib.rs.j2 <span style='color:#111;'> 16.43KB </span>","children":null,"spread":false},{"title":"compiler.rs.j2 <span style='color:#111;'> 11.28KB </span>","children":null,"spread":false}],"spread":true},{"title":"src","children":[{"title":"probe.bpf.c <span style='color:#111;'> 2.40KB </span>","children":null,"spread":false},{"title":"include","children":[{"title":"probe.h <span style='color:#111;'> 920B </span>","children":null,"spread":false},{"title":"probe_macros.h <span style='color:#111;'> 9.02KB </span>","children":null,"spread":false},{"title":"vmlinux.h <span style='color:#111;'> 2.28MB </span>","children":null,"spread":false},{"title":"probe_common.h <span style='color:#111;'> 1.45KB </span>","children":null,"spread":false},{"title":"probe_bpf.h <span style='color:#111;'> 8.00KB </span>","children":null,"spread":false}],"spread":true},{"title":"probe.c <span style='color:#111;'> 2.86KB </span>","children":null,"spread":false}],"spread":true},{"title":"Cargo.toml <span style='color:#111;'> 633B </span>","children":null,"spread":false},{"title":"requirements.txt <span style='color:#111;'> 47B </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 59B </span>","children":null,"spread":false},{"title":"Makefile <span style='color:#111;'> 1.53KB </span>","children":null,"spread":false},{"title":"scripts","children":[{"title":"generate-structures <span style='color:#111;'> 6.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Cargo.lock <span style='color:#111;'> 29.96KB </span>","children":null,"spread":false},{"title":"rule-compiler","children":[{"title":"src","children":[{"title":"lib.rs <span style='color:#111;'> 21.40KB </span>","children":null,"spread":false}],"spread":true},{"title":"Cargo.toml <span style='color:#111;'> 197B </span>","children":null,"spread":false}],"spread":true},{"title":"schemas","children":[{"title":"bprm_check_security.yml <span style='color:#111;'> 7.57KB </span>","children":null,"spread":false}],"spread":true},{"title":"src","children":[{"title":"handler.rs <span style='color:#111;'> 1.73KB </span>","children":null,"spread":false},{"title":"logging.rs <span style='color:#111;'> 672B </span>","children":null,"spread":false},{"title":"batcher.rs <span style='color:#111;'> 3.39KB </span>","children":null,"spread":false},{"title":"main.rs <span style='color:#111;'> 3.13KB </span>","children":null,"spread":false},{"title":"tests.rs <span style='color:#111;'> 1.06KB </span>","children":null,"spread":false},{"title":"globals.rs <span style='color:#111;'> 338B </span>","children":null,"spread":false},{"title":"client.rs <span style='color:#111;'> 2.20KB </span>","children":null,"spread":false},{"title":"errors.rs <span style='color:#111;'> 489B </span>","children":null,"spread":false}],"spread":true},{"title":"Cargo.toml <span style='color:#111;'> 801B </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 57B </span>","children":null,"spread":false},{"title":"Makefile <span style='color:#111;'> 1.01KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 2.98KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明