Contributors: 26
	  
        
          | Author | 
          Tokens | 
          Token Proportion | 
          Commits | 
          Commit Proportion | 
        
	  
	  
        
        
          | Andrea Arcangeli | 
          97 | 
          21.23% | 
          4 | 
          8.51% | 
        
        
          | Will Drewry | 
          66 | 
          14.44% | 
          4 | 
          8.51% | 
        
        
          | Tycho Andersen | 
          63 | 
          13.79% | 
          4 | 
          8.51% | 
        
        
          | Andrew Lutomirski | 
          61 | 
          13.35% | 
          3 | 
          6.38% | 
        
        
          | Kees Cook | 
          31 | 
          6.78% | 
          5 | 
          10.64% | 
        
        
          | Thomas Gleixner | 
          21 | 
          4.60% | 
          2 | 
          4.26% | 
        
        
          | Alexey Dobriyan | 
          15 | 
          3.28% | 
          1 | 
          2.13% | 
        
        
          | YiFei Zhu | 
          11 | 
          2.41% | 
          1 | 
          2.13% | 
        
        
          | Linus Walleij | 
          11 | 
          2.41% | 
          1 | 
          2.13% | 
        
        
          | Stephen Rothwell | 
          11 | 
          2.41% | 
          1 | 
          2.13% | 
        
        
          | Sargun Dhillon | 
          10 | 
          2.19% | 
          2 | 
          4.26% | 
        
        
          | Christoph Hellwig | 
          9 | 
          1.97% | 
          1 | 
          2.13% | 
        
        
          | Pavel Machek | 
          6 | 
          1.31% | 
          1 | 
          2.13% | 
        
        
          | Linus Torvalds | 
          6 | 
          1.31% | 
          1 | 
          2.13% | 
        
        
          | Tejun Heo | 
          5 | 
          1.09% | 
          1 | 
          2.13% | 
        
        
          | Andrew Morton | 
          5 | 
          1.09% | 
          2 | 
          4.26% | 
        
        
          | Christian Brauner | 
          5 | 
          1.09% | 
          2 | 
          4.26% | 
        
        
          | Eric W. Biedermann | 
          5 | 
          1.09% | 
          1 | 
          2.13% | 
        
        
          | Kent Overstreet | 
          5 | 
          1.09% | 
          2 | 
          4.26% | 
        
        
          | David Howells | 
          4 | 
          0.88% | 
          2 | 
          4.26% | 
        
        
          | Ralf Baechle | 
          3 | 
          0.66% | 
          1 | 
          2.13% | 
        
        
          | Ingo Molnar | 
          2 | 
          0.44% | 
          1 | 
          2.13% | 
        
        
          | Gabriel Krisman Bertazi | 
          2 | 
          0.44% | 
          1 | 
          2.13% | 
        
        
          | Jens Axboe | 
          1 | 
          0.22% | 
          1 | 
          2.13% | 
        
        
          | Greg Kroah-Hartman | 
          1 | 
          0.22% | 
          1 | 
          2.13% | 
        
        
          | Serge E. Hallyn | 
          1 | 
          0.22% | 
          1 | 
          2.13% | 
        
	  
	  
        
          | Total | 
          457 | 
           | 
          47 | 
           | 
	    
	  
    
 
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _LINUX_SECCOMP_H
#define _LINUX_SECCOMP_H
#include <uapi/linux/seccomp.h>
#include <linux/seccomp_types.h>
#define SECCOMP_FILTER_FLAG_MASK	(SECCOMP_FILTER_FLAG_TSYNC | \
					 SECCOMP_FILTER_FLAG_LOG | \
					 SECCOMP_FILTER_FLAG_SPEC_ALLOW | \
					 SECCOMP_FILTER_FLAG_NEW_LISTENER | \
					 SECCOMP_FILTER_FLAG_TSYNC_ESRCH | \
					 SECCOMP_FILTER_FLAG_WAIT_KILLABLE_RECV)
/* sizeof() the first published struct seccomp_notif_addfd */
#define SECCOMP_NOTIFY_ADDFD_SIZE_VER0 24
#define SECCOMP_NOTIFY_ADDFD_SIZE_LATEST SECCOMP_NOTIFY_ADDFD_SIZE_VER0
#ifdef CONFIG_SECCOMP
#include <linux/thread_info.h>
#include <linux/atomic.h>
#include <asm/seccomp.h>
#ifdef CONFIG_HAVE_ARCH_SECCOMP_FILTER
extern int __secure_computing(const struct seccomp_data *sd);
static inline int secure_computing(void)
{
	if (unlikely(test_syscall_work(SECCOMP)))
		return  __secure_computing(NULL);
	return 0;
}
#else
extern void secure_computing_strict(int this_syscall);
static inline int __secure_computing(const struct seccomp_data *sd)
{
	secure_computing_strict(sd->nr);
	return 0;
}
#endif
extern long prctl_get_seccomp(void);
extern long prctl_set_seccomp(unsigned long, void __user *);
static inline int seccomp_mode(struct seccomp *s)
{
	return s->mode;
}
#else /* CONFIG_SECCOMP */
#include <linux/errno.h>
struct seccomp_data;
#ifdef CONFIG_HAVE_ARCH_SECCOMP_FILTER
static inline int secure_computing(void) { return 0; }
#else
static inline void secure_computing_strict(int this_syscall) { return; }
#endif
static inline int __secure_computing(const struct seccomp_data *sd) { return 0; }
static inline long prctl_get_seccomp(void)
{
	return -EINVAL;
}
static inline long prctl_set_seccomp(unsigned long arg2, char __user *arg3)
{
	return -EINVAL;
}
static inline int seccomp_mode(struct seccomp *s)
{
	return SECCOMP_MODE_DISABLED;
}
#endif /* CONFIG_SECCOMP */
#ifdef CONFIG_SECCOMP_FILTER
extern void seccomp_filter_release(struct task_struct *tsk);
extern void get_seccomp_filter(struct task_struct *tsk);
#else  /* CONFIG_SECCOMP_FILTER */
static inline void seccomp_filter_release(struct task_struct *tsk)
{
	return;
}
static inline void get_seccomp_filter(struct task_struct *tsk)
{
	return;
}
#endif /* CONFIG_SECCOMP_FILTER */
#if defined(CONFIG_SECCOMP_FILTER) && defined(CONFIG_CHECKPOINT_RESTORE)
extern long seccomp_get_filter(struct task_struct *task,
			       unsigned long filter_off, void __user *data);
extern long seccomp_get_metadata(struct task_struct *task,
				 unsigned long filter_off, void __user *data);
#else
static inline long seccomp_get_filter(struct task_struct *task,
				      unsigned long n, void __user *data)
{
	return -EINVAL;
}
static inline long seccomp_get_metadata(struct task_struct *task,
					unsigned long filter_off,
					void __user *data)
{
	return -EINVAL;
}
#endif /* CONFIG_SECCOMP_FILTER && CONFIG_CHECKPOINT_RESTORE */
#ifdef CONFIG_SECCOMP_CACHE_DEBUG
struct seq_file;
struct pid_namespace;
struct pid;
int proc_pid_seccomp_cache(struct seq_file *m, struct pid_namespace *ns,
			   struct pid *pid, struct task_struct *task);
#endif
#endif /* _LINUX_SECCOMP_H */