aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/containers/buildah/pkg/unshare/unshare.c
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2019-06-03 15:32:39 +0200
committerMiloslav Trmač <mitr@redhat.com>2019-06-14 15:45:41 +0200
commit5fde3361da51f5c835eae68baa96ae32a7e48925 (patch)
tree8ef2ee263d48d5dfb32845c0fa8d11b864d87eba /vendor/github.com/containers/buildah/pkg/unshare/unshare.c
parentd5f04e920bf0cca02c9efe25ceca7639cbf31644 (diff)
downloadpodman-5fde3361da51f5c835eae68baa96ae32a7e48925.tar.gz
podman-5fde3361da51f5c835eae68baa96ae32a7e48925.tar.bz2
podman-5fde3361da51f5c835eae68baa96ae32a7e48925.zip
Update containers/image to v2.0.0, and buildah to v1.8.4
In c/image, this adds the the mirror-by-digest-only option to mirrors, and moves the search order to an independent list. A synchronized buildah update is necessary to deal with the c/image API change. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Diffstat (limited to 'vendor/github.com/containers/buildah/pkg/unshare/unshare.c')
-rw-r--r--vendor/github.com/containers/buildah/pkg/unshare/unshare.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/vendor/github.com/containers/buildah/pkg/unshare/unshare.c b/vendor/github.com/containers/buildah/pkg/unshare/unshare.c
index 67a3e0e4d..fd0d48d43 100644
--- a/vendor/github.com/containers/buildah/pkg/unshare/unshare.c
+++ b/vendor/github.com/containers/buildah/pkg/unshare/unshare.c
@@ -3,7 +3,7 @@
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <sys/syscall.h>
-#include <linux/memfd.h>
+#include <sys/mman.h>
#include <fcntl.h>
#include <grp.h>
#include <sched.h>
@@ -14,6 +14,17 @@
#include <errno.h>
#include <unistd.h>
+/* Open Source projects like conda-forge, want to package podman and are based
+ off of centos:6, Conda-force has minimal libc requirements and is lacking
+ the memfd.h file, so we use mmam.h
+*/
+#ifndef MFD_ALLOW_SEALING
+#define MFD_ALLOW_SEALING 2U
+#endif
+#ifndef MFD_CLOEXEC
+#define MFD_CLOEXEC 1U
+#endif
+
#ifndef F_LINUX_SPECIFIC_BASE
#define F_LINUX_SPECIFIC_BASE 1024
#endif