Date: Thu, 02 Aug 2018 06:16:29 +0000 From: bugzilla-noreply@freebsd.org To: virtualization@FreeBSD.org Subject: [Bug 230082] bhyve doesn't set process title Message-ID: <bug-230082-27103-9AmFgKoe4x@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-230082-27103@https.bugs.freebsd.org/bugzilla/> References: <bug-230082-27103@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230082 --- Comment #5 from Yuichiro NAITO <naito.yuichiro@gmail.com> --- I noticed this is caused by capability mode. Since r335939, calling sysctlbyname("kern.ps_strings") become important. A user proccess writes process title to the memory address returned from sysctlbyname("kern.ps_strings"). But sysctlbyname("kern.ps_strings") is not allowed in capability mode. My `bhyverun.patch` calls setproctitle(3) before cap_enter(2), so it works. In my opinion, "kern.ps_string" can be read in capability mode because the returned address is in its own process. I wrote a small patch that allows to read "kern.ps_string" for my kernel. Attached `kern.patch` works for me. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-230082-27103-9AmFgKoe4x>