Bug 181352 - [libc] setproctitle(3) doesn't work with Capsicum
Summary: [libc] setproctitle(3) doesn't work with Capsicum
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 1.0-CURRENT
Hardware: Any Any
: Normal Affects Only Me
Assignee: Edward Tomasz Napierala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-17 14:10 UTC by Edward Tomasz Napierala
Modified: 2015-08-03 08:05 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Edward Tomasz Napierala freebsd_committer freebsd_triage 2013-08-17 14:10:00 UTC
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.
Comment 1 commit-hook freebsd_committer freebsd_triage 2015-04-27 11:18:54 UTC
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
Comment 2 Ed Maste freebsd_committer freebsd_triage 2015-06-30 17:51:38 UTC
MFC plans?
Comment 3 commit-hook freebsd_committer freebsd_triage 2015-08-03 08:04:48 UTC
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