core: delegate mountns implicitly when any of pidns/cgns/netns is in use, clean up private cgroupfs mount (#36892)

Fixes #36952
This commit is contained in:
Yu Watanabe
2025-04-03 00:15:33 +09:00
committed by GitHub
8 changed files with 52 additions and 70 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ typedef struct MountPoint {
MountMode mode;
} MountPoint;
bool cgroupfs_recursiveprot_supported(void) {
static bool cgroupfs_recursiveprot_supported(void) {
int r;
/* Added in kernel 5.7 */
-2
View File
@@ -8,5 +8,3 @@ bool mount_point_ignore(const char *path);
int mount_setup_early(void);
int mount_setup(bool loaded_policy, bool leave_propagation);
bool cgroupfs_recursiveprot_supported(void);