Closed fanrong1992 closed 2 years ago
This example (LSM task_setnice) is working for you? It does not work for me, none LSM app.
As discussed in Discord, i got Aya LSM example working on Ubuntu Lemmy by edit GRUB_CMDLINE_LINUX
on /etc/default/grub
:
GRUB_CMDLINE_LINUX="systemd.unified_cgroup_hierarchy=1 lsm=lockdown,capability,yama,apparmor,bpf bpf_lsm=1"
and then:
$ sudo update-grub
reboot
This example (LSM task_setnice) is working for you? It does not work for me, none LSM app.
It doesn't work for me, either.
As discussed in Discord, i got Aya LSM example working on Ubuntu Lemmy by edit
GRUB_CMDLINE_LINUX
on/etc/default/grub
:
GRUB_CMDLINE_LINUX="systemd.unified_cgroup_hierarchy=1 lsm=lockdown,capability,yama,apparmor,bpf bpf_lsm=1"
and then:
$ sudo update-grub
reboot
Thank you for your solution, I will try it.
I'm closing this. Now we have an explanation in docs how to enable BPF LSM - https://aya-rs.dev/book/programs/lsm/#ensure-that-bpf-lsm-is-enabled
I try to run example in aya/book, but after I execute
renice 1 -p 380074
, there is no output on screen.It works well in kprobe program.
Here is my code:
Is there any bug in aya_log_ebpf or my code? Thank you~