aboutsummaryrefslogtreecommitdiff
path: root/loginutils/vlock.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2015-10-19 01:20:36 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2015-10-19 01:20:36 +0200
commit95dee81a465668151cff3ffd757456a9a10c1f1f (patch)
treea9f128900d1fc484f26cd521525907fa1af262c0 /loginutils/vlock.c
parent28826ac8c02793431203edb4adb961d5521d643d (diff)
downloadbusybox-95dee81a465668151cff3ffd757456a9a10c1f1f.tar.gz
loginutils/*: convert to new-style "one file" applets
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'loginutils/vlock.c')
-rw-r--r--loginutils/vlock.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/loginutils/vlock.c b/loginutils/vlock.c
index 44b14e6bc..52ae607c9 100644
--- a/loginutils/vlock.c
+++ b/loginutils/vlock.c
@@ -13,7 +13,21 @@
* minimalistic vlock.
*/
/* Fixed by Erik Andersen to do passwords the tinylogin way...
- * It now works with md5, sha1, etc passwords. */
+ * It now works with md5, sha1, etc passwords.
+ */
+//config:config VLOCK
+//config: bool "vlock"
+//config: default y
+//config: help
+//config: Build the "vlock" applet which allows you to lock (virtual) terminals.
+//config:
+//config: Note that Busybox binary must be setuid root for this applet to
+//config: work properly.
+
+//applet:/* Needs to be run by root or be suid root - needs to change uid and gid: */
+//applet:IF_VLOCK(APPLET(vlock, BB_DIR_USR_BIN, BB_SUID_REQUIRE))
+
+//kbuild:lib-$(CONFIG_VLOCK) += vlock.o
//usage:#define vlock_trivial_usage
//usage: "[-a]"