Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Checking the access mode as bellow if (R3 & bpfAccess == 0 /* use R1 as a temp var */) goto next does not handle correctly device file probing with: access(dev_name, F_OK) F_OK does not trigger read or write access. Instead the access type in R3 in that case will be zero and the check will not pass even if "rw" is allowed for the device file. Comparing the 'masked' access type with the requested one solves the issue: if (R3 & bpfAccess != R3 /* use R1 as a temp var */) goto next Signed-off-by: Vasiliy Ulyanov <vulyanov@suse.de>
- Loading branch information