https://github.com/puredarwin/pam_modules_pd
Solves the "Root Mach bootstrap cannot be transferred" error.
https://github.com/puredarwin/pam_modules_pd
Last synced: 5 months ago
JSON representation
Solves the "Root Mach bootstrap cannot be transferred" error.
- Host: GitHub
- URL: https://github.com/puredarwin/pam_modules_pd
- Owner: PureDarwin
- License: other
- Created: 2015-07-18T17:16:38.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-07-18T17:30:51.000Z (almost 11 years ago)
- Last Synced: 2025-05-31T13:06:15.479Z (about 1 year ago)
- Language: Makefile
- Homepage: https://lists.macosforge.org/pipermail/launchd-dev/2009-March/000497.html
- Size: 133 KB
- Stars: 3
- Watchers: 6
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pam_modules_pd
Without this, following error messages are printed to the system error log on a PureDarwin system:
```
Mar 17 16:50:57 VMDarwin com.apple.launchd[1]
(com.apple.launchd.peruser.1000[95]): Root Mach bootstrap cannot be
transferred.
Mar 17 16:50:57 VMDarwin login[94]: USER_PROCESS: 94 ttys000
Mar 17 16:50:57 VMDarwin com.apple.launchd[95] (0x1010b0.login[94]):
Bug: launchd_core_logic.c:6292 (23646):1100: kr == 0
```
Following a [thread](https://lists.macosforge.org/pipermail/launchd-dev/2009-March/000497.html) on the `launchd-dev` mailing list, [Stuart Crook](https://github.com/sjc) wrote this module for PureDarwin following information from Damien Sorresso that "`login` is calling into pam_launchd, which calls into `_vprocmgr_move_subset_to_user()`, and it resides in the root Mach bootstrap, i.e. the bootstrap provided by the PID 1 `launchd`. The SPI is calling `_vprocmgr_move_subset_to_user()` because it moves a bootstrap subset, not a root bootstrap. So have `login` call the Security framework's `SessionCreate()` SPI before calling into `pam_launchd`. That should do the trick."