about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/linux/setfsgid.c8
-rw-r--r--src/linux/setfsuid.c8
2 files changed, 16 insertions, 0 deletions
diff --git a/src/linux/setfsgid.c b/src/linux/setfsgid.c
new file mode 100644
index 00000000..a7ed9e92
--- /dev/null
+++ b/src/linux/setfsgid.c
@@ -0,0 +1,8 @@
+#include <unistd.h>
+#include "syscall.h"
+#include "libc.h"
+
+int setfsgid(gid_t gid)
+{
+	return syscall(SYS_setfsgid, gid);
+}
diff --git a/src/linux/setfsuid.c b/src/linux/setfsuid.c
new file mode 100644
index 00000000..1509e0aa
--- /dev/null
+++ b/src/linux/setfsuid.c
@@ -0,0 +1,8 @@
+#include <unistd.h>
+#include "syscall.h"
+#include "libc.h"
+
+int setfsuid(uid_t uid)
+{
+	return syscall(SYS_setfsuid, uid);
+}