This patch helped me debug why /sbin/init was not being recognized by the
image activator in CheriBSD.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 36350 Build 33239: arc lint + arc unit
Event Timeline
Comment Actions
Adding @kib in case he has any thoughts, but this looks ok to me. A larger change would perhaps be to set a tty for initproc earlier, but I'm not sure what that would break.
Comment Actions
I do not think that real init ever opens ctty (but something like /bin/sh specified as init can). You can move the check and printf() block before proctree lock, and return right after printf is done.
BTW why don't you return vprintf() value?