removable\_context(5) SELinux configuration removable\_context(5)

# [NAME](#NAME)

removable\_context - The SELinux removable devices context configuration file

# [DESCRIPTION](#DESCRIPTION)

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

[**selinux\_removable\_context\_path**(3)](/man/os/libselinux/selinux_removable_context_path.3) 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)](/man/os/libselinux/selinux_config.5)).

# [FILE FORMAT](#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](#EXAMPLE)

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

# [SEE ALSO](#SEE_ALSO)

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

28-Nov-2011 Security Enhanced Linux

---

Document: removable_context(5) from libselinux 3.11-r2 (Chainguard OS)
Source: https://github.com/SELinuxProject/selinux.git
