1 /* 2 * Copyright (C) 2017 Red Hat, Inc. 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public License as 6 * published by the Free Software Foundation; either version 2 of 7 * the License, or (at your option) any later version. 8 * 9 * This program is distributed in the hope that it would be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details. 13 * 14 */ 15 16 #ifndef LAPI_MEMFD_H 17 #define LAPI_MEMFD_H 18 19 /* flags for memfd_create(2) (unsigned int) */ 20 #ifndef MFD_CLOEXEC 21 # define MFD_CLOEXEC 0x0001U 22 #endif 23 #ifndef MFD_ALLOW_SEALING 24 # define MFD_ALLOW_SEALING 0x0002U 25 #endif 26 27 #endif 28