summaryrefslogtreecommitdiffstats
path: root/extensions/libipt_owner.c
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/libipt_owner.c')
-rw-r--r--extensions/libipt_owner.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/extensions/libipt_owner.c b/extensions/libipt_owner.c
index 9663122..334c336 100644
--- a/extensions/libipt_owner.c
+++ b/extensions/libipt_owner.c
@@ -14,17 +14,26 @@
static void
help(void)
{
+#ifdef IPT_OWNER_COMM
printf(
"OWNER match v%s options:\n"
"[!] --uid-owner userid Match local uid\n"
"[!] --gid-owner groupid Match local gid\n"
"[!] --pid-owner processid Match local pid\n"
"[!] --sid-owner sessionid Match local sid\n"
-#ifdef IPT_OWNER_COMM
"[!] --cmd-owner name Match local command name\n"
-#endif
"\n",
NETFILTER_VERSION);
+#else
+ printf(
+"OWNER match v%s options:\n"
+"[!] --uid-owner userid Match local uid\n"
+"[!] --gid-owner groupid Match local gid\n"
+"[!] --pid-owner processid Match local pid\n"
+"[!] --sid-owner sessionid Match local sid\n"
+"\n",
+NETFILTER_VERSION);
+#endif /* IPT_OWNER_COMM */
}
static struct option opts[] = {