Home
last modified time | relevance | path

Searched refs:sfilter (Results 1 - 4 of 4) sorted by relevance

/kernel/linux/linux-6.6/kernel/
H A Dseccomp.c179 static inline bool seccomp_cache_check_allow(const struct seccomp_filter *sfilter, in seccomp_cache_check_allow() argument
185 static inline void seccomp_cache_prepare(struct seccomp_filter *sfilter) in seccomp_cache_prepare() argument
364 * @sfilter: The seccomp filter
369 static inline bool seccomp_cache_check_allow(const struct seccomp_filter *sfilter, in seccomp_cache_check_allow() argument
373 const struct action_cache *cache = &sfilter->cache; in seccomp_cache_check_allow()
650 struct seccomp_filter *sfilter; in seccomp_prepare_filter() local
675 sfilter = kzalloc(sizeof(*sfilter), GFP_KERNEL | __GFP_NOWARN); in seccomp_prepare_filter()
676 if (!sfilter) in seccomp_prepare_filter()
679 mutex_init(&sfilter in seccomp_prepare_filter()
802 seccomp_cache_prepare_bitmap(struct seccomp_filter *sfilter, void *bitmap, const void *bitmap_prev, size_t bitmap_size, int arch) seccomp_cache_prepare_bitmap() argument
844 seccomp_cache_prepare(struct seccomp_filter *sfilter) seccomp_cache_prepare() argument
[all...]
/kernel/linux/linux-5.10/kernel/
H A Dseccomp.c545 struct seccomp_filter *sfilter; in seccomp_prepare_filter() local
565 sfilter = kzalloc(sizeof(*sfilter), GFP_KERNEL | __GFP_NOWARN); in seccomp_prepare_filter()
566 if (!sfilter) in seccomp_prepare_filter()
569 mutex_init(&sfilter->notify_lock); in seccomp_prepare_filter()
570 ret = bpf_prog_create_from_user(&sfilter->prog, fprog, in seccomp_prepare_filter()
573 kfree(sfilter); in seccomp_prepare_filter()
577 refcount_set(&sfilter->refs, 1); in seccomp_prepare_filter()
578 refcount_set(&sfilter->users, 1); in seccomp_prepare_filter()
579 init_waitqueue_head(&sfilter in seccomp_prepare_filter()
[all...]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-6.6/net/can/
H A Draw.c534 struct can_filter sfilter; /* single filter */ in raw_setsockopt() local
560 if (copy_from_sockptr(&sfilter, optval, sizeof(sfilter))) in raw_setsockopt()
581 &sfilter, 1); in raw_setsockopt()
603 ro->dfilter = sfilter; in raw_setsockopt()

Completed in 6 milliseconds