Date: Thu, 14 May 2020 11:28:03 -0700 From: John Baldwin <jhb@FreeBSD.org> To: Eugene Grosbein <eugen@grosbein.net>, src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-releng@freebsd.org Subject: Re: svn commit: r361035 - in releng/11.4: lib/libsysdecode sys/fs/procfs sys/sys usr.sbin/procctl Message-ID: <d8eae8a0-fe28-4d14-70f5-df5ae3ad2af2@FreeBSD.org> In-Reply-To: <c7c0db1e-931a-eeb5-9c92-1f4314b6fd82@grosbein.net> References: <202005141747.04EHltN1078763@repo.freebsd.org> <c7c0db1e-931a-eeb5-9c92-1f4314b6fd82@grosbein.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On 5/14/20 10:55 AM, Eugene Grosbein wrote: > 15.05.2020 0:47, John Baldwin wrote: > >> Author: jhb >> Date: Thu May 14 17:47:55 2020 >> New Revision: 361035 >> URL: https://svnweb.freebsd.org/changeset/base/361035 >> >> Log: >> MF11 361020: Deprecate procfs-based process debugging. >> >> 359047: >> Mark procfs-based process debugging as deprecated for FreeBSD 13. >> >> Attempting to use ioctls on /proc/<pid>/mem to control a process will >> trigger warnings on the console. The <sys/pioctl.h> include file will >> also now emit a compile-time warning when used from userland. >> >> 359054: >> Fix the workaround to ignore the #warning for GCC. >> >> clang and gcc use different warning flags for #warning preprocessor >> directives. >> >> For both 12 and 11, adjust the GCC warning flags to only be added in >> 4.7 and later since 4.2.1 does not support -Wno-cpp. For 11, add the >> needed warning suppression to procctl's build. procctl was removed in >> 12.0. >> >> Approved by: re (gjb, kib) > > Please consider adding a sysctl or another way to disable such extra warnings for jailed process, > so it would be possible running old versions of FreeBSD in a jail seamless. They are rate limited now, but you also probably have no existing processes that are using this. strace on i386 from ports (for which truss is a more functional replacement) is the only binary still built in ports that uses this. truss itself was the last base system binary (aside from procctl which is only there as a helper, not an actual util) and the last version of truss to use procfs was 6.x. -- John Baldwin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d8eae8a0-fe28-4d14-70f5-df5ae3ad2af2>