summaryrefslogtreecommitdiffstats
path: root/main.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'main.cxx')
-rw-r--r--main.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.cxx b/main.cxx
index 71c70df8..69d7fa77 100644
--- a/main.cxx
+++ b/main.cxx
@@ -429,6 +429,11 @@ checkOptions (systemtap_session &s)
cerr << "You can't specify -g and --unprivileged together." << endl;
optionsConflict = true;
}
+ if (s.module_name.compare(0, 5, "stap_") != 0)
+ {
+ cerr << "In unprivileged mode, the module name must start with 'stap_'." << endl;
+ optionsConflict = true;
+ }
}
if (!s.kernel_symtab_path.empty())