Changeset 23258
- Timestamp:
- 05/22/07 10:05:17 (19 months ago)
- Files:
-
- 1 modified
-
trunk/launchd/src/launchd_core_logic.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/launchd/src/launchd_core_logic.c
r23255 r23258 4588 4588 size_t data_offset = 0; 4589 4589 size_t packed_size; 4590 struct ldcred ldc; 4591 4592 runtime_get_caller_creds(&ldc); 4590 4593 4591 4594 if (!launchd_assumes(j != NULL)) { 4592 4595 return BOOTSTRAP_NO_MEMORY; 4596 } 4597 4598 if (inkey && ldc.euid && ldc.euid != getuid()) { 4599 return BOOTSTRAP_NOT_PRIVILEGED; 4593 4600 } 4594 4601 … … 4674 4681 const char *action; 4675 4682 kern_return_t kr = 0; 4683 struct ldcred ldc; 4676 4684 int oldmask; 4685 4686 runtime_get_caller_creds(&ldc); 4677 4687 4678 4688 if (!launchd_assumes(j != NULL)) { 4679 4689 return BOOTSTRAP_NO_MEMORY; 4690 } 4691 4692 if (inkey && ldc.euid && ldc.euid != getuid()) { 4693 return BOOTSTRAP_NOT_PRIVILEGED; 4680 4694 } 4681 4695

