]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
utils: add missing sealing flags
authorChristian Brauner <christian.brauner@ubuntu.com>
Mon, 11 Feb 2019 13:44:57 +0000 (14:44 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Mon, 11 Feb 2019 13:44:57 +0000 (14:44 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/utils.h

index 84e2f3a84e89c1c8fa06d4693cc9e68ceb4d959b..d86584e8341b74de492941bdecfb596cbd0cc942 100644 (file)
@@ -286,6 +286,20 @@ static inline int signalfd(int fd, const sigset_t *mask, int flags)
 #define MFD_ALLOW_SEALING 0x0002U
 #endif
 
+#ifndef F_LINUX_SPECIFIC_BASE
+#define F_LINUX_SPECIFIC_BASE 1024
+#endif
+#ifndef F_ADD_SEALS
+#define F_ADD_SEALS (F_LINUX_SPECIFIC_BASE + 9)
+#define F_GET_SEALS (F_LINUX_SPECIFIC_BASE + 10)
+#endif
+#ifndef F_SEAL_SEAL
+#define F_SEAL_SEAL 0x0001
+#define F_SEAL_SHRINK 0x0002
+#define F_SEAL_GROW 0x0004
+#define F_SEAL_WRITE 0x0008
+#endif
+
 #ifndef HAVE_MEMFD_CREATE
 static inline int memfd_create(const char *name, unsigned int flags) {
        #ifndef __NR_memfd_create