Re: [PATCH v2 bpf 2/2] selftests/bpf: add test for freplace program with write access

2020-08-20 Thread Yonghong Song
On 8/20/20 5:28 PM, Udip Pant wrote: This adds a selftest that tests the behavior when a freplace target program attempts to make a write access on a packet. The expectation is that the read or write access is granted based on the program type of the linked program and not itself (which is of

[PATCH v2 bpf 2/2] selftests/bpf: add test for freplace program with write access

2020-08-20 Thread Udip Pant
This adds a selftest that tests the behavior when a freplace target program attempts to make a write access on a packet. The expectation is that the read or write access is granted based on the program type of the linked program and not itself (which is of type, for e.g., BPF_PROG_TYPE_EXT). This