github.com/hugh712/snapd@v0.0.0-20200910133618-1a99902bd583/data/selinux/INSTALL.md (about)

     1  # Installing the policy
     2  
     3  
     4  ## Building the policy module
     5  
     6  There's only a few requirements for building the policy module:
     7  
     8  * GNU make (Fedora / Debian: `make`)
     9  * SELinux policy development package (Fedora: `selinux-policy-devel` / Debian: `selinux-policy-dev`)
    10  
    11  Install the packages as appropriate, then run `make`.
    12  
    13  For example, on Fedora:
    14  
    15  ```bash
    16  $ sudo dnf install make selinux-policy-devel
    17  $ make
    18  ```
    19  
    20  ## Install the module to the system
    21  
    22  To install the module, run the following as root:
    23  
    24  ```bash
    25  $ semodule -i snappy.pp
    26  ```
    27  
    28  When shipping this module in a distribution package, use the following command instead:
    29  
    30  ```bash
    31  $ semodule -X 200 -i snappy.pp
    32  ```