summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRob Landley2006-07-15 23:00:46 +0000
committerRob Landley2006-07-15 23:00:46 +0000
commitdf822f2606a5c56a8af5785d4e507aff2eeaaace (patch)
tree087cd0a58a163f3ea7819e59abecbd901227486a /include
parent1870737480b8beaa6c8834b916da7f73f4fb4807 (diff)
downloadbusybox-df822f2606a5c56a8af5785d4e507aff2eeaaace.zip
busybox-df822f2606a5c56a8af5785d4e507aff2eeaaace.tar.gz
We need xsetuid() and xsetgid() because per-user process resource limits can
prevent a process from switching to a user that has too many processes, and when that happens WE'RE STILL ROOT. See http://lwn.net/Articles/190331/
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 2f90412..549b4fc 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -185,6 +185,8 @@ extern void utoa_to_buf(unsigned n, char *buf, unsigned buflen);
extern char *utoa(unsigned n);
extern void itoa_to_buf(int n, char *buf, unsigned buflen);
extern char *itoa(int n);
+extern void xsetgid(gid_t gid);
+extern void xsetuid(uid_t uid);
#define BB_GETOPT_ERROR 0x80000000UL
extern const char *bb_opt_complementally;