summaryrefslogtreecommitdiff
path: root/src/core/cgroup.h
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-11-08 15:12:23 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-11-10 23:22:15 +0100
commit084870f9c0c03d5766d272828254f8d0a7aacf66 (patch)
tree6c95b944b9257d99002600c7a4f1474fafea0cd2 /src/core/cgroup.h
parent77abd02985415fc90db03511b6bcc4479f61f81f (diff)
downloadsystemd-084870f9c0c03d5766d272828254f8d0a7aacf66.tar.gz
core: rename CGROUP_AUTO/STRICT/CLOSED to CGROUP_DEVICE_POLICY_…
The old names were very generic, and when used without context it wasn't at all clear that they are about the devices policy.
Diffstat (limited to 'src/core/cgroup.h')
-rw-r--r--src/core/cgroup.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/core/cgroup.h b/src/core/cgroup.h
index a66c702125..3d4bb4142d 100644
--- a/src/core/cgroup.h
+++ b/src/core/cgroup.h
@@ -18,16 +18,15 @@ typedef struct CGroupBlockIODeviceWeight CGroupBlockIODeviceWeight;
typedef struct CGroupBlockIODeviceBandwidth CGroupBlockIODeviceBandwidth;
typedef enum CGroupDevicePolicy {
-
- /* When devices listed, will allow those, plus built-in ones,
- if none are listed will allow everything. */
- CGROUP_AUTO,
+ /* When devices listed, will allow those, plus built-in ones, if none are listed will allow
+ * everything. */
+ CGROUP_DEVICE_POLICY_AUTO,
/* Everything forbidden, except built-in ones and listed ones. */
- CGROUP_CLOSED,
+ CGROUP_DEVICE_POLICY_CLOSED,
/* Everything forbidden, except for the listed devices */
- CGROUP_STRICT,
+ CGROUP_DEVICE_POLICY_STRICT,
_CGROUP_DEVICE_POLICY_MAX,
_CGROUP_DEVICE_POLICY_INVALID = -1