Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153439874
D46422.id142387.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D46422.id142387.diff
View Options
diff --git a/usr.bin/proccontrol/proccontrol.1 b/usr.bin/proccontrol/proccontrol.1
--- a/usr.bin/proccontrol/proccontrol.1
+++ b/usr.bin/proccontrol/proccontrol.1
@@ -34,9 +34,12 @@
.Sh SYNOPSIS
.Nm
.Fl m Ar mode
-.Op Fl s Ar control
-.Op Fl q
+.Fl s Ar control
.Fl p Ar pid | command
+.Nm
+.Fl m Ar mode
+.Fl q
+.Op Fl p Ar pid | command
.Sh DESCRIPTION
The
.Nm
diff --git a/usr.bin/proccontrol/proccontrol.c b/usr.bin/proccontrol/proccontrol.c
--- a/usr.bin/proccontrol/proccontrol.c
+++ b/usr.bin/proccontrol/proccontrol.c
@@ -81,10 +81,14 @@
static void __dead2
usage(void)
{
-
- fprintf(stderr, "Usage: proccontrol -m (aslr|protmax|trace|trapcap|"
- "stackgap|nonewprivs|wxmap"KPTI_USAGE LA_USAGE") [-q] "
- "[-s (enable|disable)] [-p pid | command]\n");
+ fprintf(stderr, "Usage:\n");
+ fprintf(stderr, " proccontrol -m mode -s (enable|disable) "
+ "(-p pid | command)\n");
+ fprintf(stderr, " proccontrol -m mode -q [-p pid]\n");
+ fprintf(stderr, "Modes: "
+ "aslr|protmax|trace|trapcap|stackgap|nonewprivs|wxmap"
+ KPTI_USAGE LA_USAGE
+ "\n");
exit(1);
}
@@ -157,6 +161,8 @@
usage();
pid = getpid();
} else if (pid == -1) {
+ if (!query)
+ usage();
pid = getpid();
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 22, 4:40 AM (18 m, 15 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31933221
Default Alt Text
D46422.id142387.diff (1 KB)
Attached To
Mode
D46422: proccontrol: make -s require a target
Attached
Detach File
Event Timeline
Log In to Comment