Changeset 23631
- Timestamp:
- 05/21/08 17:27:39 (6 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/SULeopard/launchd/src/launchd_core_logic.c
r23613 r23631 5247 5247 job_t js; 5248 5248 5249 #if TARGET_OS_EMBEDDED 5250 return BOOTSTRAP_NOT_PRIVILEGED; 5251 #endif 5252 5249 5253 if (!launchd_assumes(j != NULL)) { 5250 5254 return BOOTSTRAP_NO_MEMORY; … … 5734 5738 struct ldcred ldc; 5735 5739 job_t ji; 5740 5741 #if TARGET_OS_EMBEDDED 5742 return BOOTSTRAP_NOT_PRIVILEGED; 5743 #endif 5736 5744 5737 5745 if (!launchd_assumes(j != NULL)) { … … 6021 6029 job_t ji; 6022 6030 6031 #if TARGET_OS_EMBEDDED 6032 return BOOTSTRAP_NOT_PRIVILEGED; 6033 #endif 6034 6023 6035 if (!launchd_assumes(j != NULL)) { 6024 6036 return BOOTSTRAP_NO_MEMORY; … … 6142 6154 struct ldcred ldc; 6143 6155 jobmgr_t jmr = NULL; 6156 6157 #if TARGET_OS_EMBEDDED 6158 return BOOTSTRAP_NOT_PRIVILEGED; 6159 #endif 6144 6160 6145 6161 if (!launchd_assumes(j != NULL)) { … … 6319 6335 job_t ji; 6320 6336 6337 #if TARGET_OS_EMBEDDED 6338 return BOOTSTRAP_NOT_PRIVILEGED; 6339 #endif 6340 6321 6341 if (!launchd_assumes(j != NULL)) { 6322 6342 return BOOTSTRAP_NO_MEMORY; … … 6609 6629 job_mig_set_service_policy(job_t j, pid_t target_pid, uint64_t flags, name_t target_service) 6610 6630 { 6631 struct ldcred ldc; 6611 6632 job_t target_j; 6612 6633 6613 6634 if (!launchd_assumes(j != NULL)) { 6614 6635 return BOOTSTRAP_NO_MEMORY; 6636 } 6637 6638 runtime_get_caller_creds(&ldc); 6639 6640 if (unlikely(ldc.uid || ldc.euid)) { 6641 return BOOTSTRAP_NOT_PRIVILEGED; 6615 6642 } 6616 6643 … … 6642 6669 struct ldcred ldc; 6643 6670 job_t jr; 6671 6672 #if TARGET_OS_EMBEDDED 6673 return BOOTSTRAP_NOT_PRIVILEGED; 6674 #endif 6644 6675 6645 6676 runtime_get_caller_creds(&ldc);

