Searched refs:fprog (Results 1 – 1 of 1) sorted by relevance
639 static struct seccomp_filter *seccomp_prepare_filter(struct sock_fprog *fprog) in seccomp_prepare_filter() argument650 if (fprog->len == 0 || fprog->len > BPF_MAXINSNS) in seccomp_prepare_filter()653 BUG_ON(INT_MAX / fprog->len < sizeof(struct sock_filter)); in seccomp_prepare_filter()671 ret = bpf_prog_create_from_user(&sfilter->prog, fprog, in seccomp_prepare_filter()694 struct sock_fprog fprog; in seccomp_prepare_user_filter() local702 fprog.len = fprog32.len; in seccomp_prepare_user_filter()703 fprog.filter = compat_ptr(fprog32.filter); in seccomp_prepare_user_filter()706 if (copy_from_user(&fprog, user_filter, sizeof(fprog))) in seccomp_prepare_user_filter()708 filter = seccomp_prepare_filter(&fprog); in seccomp_prepare_user_filter()720 static bool seccomp_is_const_allow(struct sock_fprog_kern *fprog, in seccomp_is_const_allow() argument[all …]