aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/csource
diff options
context:
space:
mode:
authorAndrey Artemiev <artemiev@google.com>2022-04-07 02:38:50 +0000
committerAleksandr Nogikh <wp32pw@gmail.com>2022-04-13 11:58:24 +0200
commitb17b2923e60fea9f22c4a2161742e16f41b84980 (patch)
tree8e1123965d1b7201ec7bbb9f7b9d9e89a551ea1b /pkg/csource
parentc93be2342ceb683ac38c3f5189df000446df8e6a (diff)
executor: applied Bionic patch
Diffstat (limited to 'pkg/csource')
-rw-r--r--pkg/csource/generated.go18
1 files changed, 18 insertions, 0 deletions
diff --git a/pkg/csource/generated.go b/pkg/csource/generated.go
index 74b56d8ea..b9bdc1341 100644
--- a/pkg/csource/generated.go
+++ b/pkg/csource/generated.go
@@ -9126,6 +9126,24 @@ static void set_app_seccomp_filter()
install_filter(&f);
}
+
+#if GOARCH_amd64 || GOARCH_386
+inline int mkdir(const char* path, mode_t mode)
+{
+ return mkdirat(AT_FDCWD, path, mode);
+}
+
+inline int rmdir(const char* path)
+{
+ return unlinkat(AT_FDCWD, path, AT_REMOVEDIR);
+}
+
+inline int symlink(const char* old_path, const char* new_path)
+{
+ return symlinkat(old_path, AT_FDCWD, new_path);
+}
+#endif
+
#endif
#include <fcntl.h>
#include <grp.h>