diff options
author | Thorvald Natvig <slicer@users.sourceforge.net> | 2009-02-28 04:36:47 +0300 |
---|---|---|
committer | Thorvald Natvig <slicer@users.sourceforge.net> | 2009-02-28 04:36:47 +0300 |
commit | 5db28fa43d8905809ba0b958c3b9ea95d7909cd8 (patch) | |
tree | dbfb78725cbdb5e7cb221ea8980fe68380de9407 | |
parent | 796afe0536255a0f274431ee376b0d3deaf5dd96 (diff) |
Even with dropped capabilities, running murmurd as root is not a good idea, so always warn the user
git-svn-id: https://mumble.svn.sourceforge.net/svnroot/mumble/trunk@1601 05730e5d-ab1b-0410-a4ac-84af385074fa
-rw-r--r-- | src/murmur/UnixMurmur.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/murmur/UnixMurmur.cpp b/src/murmur/UnixMurmur.cpp index 530d0ab5b..c0c0e2574 100644 --- a/src/murmur/UnixMurmur.cpp +++ b/src/murmur/UnixMurmur.cpp @@ -217,12 +217,9 @@ void UnixMurmur::setuid() { qCritical("Successfully switched to uid %d", Meta::mp.uiUid); initialcap(); } - } -#ifndef Q_OS_LINUX - else if (bRoot) { + } else if (bRoot) { qCritical("WARNING: You are running murmurd as root, without setting a uname in the ini file. This might be a security risk."); } -#endif } void UnixMurmur::initialcap() { |