Commit c7c1dcd3 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵
Browse files

ptp-helper: Make sure that we are running setuid root if configured that way

parent d33784cc
......@@ -619,6 +619,11 @@ main (gint argc, gchar ** argv)
GMainLoop *loop;
GError *err = NULL;
if (setuid (0) < 0)
g_error ("not running with superuser privileges");
opt_ctx = g_option_context_new ("- GStreamer PTP helper process");
g_option_context_add_main_entries (opt_ctx, opt_entries, NULL);
if (!g_option_context_parse (opt_ctx, &argc, &argv, &err))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment