mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-10 16:43:35 +02:00
2021-12-02 Fred Gleason <fredg@paravelsystems.com>
* Added a check to rdservice(8) to ensure that the 'rivendell' service is run as 'root'. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -82,6 +82,14 @@ MainObject::MainObject(QObject *parent)
|
||||
}
|
||||
rda->syslog(LOG_DEBUG,"starting up");
|
||||
|
||||
//
|
||||
// Ensure that we are 'root'
|
||||
//
|
||||
if(geteuid()!=0) {
|
||||
rda->syslog(LOG_ERR,"this service requires root");
|
||||
exit(RDApplication::ExitNoPerms);
|
||||
}
|
||||
|
||||
//
|
||||
// Process Startup Options
|
||||
//
|
||||
|
Reference in New Issue
Block a user