

' -l' - Symbolic Link ' -s' - Socket File ' -d' - Directory ' -p' - Named Pipe (FIFO) ' -b' - Block Device ' -c' - Character Device One of the following optional file_type entries (note if blank means "match all file types"): Pathname_regexp security_contextĪn entry that defines the pathname that may be in the form of a regular expression (see the example file_contexts file below). The build process supports additional file_contexts files allowing devices to specify their entries as described in the Processing Device Policy section.Įach line within the file consists of the following: The Checking File Labels section describes how changes in this file are detected.

It is used by the file labeling commands such as restorecon. This file is used to associate default contexts to files for file systems that support extended file attributes. This section details the Android policy configuration file formats with worked examples. 1.2.3.1 Computing Process Context Examples.
