Modified: trunk/launchd/src/launchctl.c (22964 => 22965)
--- trunk/launchd/src/launchctl.c 2006-12-04 17:24:22 UTC (rev 22964)
+++ trunk/launchd/src/launchctl.c 2006-12-04 17:26:23 UTC (rev 22965)
@@ -1180,6 +1180,11 @@
int hnmib[] = { CTL_KERN, KERN_HOSTNAME };
struct group *tfp_gr;
+ if (getuid() != 0) {
+ fprintf(stderr, "%s: Only root can run the 'bootstrap' sub-command right now.\n", getprogname());
+ return 1;
+ }
+
if (assumes((tfp_gr = getgrnam("procview")) != NULL)) {
int tfp_r_mib[3] = { CTL_KERN, KERN_TFP, KERN_TFP_READ_GROUP };
gid_t tfp_r_gid = tfp_gr->gr_gid;
Modified: trunk/launchd/src/launchd.c (22964 => 22965)
--- trunk/launchd/src/launchd.c 2006-12-04 17:24:22 UTC (rev 22964)
+++ trunk/launchd/src/launchd.c 2006-12-04 17:26:23 UTC (rev 22965)
@@ -106,7 +106,7 @@
static job_t rlcj = NULL;
static jmp_buf doom_doom_doom;
static void *crash_addr;
-static const char *launchctl_bootstrap_tool[] = { "/bin/launchctl", "bootstrap", NULL };
+static const char *launchctl_bootstrap_tool[] = { "/bin/launchctl", /* "bootstrap", */ NULL };
sigset_t blocked_signals = 0;
bool shutdown_in_progress = false;