---
title: The containerd socket file should have permissions of 660 or stricter
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: >-
  Docs > Datadog Security > OOTB Rules > The containerd socket file should have
  permissions of 660 or stricter
---

> For the complete documentation index, see [llms.txt](https://docs.datadoghq.com/llms.txt).

# The containerd socket file should have permissions of 660 or stricter
Classification:complianceFramework:cis-dockerControl:3.24 
## Description{% #description %}

The containerd socket should have mode 660 or stricter.

## Rationale{% #rationale %}

Whoever can use the containerd socket controls every container of the host. Mode 660 or stricter limits its use to its owner and group.

## Audit{% #audit %}

Show the mode of `/run/containerd/containerd.sock`:

```bash
stat -c '%a' /run/containerd/containerd.sock
```

Datadog passes the rule when `/run/containerd/containerd.sock` has mode 660 or stricter, fails it when the mode is less strict, and reports it not applicable when the path is absent.

## Remediation{% #remediation %}

Set the mode:

```bash
chmod 660 /run/containerd/containerd.sock
```

## Impact{% #impact %}

None.

## Default value{% #default-value %}

containerd creates its socket with mode 660.
