---
name: "removable_context"
section: "5"
platform: "linux"
package: "selinux-utils"
version: "3.8.1-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/removable_context"
---

# removable\_context(5)

The SELinux removable devices context configuration file

## NAME

removable\_context - The SELinux removable devices context configuration file

## DESCRIPTION

This file contains the default label that should be used for removable devices.

[**selinux\_removable\_context\_path**(3)](/selinux_removable_context_path/3.md)  will return the active policy path to this file. The default removable context file is:

*/etc/selinux/{SELINUXTYPE}/contexts/removable\_context*

Where *{SELINUXTYPE}* is the entry from the selinux configuration file *config* (see [**selinux\_config**(5)](/selinux_config/5.md)).

## FILE FORMAT

The file consists of a single line entry as follows:

*user***:***role***:***type***\[:*range*\]**

Where:

*user role type range*

A user, role, type and optional range (for MCS/MLS) separated by colons (:) that will be applied to removable devices.

## EXAMPLE

\# ./contexts/removable\_contexts\
 system\_u:object\_r:removable\_t:s0

## SEE ALSO

[**selinux**(8)](/selinux/8.md), [**selinux\_removable\_context\_path**(3)](/selinux_removable_context_path/3.md), [**selinux\_config**(5)](/selinux_config/5.md)
