aboutsummaryrefslogtreecommitdiff
path: root/sys-fs
diff options
context:
space:
mode:
authorpsyc://psyced.org/~lynX <ircs://psyced.org/youbroketheinternet>1984-04-04 00:44:08 +0000
committerpsyc://psyced.org/~lynX <ircs://psyced.org/youbroketheinternet>1984-04-04 00:44:08 +0000
commit690360d98cf00ec25e80e196545be1a3ca9eb358 (patch)
treeec8a7e11eb5f35c4f2f5ca747538e54a61b57a83 /sys-fs
parent195d43cc877c6f8dd42b94446465aa0613418db9 (diff)
downloadyoubroketheinternet-overlay-690360d98cf00ec25e80e196545be1a3ca9eb358.tar.gz
youbroketheinternet-overlay-690360d98cf00ec25e80e196545be1a3ca9eb358.zip
who came up with the idea of cleaning up /dev/shm ?
Diffstat (limited to 'sys-fs')
-rwxr-xr-xsys-fs/dmc/files/dmc12
1 files changed, 9 insertions, 3 deletions
diff --git a/sys-fs/dmc/files/dmc b/sys-fs/dmc/files/dmc
index 2a2febc..e3d03d8 100755
--- a/sys-fs/dmc/files/dmc
+++ b/sys-fs/dmc/files/dmc
@@ -111,8 +111,14 @@ X
111 # /media is a good idea because the desktop environments will show 111 # /media is a good idea because the desktop environments will show
112 # device icons for it and make it easy to use for GUI users. 112 # device icons for it and make it easy to use for GUI users.
113 # unfortunately it stops the automounter from doing its job. why? 113 # unfortunately it stops the automounter from doing its job. why?
114 if ( -w "/dev/shm" ) { 114 #
115 $media = "/dev/shm"; 115 # /dev/shm seemed like a good idea to not litter /mnt with lots
116 # of mount points, but then some process decided to delete files
117 # from RAM without paying attention to file system boundaries. WTF
118 # (apparently the sandbox rules excempt shm from protection...)
119 #
120 if ( -w "/mnt" ) {
121 $media = "/mnt";
116 } else { 122 } else {
117 $media = "/tmp"; 123 $media = "/tmp";
118 } 124 }
@@ -445,7 +451,7 @@ dmc - Command line UX frontend to dm-crypt's cryptsetup with support for multipl
445 dmc -E <volume> # erase some or all passwords and keys 451 dmc -E <volume> # erase some or all passwords and keys
446 452
447 <size> may end in M for megabytes, G for gigabytes, T for terabytes... 453 <size> may end in M for megabytes, G for gigabytes, T for terabytes...
448 If <mountpath> is omitted, /dev/shm/<mapper> is created instead. 454 If <mountpath> is omitted, /mnt/<mapper> is created instead.
449 Combining action flags such as -c, -e and -d produces unuseful effects. 455 Combining action flags such as -c, -e and -d produces unuseful effects.
450 456
451 Options: 457 Options: