You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At https://github.com/kubeshield/bpf-opa-demo, we're writing policy in rego that can filter linux system call data. Most of the system calls have a flag parameter. It'd be a lot easier if opa supported bitwise operations.
For example, to check O_WRONLY flag is set on open syscall, we could do the following
Adding support for bitwise operations on integer numbers would be good. Since bitwise operations are not used frequently today I'd rather not overload the infix & and | operators for now. We could add bitwise functions like:
Expected Behavior
At https://github.com/kubeshield/bpf-opa-demo, we're writing policy in rego that can filter linux system call data. Most of the system calls have a flag parameter. It'd be a lot easier if opa supported bitwise operations.
For example, to check
O_WRONLY
flag is set onopen
syscall, we could do the followingActual Behavior
Instead, we'd to do the following
cc @tamalsaha
The text was updated successfully, but these errors were encountered: