aboutsummaryrefslogtreecommitdiff
path: root/fs/init.c
diff options
context:
space:
mode:
authorMichal Koutný <mkoutny@suse.com>2024-09-09 18:32:22 +0200
committerTejun Heo <tj@kernel.org>2024-09-10 10:03:43 -1000
commit3c41382e920f1dd5c9f432948fe799c07af1cced (patch)
tree0973009f5ecace4b8bc82b7c60c505e8f68995ac /fs/init.c
parent659f90f863a628c007c49aff97b30cb5908a0480 (diff)
cgroup: Disallow mounting v1 hierarchies without controller implementation
The configs that disable some v1 controllers would still allow mounting them but with no controller-specific files. (Making such hierarchies equivalent to named v1 hierarchies.) To achieve behavior consistent with actual out-compilation of a whole controller, the mounts should treat respective controllers as non-existent. Wrap implementation into a helper function, leverage legacy_files to detect compiled out controllers. The effect is that mounts on v1 would fail and produce a message like: [ 1543.999081] cgroup: Unknown subsys name 'memory' Signed-off-by: Michal Koutný <mkoutny@suse.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'fs/init.c')
0 files changed, 0 insertions, 0 deletions