]> git.ipfire.org Git - people/ms/pakfire.git/commitdiff
mount: Bring back /tmp to jail
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 2 Aug 2022 16:21:52 +0000 (16:21 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 2 Aug 2022 16:21:52 +0000 (16:21 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/mount.c

index 48e49a048691c3f1f5124d8a95a8cef9878d4a94..321d702d8f321a32c74c27444fd1dd2a616ceb7d 100644 (file)
@@ -84,8 +84,12 @@ static const struct pakfire_mountpoint {
                MS_NOSUID|MS_NOEXEC|MS_NODEV, NULL },
 
        // Create a new /run
-       { "pakfire_tmpfs",       "run",                "tmpfs",  MS_NOSUID|MS_NOEXEC|MS_NODEV,
-               "mode=755,size=4m,nr_inodes=1k", },
+       { "pakfire_run",          "run",               "tmpfs",  MS_NOSUID|MS_NOEXEC|MS_NODEV,
+               "mode=755,size=256m,nr_inodes=1k", },
+
+       // Create a new /tmp
+       { "pakfire_tmp",          "tmp",               "tmpfs",
+               MS_NOSUID|MS_NODEV|MS_STRICTATIME, "mode=1777,size=1024m", },
 
        // The end
        { NULL },