Skip to content

NVIDIA/dgx-selinux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

dgx-selinux

Introduction

This project contains the SELinux policies used in DGX products.

Building and debugging

The policy module builds require that the following packages are installed:

# RHEL7
sudo yum install -y findutils \
                    selinux-policy \
                    selinux-policy-devel \
                    selinux-policy-base \
                    libselinux-utils \
                    policycoreutils \
                    policycoreutils-python

# RHEL8/RHEL9
sudo dnf install -y findutils \
                    selinux-policy \
                    selinux-policy-devel \
                    selinux-policy-base \
                    libselinux-utils \
                    policycoreutils \
                    policycoreutils-python3

While this is not required, it may be useful for debugging or just evaluating the various policies on the system.

sudo yum install -y setools-console

setools-console provides the sesearch utility, which is very useful for querying installed modules and such:

sesearch --help
sesearch --allow | grep nvidia

Pre-compiled policy modules are also included in this project under the bin/ directory. Users can install these without having to compile the policy themselves if they so desired:

sudo semodule -i nvidia-container.pp

Information

The src/<policy-module-name> directories contain the source, Makefiles, and READMEs for each policy module. Definitions for the macros used in this project can be found in /usr/share/selinux/devel/include.

Disclaimer

These SELinux policies have only been verified on DGX-1 and DGX-2 on RHEL 7.5 and 7.6. They are meant to be used as a reference for RHEL-based non-DGX platforms, not verbatim.

About

DGX RHEL SELinux Policies

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors