1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-22 17:35:35 +03:00
systemd/test/fuzz/fuzz-udev-rules
Karel Zak 4fcc033b54 udev-builtin-blkid: add support for --hint offsets
The next libblkid v2.37 is going to support session offsets for
multi-session CD/DVDs. This feature is implemented by "hint offsets".

These offsets are optional and prober specific (e.g., iso, udf, ...).
For this purpose, the library provides a new function
blkid_probe_set_hint(), and blkid(8) provides a new command-line
option --hint <name>=<offset>. For CD/DVD, the offset name is
"session_offset".

The difference between classic --offset and the new --hint is that
--offset is very restrictive and defines the probing area and the rest
of the device is invisible to the library. The new --hint works
like a suggestion, it provides a hint where the user assumes the
filesystem, but the rest of the device is still readable for the
library (for example, to get some additional superblock information
etc.).

If the --hint is without a value then it defaults to zero.

The option --hint implementation in udev-builtin-blkid.c is backwardly
compatible. If compiled against old libblkid, then the option is used in
the same way as --offset.

Addresses: https://github.com/karelzak/util-linux/issues/1161
Addresses: https://github.com/systemd/systemd/pull/17424
2021-01-13 00:58:43 +09:00
..
50-udev-default.rules tests: add a fuzzer for the udev rules parser (#10929) 2018-11-26 18:14:30 +09:00
60-block.rules tests: add a fuzzer for the udev rules parser (#10929) 2018-11-26 18:14:30 +09:00
60-cdrom_id.rules tests: add a fuzzer for the udev rules parser (#10929) 2018-11-26 18:14:30 +09:00
60-drm.rules tests: add a fuzzer for the udev rules parser (#10929) 2018-11-26 18:14:30 +09:00
60-evdev.rules tests: add a fuzzer for the udev rules parser (#10929) 2018-11-26 18:14:30 +09:00
60-input-id.rules tests: add a fuzzer for the udev rules parser (#10929) 2018-11-26 18:14:30 +09:00
60-persistent-alsa.rules tests: add a fuzzer for the udev rules parser (#10929) 2018-11-26 18:14:30 +09:00
60-persistent-input.rules tests: add a fuzzer for the udev rules parser (#10929) 2018-11-26 18:14:30 +09:00
60-persistent-storage-tape.rules tests: add a fuzzer for the udev rules parser (#10929) 2018-11-26 18:14:30 +09:00
60-persistent-storage.rules udev-builtin-blkid: add support for --hint offsets 2021-01-13 00:58:43 +09:00
60-persistent-v4l.rules tests: add a fuzzer for the udev rules parser (#10929) 2018-11-26 18:14:30 +09:00
60-sensor.rules tests: add a fuzzer for the udev rules parser (#10929) 2018-11-26 18:14:30 +09:00
60-serial.rules tests: add a fuzzer for the udev rules parser (#10929) 2018-11-26 18:14:30 +09:00
64-btrfs.rules tests: add a fuzzer for the udev rules parser (#10929) 2018-11-26 18:14:30 +09:00
70-joystick.rules tests: add a fuzzer for the udev rules parser (#10929) 2018-11-26 18:14:30 +09:00
70-mouse.rules tests: add a fuzzer for the udev rules parser (#10929) 2018-11-26 18:14:30 +09:00
70-touchpad.rules tests: add a fuzzer for the udev rules parser (#10929) 2018-11-26 18:14:30 +09:00
75-net-description.rules tests: add a fuzzer for the udev rules parser (#10929) 2018-11-26 18:14:30 +09:00
75-probe_mtd.rules tests: add a fuzzer for the udev rules parser (#10929) 2018-11-26 18:14:30 +09:00
78-sound-card.rules tests: add a fuzzer for the udev rules parser (#10929) 2018-11-26 18:14:30 +09:00
80-drivers.rules tests: add a fuzzer for the udev rules parser (#10929) 2018-11-26 18:14:30 +09:00
80-net-setup-link.rules tests: add a fuzzer for the udev rules parser (#10929) 2018-11-26 18:14:30 +09:00
99-systemd.rules rules: drop broken links 2020-12-16 02:31:44 +09:00
line-too-long fuzz-udev-rules: -ENOBUFS should be accepted too 2020-06-25 08:51:21 +02:00
oss-fuzz-12980 test: add testcase for oss-fuzz#12980 2019-02-13 04:16:30 +09:00