[Bug 230082] bhyve doesn't set process title

Nikita Olenets zeon at zeon.kiev.ua
Thu Aug 9 06:33:18 UTC 2018


Hello,

Looks like the issue is exist still.

09:27:34)27[root at host ~]# ps wwwwwwax | grep Test01
 3148  0  Is+     0:00,04 /bin/sh /usr/local/sbin/vm -tf _run Test01
 5531  0  SC+     1:43,20 bhyve -c 1 -m 2G -AHP -U
7f86c10b-d8c9-11e7-ae5d-f04da2090b7b -u -s 0,hostbridge -s 31,lpc -s
4:0,virtio-blk,/usr/local/VM/ Test01 /disk0.img -s
5:0,virtio-net,tap1102,mac=58:9c:fc:07:1a:8b -l com1,stdio Test01


(09:27:40)27[root at host ~]# uname -a
FreeBSD host.local.org 11.2-STABLE FreeBSD 11.2-STABLE #18 r337452: Wed
Aug  8 15:06:59 EEST 2018     root at host.local.org:/usr/obj/usr/src/sys/CUSTOM
amd64


=====
Comparing to the older system ( r335977 )

(09:31:30)4[root at bohus docs]# ps wwwwwwax  | grep Ubuntu
 5053  1  IC+    115:04,09 bhyve: Ubuntu (bhyve)

(09:31:37)4[root at bohus docs]# uname -a
FreeBSD bohus 11.2-STABLE FreeBSD 11.2-STABLE #7 r335977: Fri Jul  6
06:58:35 EEST 2018     root at bohus:/usr/obj/usr/src/sys/CUSTOM  amd64

On Fri, Aug 3, 2018 at 8:25 AM, <bugzilla-noreply at freebsd.org> wrote:

> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230082
>
> Yuichiro NAITO <naito.yuichiro at gmail.com> changed:
>
>            What    |Removed                     |Added
> ------------------------------------------------------------
> ----------------
>              Status|In Progress                 |Closed
>          Resolution|---                         |FIXED
>
> --- Comment #9 from Yuichiro NAITO <naito.yuichiro at gmail.com> ---
> (In reply to Mariusz Zaborski from comment #7)
> > The setproctitle(3) looks fine with me - I will commit it.
>
> Thanks for the commit.
>
> > With the ps_string the problem is a little more complicated.
> > In my opinion the title is a part of a global namespace so we should not
> be ab\
> le to change it but I would like to discussed this.
>
> I misunderstood sysctl behavior.
>
> I saw that original (before r335939) setproctitle(3) calls sysctl like
> this.
>
> ```
> sysctl([CTL_KERN, KERN_PROC, KEN_PROC_ARGS, getpid()], ...)
> ```
>
> This code works in capability mode all the time (independent of r335939).
> I thought calling sysctl("kern.ps_strings") was also safe in capability
> mode.
> But, the sysctl is allowed to write only...
>
> > In this bug report can we only focus on the bhyve title issue?
>
> Yes, I don't see any other problems for now.
> I will close this PR.
>
> Thank you!
>
> --
> You are receiving this mail because:
> You are the assignee for the bug.
> _______________________________________________
> freebsd-virtualization at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
> To unsubscribe, send any mail to "freebsd-virtualization-
> unsubscribe at freebsd.org"
>



-- 
Nikita Olenets


More information about the freebsd-virtualization mailing list