printf: Remove unused 'bprintf'
[drm/drm-misc.git] / include / linux / seccomp_types.h
blobcf0a0355024f0a95ec67af4fad0e82d5db3dbb89
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _LINUX_SECCOMP_TYPES_H
3 #define _LINUX_SECCOMP_TYPES_H
5 #include <linux/types.h>
7 #ifdef CONFIG_SECCOMP
9 struct seccomp_filter;
10 /**
11 * struct seccomp - the state of a seccomp'ed process
13 * @mode: indicates one of the valid values above for controlled
14 * system calls available to a process.
15 * @filter_count: number of seccomp filters
16 * @filter: must always point to a valid seccomp-filter or NULL as it is
17 * accessed without locking during system call entry.
19 * @filter must only be accessed from the context of current as there
20 * is no read locking.
22 struct seccomp {
23 int mode;
24 atomic_t filter_count;
25 struct seccomp_filter *filter;
28 #else
30 struct seccomp { };
31 struct seccomp_filter { };
33 #endif
35 #endif /* _LINUX_SECCOMP_TYPES_H */