Skip to content
Snippets Groups Projects
Commit 7d80cac5 authored by Erik von Reis's avatar Erik von Reis
Browse files

Merge branch 'awgtpman-cap-set' into 'master'

allow awgtpman to run as unprivileged user

Closes #93

See merge request cds/advligorts!81
parents 0502a4b7 16197257
No related branches found
No related tags found
1 merge request!81allow awgtpman to run as unprivileged user
......@@ -175,12 +175,7 @@ CDS_HARDWARE cdsPciModules;
initReflectiveMemory();
#endif
if (run_awg) {
if (geteuid() != 0) {
printf ("Must be a superuser to run awgtpman\n");
return 1;
} else {
nice(-20);
}
nice(-20);
}
/*
if ($::site =~ /^M/) {
......
......@@ -5,5 +5,7 @@ Wants=rts-module@%i.service
PartOf=rts@%i.target
[Service]
User=advligorts
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
ExecStart=/usr/bin/rts_awgtpman_exec %i
Restart=always
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment