Searched refs:fprog (Results 1 – 1 of 1) sorted by relevance
430 static struct seccomp_filter *seccomp_prepare_filter(struct sock_fprog *fprog) in seccomp_prepare_filter() argument436 if (fprog->len == 0 || fprog->len > BPF_MAXINSNS) in seccomp_prepare_filter()439 BUG_ON(INT_MAX / fprog->len < sizeof(struct sock_filter)); in seccomp_prepare_filter()458 ret = bpf_prog_create_from_user(&sfilter->prog, fprog, in seccomp_prepare_filter()479 struct sock_fprog fprog; in seccomp_prepare_user_filter() local487 fprog.len = fprog32.len; in seccomp_prepare_user_filter()488 fprog.filter = compat_ptr(fprog32.filter); in seccomp_prepare_user_filter()491 if (copy_from_user(&fprog, user_filter, sizeof(fprog))) in seccomp_prepare_user_filter()493 filter = seccomp_prepare_filter(&fprog); in seccomp_prepare_user_filter()1503 struct sock_fprog_kern *fprog; in seccomp_get_filter() local[all …]