util-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 01/10] enosys: add the missing arguments of -s and -i to the usage text
@ 2025-03-31  9:44 Benno Schulenberg
  2025-03-31  9:44 ` [PATCH 02/10] uclampset: simplify the synopsis in the --help " Benno Schulenberg
                   ` (9 more replies)
  0 siblings, 10 replies; 25+ messages in thread
From: Benno Schulenberg @ 2025-03-31  9:44 UTC (permalink / raw)
  To: util-linux; +Cc: Thomas Weißschuh

Also, add a docstring, drop the redundant double dash from the synopsis,
add the missing -m option, and add a missing word to an error message.

CC: Thomas Weißschuh <thomas@t-8ch.de>
Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
---
 misc-utils/enosys.c | 16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)

diff --git a/misc-utils/enosys.c b/misc-utils/enosys.c
index 1410676dd..b7469c6bf 100644
--- a/misc-utils/enosys.c
+++ b/misc-utils/enosys.c
@@ -78,13 +78,17 @@ static void __attribute__((__noreturn__)) usage(void)
 	FILE *out = stdout;
 
 	fputs(USAGE_HEADER, out);
-	fprintf(out, _(" %s [options] -- <command>\n"), program_invocation_short_name);
+	fprintf(out, _(" %s [options] <command>\n"), program_invocation_short_name);
+
+	fputs(USAGE_SEPARATOR, out);
+	fputs(_("Block certain system calls while running a command.\n"), out);
 
 	fputs(USAGE_OPTIONS, out);
-	fputs(_(" -s, --syscall           syscall to block\n"), out);
-	fputs(_(" -i, --ioctl             ioctl to block\n"), out);
-	fputs(_(" -l, --list              list known syscalls\n"), out);
-	fputs(_(" -d, --dump[=<file>]     dump seccomp bytecode\n"), out);
+	fputs(_(" -s, --syscall <name>|<nr>    system call to block\n"), out);
+	fputs(_(" -i, --ioctl <name>|<nr>      ioctl to block\n"), out);
+	fputs(_(" -l, --list                   list known system calls\n"), out);
+	fputs(_(" -m, --list-ioctl             list known ioctls\n"), out);
+	fputs(_(" -d, --dump[=<file>]          dump bytecode of seccomp filter\n"), out);
 
 	fputs(USAGE_SEPARATOR, out);
 	fprintf(out, USAGE_HELP_OPTIONS(25));
@@ -297,7 +301,7 @@ int main(int argc, char **argv)
 		err_nosys(EXIT_FAILURE, _("Could not run prctl(PR_SET_NO_NEW_PRIVS)"));
 
 	if (ul_set_seccomp_filter_spec_allow(&prog))
-		err_nosys(EXIT_FAILURE, _("Could not seccomp filter"));
+		err_nosys(EXIT_FAILURE, _("Could not set seccomp filter"));
 
 	if (execvp(argv[optind], argv + optind))
 		err(EXIT_NOTSUPP, _("Could not exec"));
-- 
2.48.1


^ permalink raw reply related	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2025-04-03 12:08 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-31  9:44 [PATCH 01/10] enosys: add the missing arguments of -s and -i to the usage text Benno Schulenberg
2025-03-31  9:44 ` [PATCH 02/10] uclampset: simplify the synopsis in the --help " Benno Schulenberg
2025-03-31  9:44 ` [PATCH 03/10] last: don't use a tab character " Benno Schulenberg
2025-03-31  9:44 ` [PATCH 04/10] irqtop: improve the description of --batch, and align it with others Benno Schulenberg
2025-03-31 14:57   ` Joe Jin
2025-03-31  9:44 ` [PATCH 05/10] irqtop: improve several more option descriptions, and align them all Benno Schulenberg
2025-03-31 15:02   ` Joe Jin
2025-03-31 15:47     ` Benno Schulenberg
2025-03-31 16:12       ` Joe Jin
2025-04-01  9:17         ` Benno Schulenberg
2025-04-02 10:58           ` Karel Zak
2025-03-31  9:44 ` [PATCH 06/10] findmnt: (man) remove duplicated option, and correct a description Benno Schulenberg
2025-03-31  9:44 ` [PATCH 07/10] hardlink: fix typoed semicolon to colon in error message Benno Schulenberg
2025-03-31  9:44 ` [PATCH 08/10] lsblk: (man) remove the incorrect spaces between the arguments of --ct Benno Schulenberg
2025-03-31  9:44 ` [PATCH 09/10] coresched: reduce excessive whitespace and verbosity in usage text Benno Schulenberg
2025-03-31 11:00   ` Phil Auld
2025-04-03  8:11   ` Karel Zak
2025-04-03  9:55     ` Benno Schulenberg
2025-04-03 12:08       ` Karel Zak
2025-03-31  9:44 ` [PATCH 10/10] coresched: rename option '--dest-type' to just '--type' Benno Schulenberg
2025-03-31 11:09   ` Phil Auld
2025-04-01  8:35     ` Karel Zak
2025-04-01  9:25       ` Benno Schulenberg
2025-04-01 12:20         ` Karel Zak
2025-04-02 11:11 ` [PATCH 01/10] enosys: add the missing arguments of -s and -i to the usage text Karel Zak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).