From 504748bc88f1295a9410601225bb82c133ffe51b Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Wed, 13 Mar 2019 17:30:03 +0000 Subject: [PATCH] Some fixes for proccontrol(1) man page. - Fix markup. - Mention that process can only allow tracing for itself. This is already stated in procctl(2), but requiring knowledge of the syscall description is too much for the tool user. - Clearly state that query mode only works for existing process. Noted and reviewed by: pho Sponsored by: The FreeBSD Foundation MFC after: 3 days --- usr.bin/proccontrol/proccontrol.1 | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/usr.bin/proccontrol/proccontrol.1 b/usr.bin/proccontrol/proccontrol.1 index ab2fcdc2f582..79a6e489fcda 100644 --- a/usr.bin/proccontrol/proccontrol.1 +++ b/usr.bin/proccontrol/proccontrol.1 @@ -28,7 +28,7 @@ .\" .\" $FreeBSD$ .\" -.Dd February 22, 2019 +.Dd March 13, 2019 .Dt PROCCONTROL 1 .Os .Sh NAME @@ -62,12 +62,14 @@ Control the Address Space Layout Randomization. Only applicable to the new process spawned. .It Ar trace Control the permission for debuggers to attach. +Note that process is only allowed to enable tracing for itself, +not for any other process. .It Ar trapcap Controls the signalling of capability mode access violations. .El .Pp The -Ar control +.Ar control specifies if the selected .Ar mode should be enabled or disabled. @@ -84,9 +86,13 @@ for detailed description of each mode effects and interaction with other process control facilities. .Pp The -.Op Fl q +.Fl q switch makes the utility query and print the current setting for the selected mode. +The +.Fl q +requires the query target process specification with +.Fl p . .Sh EXIT STATUS .Ex -std .Sh EXAMPLES