Skip to content

Commit

Permalink
disable unprivileged eBPF access by default
Browse files Browse the repository at this point in the history
  • Loading branch information
anthraxx committed Jul 11, 2018
1 parent 27b128a commit 0fe1490
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/bpf/syscall.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ static DEFINE_SPINLOCK(prog_idr_lock);
static DEFINE_IDR(map_idr);
static DEFINE_SPINLOCK(map_idr_lock);

int sysctl_unprivileged_bpf_disabled __read_mostly;
int sysctl_unprivileged_bpf_disabled __read_mostly = 1;

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

0 comments on commit 0fe1490

Please sign in to comment.