Yu Watanabe
db9ecf0501
license: LGPL-2.1+ -> LGPL-2.1-or-later
2020-11-09 13:23:58 +09:00
Zbigniew Jędrzejewski-Szmek
f23810da20
fuzz-udev-rules: -ENOBUFS should be accepted too
...
In udev_rules_load(), add a debug message. Otherwise there'd be no indication
that parsing was aborted.
2020-06-25 08:51:21 +02:00
Zbigniew Jędrzejewski-Szmek
db3b8d5d41
fuzz-udev-rules: rewrite to not require root privileges
...
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=20142 .
It turns out we don't need to do all this preparatory work if we want to parse
just one file.
2020-06-23 20:53:19 +02:00
Zbigniew Jędrzejewski-Szmek
c238a1f5f1
udev: split rules object creation and loading
...
The only functional change is to downgrade the log line to avoid double
logging.
2020-06-23 18:04:18 +02:00
Yu Watanabe
f5947a5e92
tree-wide: drop missing.h
2019-10-31 17:57:03 +09:00
Yu Watanabe
25de7aa7b9
udev: modernize udev-rules.c
...
This does the following:
- rename enum udev_builtin_cmd -> UdevBuiltinCmd
- rename struct udev_builtin -> UdevBuiltin
- move type definitions to udev-rules.h
- move prototypes of functions defined in udev-rules.c to udev-rules.h
- drop to use strbuf
- propagate critical errors in applying rules,
- drop limitation for number of tokens per line.
2019-06-02 14:15:26 +09:00
Zbigniew Jędrzejewski-Szmek
9a07157dd5
udev: use typedef for struct udev_rules
2018-12-17 09:27:21 +01:00
Zbigniew Jędrzejewski-Szmek
1d79128121
udev: make udev_rules_new() return a proper error code
2018-12-14 10:20:43 +01:00
Evgeny Vereshchagin
fa6e5861f7
tests: make fuzz-udev-rules work also in the environment created by run_minijail
...
This should close https://oss-fuzz.com/testcase?key=5642013043589120 .
See also https://github.com/google/oss-fuzz/issues/1983 .
2018-11-28 01:34:38 +01:00
Evgeny Vereshchagin
8e96f161af
tests: keep going even if setup_mount_namespace has failed
...
This should address https://github.com/google/oss-fuzz/issues/1983 .
2018-11-27 12:47:06 +01:00
Evgeny Vereshchagin
2e646cbed8
tests: add a fuzzer for the udev rules parser ( #10929 )
2018-11-26 18:14:30 +09:00