aboutsummaryrefslogtreecommitdiff
path: root/lib/iomap_copy.c
diff options
context:
space:
mode:
authorAndrey Ignatov2019-03-07 18:50:52 -0800
committerAlexei Starovoitov2019-04-12 13:54:58 -0700
commite1550bfe0de47e30484ba91de1e50a91ec1c31f5 (patch)
tree417b3aa59134dff973b0b59f0cfdc1460284aed9 /lib/iomap_copy.c
parent4e63acdff864654cee0ac5aaeda3913798ee78f6 (diff)
bpf: Add file_pos field to bpf_sysctl ctx
Add file_pos field to bpf_sysctl context to read and write sysctl file position at which sysctl is being accessed (read or written). The field can be used to e.g. override whole sysctl value on write to sysctl even when sys_write is called by user space with file_pos > 0. Or BPF program may reject such accesses. Signed-off-by: Andrey Ignatov <rdna@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'lib/iomap_copy.c')
0 files changed, 0 insertions, 0 deletions