mirror of
https://github.com/Qortal/Brooklyn.git
synced 2025-02-13 02:35:54 +00:00
* 0day explit mitigation * Memory corruption prevention * Privilege escalation prevention * Buffer over flow prevention * File System corruption defense * Thread escape prevention This may very well be the most intensive inclusion to BrooklynR. This will not be part of an x86 suite nor it will be released as tool kit. The security core toolkit will remain part of kernel base.
18 lines
467 B
C
18 lines
467 B
C
#ifndef _ASM_GENERIC_IOCTL_H
|
|
#define _ASM_GENERIC_IOCTL_H
|
|
|
|
#include <uapi/asm-generic/ioctl.h>
|
|
|
|
#ifdef __CHECKER__
|
|
#define _IOC_TYPECHECK(t) (sizeof(t))
|
|
#else
|
|
/* provoke compile error for invalid uses of size argument */
|
|
extern unsigned int __invalid_size_argument_for_IOC;
|
|
#define _IOC_TYPECHECK(t) \
|
|
((sizeof(t) == sizeof(t[1]) && \
|
|
sizeof(t) < (1 << _IOC_SIZEBITS)) ? \
|
|
sizeof(t) : __invalid_size_argument_for_IOC)
|
|
#endif
|
|
|
|
#endif /* _ASM_GENERIC_IOCTL_H */
|