Home
last modified time | relevance | path

Searched refs:sfilter (Results 1 – 2 of 2) sorted by relevance

/OK3568_Linux_fs/kernel/kernel/
H A Dseccomp.c167 static inline bool seccomp_cache_check_allow(const struct seccomp_filter *sfilter, in seccomp_cache_check_allow() argument
173 static inline void seccomp_cache_prepare(struct seccomp_filter *sfilter) in seccomp_cache_prepare() argument
354 static inline bool seccomp_cache_check_allow(const struct seccomp_filter *sfilter, in seccomp_cache_check_allow() argument
358 const struct action_cache *cache = &sfilter->cache; in seccomp_cache_check_allow()
628 struct seccomp_filter *sfilter; in seccomp_prepare_filter() local
653 sfilter = kzalloc(sizeof(*sfilter), GFP_KERNEL | __GFP_NOWARN); in seccomp_prepare_filter()
654 if (!sfilter) in seccomp_prepare_filter()
657 mutex_init(&sfilter->notify_lock); in seccomp_prepare_filter()
658 ret = bpf_prog_create_from_user(&sfilter->prog, fprog, in seccomp_prepare_filter()
661 kfree(sfilter); in seccomp_prepare_filter()
[all …]
/OK3568_Linux_fs/kernel/net/can/
H A Draw.c520 struct can_filter sfilter; /* single filter */ in raw_setsockopt() local
545 if (copy_from_sockptr(&sfilter, optval, sizeof(sfilter))) in raw_setsockopt()
566 &sfilter, 1); in raw_setsockopt()
588 ro->dfilter = sfilter; in raw_setsockopt()