setproctitle(3) doesn't work (does nothing) after entering Capsicum capability mode. I think this is because it depends on sysctl(2). Still, would be nice to either provide a workaround, or at least document this limitation.
A commit references this bug: Author: trasz Date: Mon Apr 27 11:18:17 UTC 2015 New revision: 282086 URL: https://svnweb.freebsd.org/changeset/base/282086 Log: Make setproctitle(3) work in Capsicum capability mode. This makes ctld(8) child processes to indicate initiator address and name in their titles, similar to what iscsid(8) child processes do. PR: 181352 Differential Revision: https://reviews.freebsd.org/D2363 Reviewed by: rwatson@, mjg@ MFC after: 1 month Sponsored by: The FreeBSD Foundation Changes: head/sys/kern/kern_proc.c head/usr.sbin/ctld/login.c
MFC plans?
A commit references this bug: Author: trasz Date: Mon Aug 3 08:04:32 UTC 2015 New revision: 286222 URL: https://svnweb.freebsd.org/changeset/base/286222 Log: MFC r282086: Make setproctitle(3) work in Capsicum capability mode. This makes ctld(8) child processes to indicate initiator address and name in their titles, similar to what iscsid(8) child processes do. PR: 181352 Sponsored by: The FreeBSD Foundation Changes: _U stable/10/ stable/10/sys/kern/kern_proc.c stable/10/usr.sbin/ctld/login.c