diff options
Diffstat (limited to 'runit/chpst.c')
-rw-r--r-- | runit/chpst.c | 45 |
1 files changed, 44 insertions, 1 deletions
diff --git a/runit/chpst.c b/runit/chpst.c index 71af29f66..301cdd08a 100644 --- a/runit/chpst.c +++ b/runit/chpst.c | |||
@@ -26,7 +26,50 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |||
26 | */ | 26 | */ |
27 | 27 | ||
28 | /* Busyboxed by Denys Vlasenko <vda.linux@googlemail.com> */ | 28 | /* Busyboxed by Denys Vlasenko <vda.linux@googlemail.com> */ |
29 | /* Dependencies on runit_lib.c removed */ | 29 | |
30 | //config:config CHPST | ||
31 | //config: bool "chpst" | ||
32 | //config: default y | ||
33 | //config: help | ||
34 | //config: chpst changes the process state according to the given options, and | ||
35 | //config: execs specified program. | ||
36 | //config: | ||
37 | //config:config SETUIDGID | ||
38 | //config: bool "setuidgid" | ||
39 | //config: default y | ||
40 | //config: help | ||
41 | //config: Sets soft resource limits as specified by options | ||
42 | //config: | ||
43 | //config:config ENVUIDGID | ||
44 | //config: bool "envuidgid" | ||
45 | //config: default y | ||
46 | //config: help | ||
47 | //config: Sets $UID to account's uid and $GID to account's gid | ||
48 | //config: | ||
49 | //config:config ENVDIR | ||
50 | //config: bool "envdir" | ||
51 | //config: default y | ||
52 | //config: help | ||
53 | //config: Sets various environment variables as specified by files | ||
54 | //config: in the given directory | ||
55 | //config: | ||
56 | //config:config SOFTLIMIT | ||
57 | //config: bool "softlimit" | ||
58 | //config: default y | ||
59 | //config: help | ||
60 | //config: Sets soft resource limits as specified by options | ||
61 | |||
62 | //applet:IF_CHPST(APPLET(chpst, BB_DIR_USR_BIN, BB_SUID_DROP)) | ||
63 | //applet:IF_ENVDIR(APPLET_ODDNAME(envdir, chpst, BB_DIR_USR_BIN, BB_SUID_DROP, envdir)) | ||
64 | //applet:IF_ENVUIDGID(APPLET_ODDNAME(envuidgid, chpst, BB_DIR_USR_BIN, BB_SUID_DROP, envuidgid)) | ||
65 | //applet:IF_SETUIDGID(APPLET_ODDNAME(setuidgid, chpst, BB_DIR_USR_BIN, BB_SUID_DROP, setuidgid)) | ||
66 | //applet:IF_SOFTLIMIT(APPLET_ODDNAME(softlimit, chpst, BB_DIR_USR_BIN, BB_SUID_DROP, softlimit)) | ||
67 | |||
68 | //kbuild:lib-$(CONFIG_CHPST) += chpst.o | ||
69 | //kbuild:lib-$(CONFIG_ENVDIR) += chpst.o | ||
70 | //kbuild:lib-$(CONFIG_ENVUIDGID) += chpst.o | ||
71 | //kbuild:lib-$(CONFIG_SETUIDGID) += chpst.o | ||
72 | //kbuild:lib-$(CONFIG_SOFTLIMIT) += chpst.o | ||
30 | 73 | ||
31 | //usage:#define chpst_trivial_usage | 74 | //usage:#define chpst_trivial_usage |
32 | //usage: "[-vP012] [-u USER[:GRP]] [-U USER[:GRP]] [-e DIR]\n" | 75 | //usage: "[-vP012] [-u USER[:GRP]] [-U USER[:GRP]] [-e DIR]\n" |