79122509

Date: 2024-10-24 14:54:44
Score: 2
Natty:
Report link

Like @dylan-reimerink said, you can't use the return value of a kprobe to deny anything. But you can use LSM, bpf_override_return or bpf_send_signal to deny some operations.

Here are some example implementations you can explore:

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Contains signature (1):
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @dylan-reimerink
  • Low reputation (0.5):
Posted by: mozillazg