IMPORTANT ANNOUNCEMENT: On May 6, 2024, Carbon Black User eXchange (UeX) and Case Management will move to a new platform!
The Community will be in read-only mode starting April 19th, 7:00 AM PDT. Check out the blog post!
You will still be able to use the case portal to create and interact with your support cases until the transition, view more information here!

EDR: Sensor cbdaemon cannot be stopped due to selinux enabled

EDR: Sensor cbdaemon cannot be stopped due to selinux enabled

Environment

  • EDR sensor: All supported versions
  • Linux: All supported OS

Symptoms

Cannot stop or start cbdaemon when selinux is enabled

Cause

Selinux will control services status and lead to cbdaemon stop/start failure

Resolution

1. Check selinux status and make sure it is enabled:
$ /usr/sbin/getenforce
Enforcing
2. Disable selinux temporarily:
$ sudo setenforce 0

3. Check selinux status and make sure it is disabled:
$ /usr/sbin/getenforce
Permissive

4. Stop/start cbdaemon:
$ sudo service cbdaemon stop
$ sudo service cbdaemon start

5. Enable selinux back:
$ sudo setenforce 1

Additional Notes

  • Selinux can be permanently disabled by editing /etc/sysconfig/selinux
    SELinux=enforcing or SELinux=disabled
  • Systemctl command will be used to stop/start cbdaemon in new Linux versions: 
    $ sudo systemctl stop cbdaemon.service
    $ sudo systemctl start cbdaemon.service

Related Content


Labels (1)
Tags (2)
Was this article helpful? Yes No
No ratings
Article Information
Author:
Creation Date:
‎05-09-2021
Views:
483