summarylogtreecommitdiffstats
path: root/src-filesystem.cpp.patch
blob: 26799e1e5b1108279cd6c184e2ad8163600b8e25 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- src/filesystem.cpp	2023-01-20 12:36:53.000000000 +0300
+++ src/filesystem.cpp	2023-03-20 19:22:02.012158771 +0300
@@ -623,7 +623,7 @@
         { "dev/pts", "devpts", MS_NOSUID | MS_NOEXEC,
             { "newinstance", "ptmxmode=0666", "mode=620" ,"gid=5",
               "max=" + std::to_string(config().container().devpts_max()) }},
-        { "sys", "sysfs", MS_NOSUID | MS_NOEXEC | MS_NODEV | (EnableDockerMode && ct.OwnerCred.IsRootUser() ? 0ul : MS_RDONLY), {}},
+        { "sys", "sysfs", MS_NOSUID | MS_NOEXEC | MS_NODEV | (EnableDockerMode && ct.OwnerCred.IsRootUser() ? 0ul : static_cast<uint64_t>(MS_RDONLY)), {}},
     };
 
     for (auto &m : mounts) {