Skip to content
Snippets Groups Projects
Commit 3ff4eb9b authored by Morris Jette's avatar Morris Jette
Browse files

tches for cgroup devices support

third patch adds the man page and an example.
0003_bull_cgroup_devices_doc_add_allowed_devices_support-2.3.0-0.pre7.patch
Patch from Yiannis Georgiou, Bull.
parent 35c28774
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,7 @@ EXTRA_DIST = \
etc/init.d.slurmdbd \
etc/cgroup.conf.example \
etc/cgroup.release_common.example \
etc/cgroup_allowed_devices_file.conf.example \
autogen.sh \
slurm.spec \
README.rst \
......
......@@ -379,6 +379,7 @@ EXTRA_DIST = \
etc/init.d.slurmdbd \
etc/cgroup.conf.example \
etc/cgroup.release_common.example \
etc/cgroup_allowed_devices_file.conf.example \
autogen.sh \
slurm.spec \
README.rst \
......
......@@ -136,6 +136,18 @@ If configured to "yes" then constrain the job's allowed devices based on GRES
allocated resources. It uses the devices subsystem for that.
The default value is "no".
.TP
\fBAllowedDevicesFile\fR=<path_to_allowed_devices_file>
If the ConstrainDevices field is set to "yes" then this file has to be used to declare
the devices that need to be allowed by default for all the jobs. The current implementation
of cgroup devices subsystem works as a whitelist of entries, which means that in order to
isolate the access of a job upon particular devices we need to allow the access on all
the devices, supported by default and then deny on those that the job does not have the
permission to use. The default value is "/etc/slurm/cgroup_allowed_devices_file.conf". The syntax of
the file accepts one device per line and it permits lines like /dev/sda* or /dev/cpu/*/*.
See also an example of this file in etc/allowed_devices_file.conf.example.
.SH "EXAMPLE"
.LP
.br
......
/dev/null
/dev/urandom
/dev/zero
/dev/sda*
/dev/cpu/*/*
/dev/pts/*
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment