1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-12 09:17:44 +03:00
systemd-stable/src/udev
Lennart Poettering 2f82562bad alloc-util: add strdupa_safe() + strndupa_safe() and use it everywhere
Let's define two helpers strdupa_safe() + strndupa_safe() which do the
same as their non-safe counterparts, except that they abort if called
with allocations larger than ALLOCA_MAX.

This should ensure that all our alloca() based allocations are subject
to this limit.

afaics glibc offers three alloca() based APIs: alloca() itself,
strndupa() + strdupa(). With this we have now replacements for all of
them, that take the limit into account.
2021-10-14 15:57:52 +02:00
..
ata_id tree-wide: "a" -> "an" 2021-06-30 23:33:00 +09:00
cdrom_id Drop the text argument from assert_not_reached() 2021-08-03 10:05:10 +02:00
dmi_memory_id alloc-util: add strdupa_safe() + strndupa_safe() and use it everywhere 2021-10-14 15:57:52 +02:00
fido_id sd-device: add sd_device_get_action() + sd_device_get_seqnum() + sd_device_new_from_stat_rdev() 2021-02-18 18:20:56 +01:00
mtd_probe license: GPL-2.0+ -> GPL-2.0-or-later 2020-11-09 13:25:50 +09:00
net udev/net: introduce WakeOnLanPassword= 2021-10-07 01:50:37 +09:00
scsi_id tree-wide: use C99 __func__ rather than obsolete __FUNCTION__ 2021-10-11 14:10:39 +02:00
v4l_id Drop the text argument from assert_not_reached() 2021-08-03 10:05:10 +02:00
fuzz-udev-rule-parse-value.c fuzzers: move several fuzzers 2021-01-19 07:04:19 +09:00
fuzz-udev-rules.c udev: stop to use LOG_REALM_UDEV 2021-01-25 20:32:18 +09:00
fuzz-udev-rules.options fuzzers: move several fuzzers 2021-01-19 07:04:19 +09:00
generate-keyboard-keys-gperf.sh src: shellcheck-ify shell scripts 2021-04-20 18:39:36 +02:00
generate-keyboard-keys-list.sh fix bash shebangs 2021-05-17 22:27:41 +01:00
meson.build udev: rename udev-builtin-net_id-netlink.[ch] 2021-10-06 16:39:52 +09:00
test-udev-builtin.c core: add Unit.Markers property 2021-02-15 20:49:14 +01:00
test-udev-event.c Drop the text argument from assert_not_reached() 2021-08-03 10:05:10 +02:00
test-udev-netlink.c udev: read more attributes through netlink and cache them 2021-10-06 16:39:52 +09:00
test-udev-node.c udev: always use last 11 chars for hash string 2021-06-04 22:31:24 +09:00
udev-builtin-blkid.c udev: pass rtnl to builtin commands 2021-08-31 21:21:10 +09:00
udev-builtin-btrfs.c udev: pass rtnl to builtin commands 2021-08-31 21:21:10 +09:00
udev-builtin-hwdb.c udev: pass rtnl to builtin commands 2021-08-31 21:21:10 +09:00
udev-builtin-input_id.c udev: pass rtnl to builtin commands 2021-08-31 21:21:10 +09:00
udev-builtin-keyboard.c udev: pass rtnl to builtin commands 2021-08-31 21:21:10 +09:00
udev-builtin-kmod.c udev: pass rtnl to builtin commands 2021-08-31 21:21:10 +09:00
udev-builtin-net_id.c udev: read more attributes through netlink and cache them 2021-10-06 16:39:52 +09:00
udev-builtin-net_setup_link.c udev: use passed rtnl in net_setup_link builtin command 2021-08-31 21:21:10 +09:00
udev-builtin-path_id.c alloc-util: add strdupa_safe() + strndupa_safe() and use it everywhere 2021-10-14 15:57:52 +02:00
udev-builtin-uaccess.c udev: pass rtnl to builtin commands 2021-08-31 21:21:10 +09:00
udev-builtin-usb_id.c udev: pass rtnl to builtin commands 2021-08-31 21:21:10 +09:00
udev-builtin.c udev: pass rtnl to builtin commands 2021-08-31 21:21:10 +09:00
udev-builtin.h udev: pass rtnl to builtin commands 2021-08-31 21:21:10 +09:00
udev-ctrl.c udev: do not remove control socket on exit 2021-09-01 14:44:00 +02:00
udev-ctrl.h udev: do not remove control socket on exit 2021-09-01 14:44:00 +02:00
udev-event.c alloc-util: add strdupa_safe() + strndupa_safe() and use it everywhere 2021-10-14 15:57:52 +02:00
udev-event.h udev: refuse to enable inotify watch on remove event 2021-04-30 19:21:18 +09:00
udev-netlink.c udev: read more attributes through netlink and cache them 2021-10-06 16:39:52 +09:00
udev-netlink.h udev: read more attributes through netlink and cache them 2021-10-06 16:39:52 +09:00
udev-node.c udev-node: do not ignore unexpected errors on removing symlink in stack directory 2021-09-12 16:14:44 +09:00
udev-node.h udev-node: split out permission handling from udev_node_add() 2021-09-02 08:30:51 +09:00
udev-rules.c udev: replace sd_device_get_sysattr_value() with device_get_sysattr_value_maybe_from_netlink() 2021-10-06 16:39:52 +09:00
udev-rules.h tree-wide: use -EINVAL for enum invalid values 2021-02-10 14:46:59 +01:00
udev-watch.c udev-watch: retry to save watch handle with random delay 2021-09-13 18:53:00 +09:00
udev-watch.h udev,sd_device: also save map from device ID to watch handle in /run/udev/watch 2021-04-30 19:41:41 +09:00
udev.conf udev: make signal that we use to kill workers on timeout configurable 2020-06-05 11:09:17 +02:00
udev.pc.in meson: use jinja2 in src/udev 2021-05-19 10:24:43 +09:00
udevadm-control.c udev: also rename struct udev_ctrl -> UdevCtrl 2021-08-10 15:16:56 +09:00
udevadm-hwdb.c Drop the text argument from assert_not_reached() 2021-08-03 10:05:10 +02:00
udevadm-info.c udev: teach udevadm --property=NAME and --value options 2021-09-29 13:32:25 +02:00
udevadm-monitor.c Drop the text argument from assert_not_reached() 2021-08-03 10:05:10 +02:00
udevadm-settle.c udev: also rename struct udev_ctrl -> UdevCtrl 2021-08-10 15:16:56 +09:00
udevadm-test-builtin.c udev: pass rtnl to builtin commands 2021-08-31 21:21:10 +09:00
udevadm-test.c udevadm: introduce parse_device_action() helper function 2021-08-17 23:22:26 +09:00
udevadm-trigger.c udevadm: introduce parse_device_action() helper function 2021-08-17 23:22:26 +09:00
udevadm-util.c udevadm: introduce parse_device_action() helper function 2021-08-17 23:22:26 +09:00
udevadm-util.h udevadm: introduce parse_device_action() helper function 2021-08-17 23:22:26 +09:00
udevadm.c Drop the text argument from assert_not_reached() 2021-08-03 10:05:10 +02:00
udevadm.h meson: simplify the BUILD_MODE conditional 2021-04-14 16:19:54 +02:00
udevd.c basic: split out inotify-related calls from fs-util.h → inotify-util.h 2021-10-05 16:14:37 +02:00
udevd.h license: GPL-2.0+ -> GPL-2.0-or-later 2020-11-09 13:25:50 +09:00