Systemd/src
Topi Miettinen 7d85383edb tree-wide: add size limits for tmpfs mounts
Limit size of various tmpfs mounts to 10% of RAM, except volatile root and /var
to 25%. Another exception is made for /dev (also /devs for PrivateDevices) and
/sys/fs/cgroup since no (or very few) regular files are expected to be used.

In addition, since directories, symbolic links, device specials and xattrs are
not counted towards the size= limit, number of inodes is also limited
correspondingly: 4MB size translates to 1k of inodes (assuming 4k each), 10% of
RAM (using 16GB of RAM as baseline) translates to 400k and 25% to 1M inodes.

Because nr_inodes option can't use ratios like size option, there's an
unfortunate side effect that with small memory systems the limit may be on the
too large side. Also, on an extremely small device with only 256MB of RAM, 10%
of RAM for /run may not be enough for re-exec of PID1 because 16MB of free
space is required.
2020-05-13 00:37:18 +02:00
..
ac-power
activate util-lib: move things that parse ifnames to shared/ 2020-01-11 12:07:28 +01:00
analyze Merge pull request #15681 from vcaputo/buslocator 2020-05-07 09:46:01 -07:00
ask-password
backlight
basic random-util: make use of GRND_INSECURE when it is defined 2020-05-10 11:15:16 +02:00
binfmt binfmt: also unregister binfmt entries from unit 2020-04-23 17:14:45 +02:00
boot tree-wide: fix spelling errors 2020-04-21 23:21:08 +02:00
busctl basic/set: let set_put_strdup() create the set with string hash ops 2020-05-06 16:54:06 +02:00
cgls
cgroups-agent
cgtop
core tree-wide: add size limits for tmpfs mounts 2020-05-13 00:37:18 +02:00
coredump tree-wide: make sure our control buffers are properly aligned 2020-05-07 14:39:44 +02:00
cryptsetup tree-wide: spellcheck using codespell 2020-04-16 18:00:40 +02:00
debug-generator
delta
detect-virt
dissect dissect: add --fsck= option to systemd-dissect tool 2020-01-29 19:29:52 +01:00
environment-d-generator sd-path: rename the two functions 2020-03-27 20:12:44 +01:00
escape
firstboot tree-wide: port various bits over to locale_is_installed() 2020-05-07 17:24:22 +02:00
fsck
fstab-generator tree-wide: add size limits for tmpfs mounts 2020-05-13 00:37:18 +02:00
fuzz ci: turn off FuzzBuzz 2020-03-30 14:57:22 +02:00
getty-generator
gpt-auto-generator units: introduce blockdev@.target for properly ordering mounts/swaps against cryptsetup 2020-01-21 20:23:13 +01:00
hibernate-resume Fix generator name in hibernate-resume-generator's drop-in 2020-02-04 14:49:04 +09:00
home Merge pull request #15785 from poettering/pam-sudo-fixes-part1 2020-05-12 15:54:42 +02:00
hostname hostnamed: convert to the new scheme and add --bus-introspect 2020-05-05 22:36:54 +02:00
hwdb
id128 id128: change table header from "uuid" to just "id" 2020-01-29 15:32:26 +01:00
import tree-wide: Replace assert() by assert_se() when there is side effect 2020-05-10 09:23:12 +02:00
initctl tree-wide: use structured initialization at various places 2020-04-24 07:44:42 +02:00
journal tree-wide: make sure our control buffers are properly aligned 2020-05-07 14:39:44 +02:00
journal-remote Support journal-upload HTTPS without key and certificate 2020-04-16 14:05:41 +03:00
kernel-install Add meson build option to prevent building kernel-install 2020-04-14 20:22:32 +02:00
libsystemd netlink: port to recvmsg_safe() 2020-05-12 10:47:06 +02:00
libsystemd-network DHCP client: make SendOption work for DHCPv6 too. 2020-05-11 16:31:08 +02:00
libudev tree-wide: fix spelling errors 2020-04-21 23:21:08 +02:00
locale Merge pull request #15651 from poettering/newlocale-check 2020-05-08 11:31:34 +02:00
login pam_systemd: also print debug lines when ending a session 2020-05-12 11:10:30 +02:00
machine machine: switch to BusLocator-oriented helpers 2020-05-07 08:46:43 -07:00
machine-id-setup
modules-load
mount mount: switch to BusLocator-oriented helpers 2020-05-07 08:46:44 -07:00
network DHCP client: make SendOption work for DHCPv6 too. 2020-05-11 16:31:08 +02:00
notify Introduce sd_notify_barrier 2020-05-01 03:22:47 +05:30
nspawn tree-wide: add size limits for tmpfs mounts 2020-05-13 00:37:18 +02:00
nss-myhostname tree-wide: use "hostname" spelling everywhere 2020-04-21 16:58:04 +02:00
nss-mymachines nss-mymachines: switch to BusLocator-oriented helpers 2020-05-07 08:46:44 -07:00
nss-resolve nss-resolve: switch to BusLocator-oriented helpers 2020-05-07 08:46:44 -07:00
nss-systemd nss-systemd: don't synthesize root/nobody when iterating 2020-04-23 23:07:08 +02:00
partition tree-wide: Fix, replace assert() by assert_se() when there is side effect 2020-05-06 23:03:25 +02:00
path path: log at debug level when we can't query a variable 2020-03-27 20:12:45 +01:00
portable Merge pull request #15623 from poettering/cmsg-cleanup 2020-05-08 11:05:06 +02:00
pstore
quotacheck
random-seed random-seed: add missing header for GRND_NONBLOCK (#14988) 2020-03-02 14:48:21 +09:00
rc-local-generator
remount-fs
reply-password
resolve netlink: port to recvmsg_safe() 2020-05-12 10:47:06 +02:00
rfkill
run run: switch to BusLocator-oriented helpers 2020-05-07 08:46:44 -07:00
run-generator
shared tree-wide: add size limits for tmpfs mounts 2020-05-13 00:37:18 +02:00
shutdown shutdown: fix spacing in shutdown error message 2020-05-05 10:23:47 +02:00
sleep sleep: automatically lock all home directories when suspending 2020-01-28 22:36:56 +01:00
socket-proxy socket-proxy: Support exit-on-idle 2020-05-06 13:58:57 +02:00
stdio-bridge
sulogin-shell
sysctl sysctl: fix segfault 2020-02-06 23:49:32 +09:00
system-update-generator
systemctl systemctl: switch to BusLocator-oriented helpers 2020-05-07 08:46:44 -07:00
systemd DHCP client: make SendOption work for DHCPv6 too. 2020-05-11 16:31:08 +02:00
sysusers Merge pull request #15718 from poettering/tmpfiles-offline 2020-05-08 11:22:19 +02:00
sysv-generator
test Merge pull request #15460 from elmarco/network-dhcp-resolve1 2020-05-11 16:16:06 +02:00
time-wait-sync
timedate timedate: switch to BusLocator-oriented helpers 2020-05-07 08:46:44 -07:00
timesync tree-wide: make sure our control buffers are properly aligned 2020-05-07 14:39:44 +02:00
tmpfiles Merge pull request #15718 from poettering/tmpfiles-offline 2020-05-08 11:22:19 +02:00
tty-ask-password-agent tree-wide: use the return value from sockaddr_un_set_path() 2020-03-02 15:55:44 +01:00
udev Merge pull request #15623 from poettering/cmsg-cleanup 2020-05-08 11:05:06 +02:00
update-done
update-utmp Remove unneded {}s 2020-04-13 09:31:49 +02:00
user-sessions
userdb userdbctl: make --help fit in 80 columns 2020-04-28 09:56:24 +02:00
vconsole
veritysetup id128: introduce ID128_UUID_STRING_MAX for sizing UUID buffers 2019-12-10 11:56:18 +01:00
version tree-wide: spellcheck using codespell 2020-04-16 18:00:40 +02:00
volatile-root tree-wide: add size limits for tmpfs mounts 2020-05-13 00:37:18 +02:00