Skip to content

Commit d9f63e4

Browse files
anthraxxthestinger
authored andcommitted
disable unprivileged eBPF access by default
1 parent 040f48e commit d9f63e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/bpf/syscall.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ static DEFINE_SPINLOCK(prog_idr_lock);
3737
static DEFINE_IDR(map_idr);
3838
static DEFINE_SPINLOCK(map_idr_lock);
3939

40-
int sysctl_unprivileged_bpf_disabled __read_mostly;
40+
int sysctl_unprivileged_bpf_disabled __read_mostly = 1;
4141

4242
static const struct bpf_map_ops * const bpf_map_types[] = {
4343
#define BPF_PROG_TYPE(_id, _ops)

0 commit comments

Comments
 (0)