]> arthur.barton.de Git - netdata.git/commitdiff
remove macros to detect if certain capabilities are supported by system; fixes #1689
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Tue, 31 Jan 2017 19:03:13 +0000 (21:03 +0200)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Tue, 31 Jan 2017 19:03:13 +0000 (21:03 +0200)
src/apps_plugin.c

index 67921fb9e9747d4a12523b0450338a7d30da0064..1627a2cee0c7c8067bf596d33c64f2a29b97d5c3 100644 (file)
@@ -3026,20 +3026,6 @@ static int am_i_running_as_root() {
 
 #ifdef HAVE_CAPABILITY
 static int check_capabilities() {
-    if(!CAP_IS_SUPPORTED(CAP_DAC_READ_SEARCH)) {
-        error("This system does not support CAP_DAC_READ_SEARCH capability. Please setuid to root apps.plugin.");
-        return 0;
-    }
-    else if(debug)
-        info("System has CAP_DAC_READ_SEARCH capability.");
-
-    if(!CAP_IS_SUPPORTED(CAP_SYS_PTRACE)) {
-        error("This system does not support CAP_SYS_PTRACE capability. Please setuid to root apps.plugin.");
-        return 0;
-    }
-    else if(debug)
-        info("System has CAP_SYS_PTRACE capability.");
-
     cap_t caps = cap_get_proc();
     if(!caps) {
         error("Cannot get current capabilities.");