]> git.ipfire.org Git - thirdparty/suricata.git/commit
landlock: handle filestore case 7853/head
authorEric Leblond <el@stamus-networks.com>
Thu, 4 Aug 2022 20:33:52 +0000 (22:33 +0200)
committerVictor Julien <vjulien@oisf.net>
Tue, 13 Sep 2022 08:36:00 +0000 (10:36 +0200)
commita9a17c81855e219ae27f94b803a29d74b6facb37
treef14de99841ab0ab38778e1202ed966defd78df5c
parent1b24f4d357fd922a5c3202fce2904da29a04ed12
landlock: handle filestore case

If landlock ABI is inferior to 2 (before Linux 5.19) then the
renaming of files is impossible if the protection is enabled. This
patch disables landlock if ABI < 2 and file-store is enabled.

As file store is initialized in output the call to landlock had to
done after the output initialization.
src/suricata.c
src/util-landlock.c