mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Replace dynamic macros with constants in memfd test.
PiperOrigin-RevId: 246433167 Change-Id: Idb9b6c20ee1da193176288dfd2f9d85ec0e69c54
This commit is contained in:
committed by
Shentubot
parent
bbb6539114
commit
bf40fa2129
@@ -38,8 +38,15 @@ namespace {
|
||||
// The header sys/memfd.h isn't available on all systems, so redefining some of
|
||||
// the constants here.
|
||||
#define F_LINUX_SPECIFIC_BASE 1024
|
||||
|
||||
#ifndef F_ADD_SEALS
|
||||
#define F_ADD_SEALS (F_LINUX_SPECIFIC_BASE + 9)
|
||||
#endif /* F_ADD_SEALS */
|
||||
|
||||
#ifndef F_GET_SEALS
|
||||
#define F_GET_SEALS (F_LINUX_SPECIFIC_BASE + 10)
|
||||
#endif /* F_GET_SEALS */
|
||||
|
||||
#define F_SEAL_SEAL 0x0001
|
||||
#define F_SEAL_SHRINK 0x0002
|
||||
#define F_SEAL_GROW 0x0004
|
||||
|
||||
Reference in New Issue
Block a user