Skip to content

Commit c105f32

Browse files
authored
Merge PR #1049
1 parent 2958b02 commit c105f32

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tools/compat/ff_ipc.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ ff_ipc_init(void)
5858
return 0;
5959
}
6060

61+
if (getuid() != 0) {
62+
rte_exit(EXIT_FAILURE, "Error: F-Stack tools must be run as root.\n");
63+
}
64+
6165
char *dpdk_argv[] = {
6266
"ff-ipc", "-c1", "-n4",
6367
"--proc-type=secondary",

0 commit comments

Comments
 (0)