[Devel] [PATCH hci-8.2] fs: forbid freezing and thawing file systems from a Container

no-reply at sashiko.virtuozzo.com no-reply at sashiko.virtuozzo.com
Tue Nov 17 17:02:37 MSK 2026


> A Container can freeze a file system it mounted itself, since
> ioctl_fsfreeze() and ioctl_fsthaw() only check CAP_SYS_ADMIN in
> s_user_ns. That is a bad thing to allow:
> 
>   * Processes on top of a frozen file system hang in the kernel, so
>     CRIU can neither ptrace attach nor freeze them and the checkpoint
>     fails.
>   * CRIU does not dump the frozen state anyway, so after restore the
>     file system comes back thawed although it was frozen on the source.
> 
> Nothing vital inside a Container is known to need it, and most file
> systems a Container sees are not freezable at all. So keep the
> existing check and return EPERM for FIFREEZE and FITHAW when called
> from a Container.
> 
> https://virtuozzo.atlassian.net/browse/VSTOR-155592
> 
> Feature: ve: allow various syscalls in CT root userns
> Suggested-by: Pavel Tikhomirov <ptikhomirov at virtuozzo.com>
> Signed-off-by: Vasileios Almpanis <vasileios.almpanis at virtuozzo.com>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261117-ct-fsfreeze-v1-1-23272094ba36@virtuozzo.com?part=1




More information about the Devel mailing list