if ((check_capability (CAP_SETUID) != 0) ||
(check_capability (CAP_SETGID) != 0))
{
if (getuid () == 0)
WARNING ("exec plugin: Running collectd as root, but the CAP_SETUID "
"or CAP_SETGID capabilities are missing. The plugin's read function "
if ((check_capability (CAP_SETUID) != 0) ||
(check_capability (CAP_SETGID) != 0))
{
if (getuid () == 0)
WARNING ("exec plugin: Running collectd as root, but the CAP_SETUID "
"or CAP_SETGID capabilities are missing. The plugin's read function "
else
WARNING ("exec plugin: collectd doesn't have the CAP_SETUID or "
"CAP_SETGID capabilities. If you don't want to run collectd as root, "
else
WARNING ("exec plugin: collectd doesn't have the CAP_SETUID or "
"CAP_SETGID capabilities. If you don't want to run collectd as root, "