summaryrefslogtreecommitdiffstats
path: root/runtime/autoconf-task-uid.c
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/autoconf-task-uid.c')
-rw-r--r--runtime/autoconf-task-uid.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/autoconf-task-uid.c b/runtime/autoconf-task-uid.c
new file mode 100644
index 00000000..8e40f831
--- /dev/null
+++ b/runtime/autoconf-task-uid.c
@@ -0,0 +1,6 @@
+#include <linux/sched.h>
+
+int bar (struct task_struct *foo) {
+ return (foo->uid = 0);
+}
+/* as opposed to linux/cred.h wrappers current_uid() etc. */