diff options
author | Armin Kuster <akuster808@gmail.com> | 2021-11-05 05:58:54 -0700 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2021-11-07 11:26:49 -0800 |
commit | f6fa9dc1c9eb47964f30fac875d1cc4f866d46d3 (patch) | |
tree | a00dd9fadbefc6c56a99533acd3a8fd6fcffec14 /recipes-security | |
parent | b654040fad922cdd486f43167ca689bef4058ca2 (diff) | |
download | meta-security-f6fa9dc1c9eb47964f30fac875d1cc4f866d46d3.tar.gz |
bastille: Create /var/log/Bastille in runtime
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'recipes-security')
-rw-r--r-- | recipes-security/bastille/bastille_3.2.1.bb | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/recipes-security/bastille/bastille_3.2.1.bb b/recipes-security/bastille/bastille_3.2.1.bb index 72281c5..2d82983 100644 --- a/recipes-security/bastille/bastille_3.2.1.bb +++ b/recipes-security/bastille/bastille_3.2.1.bb | |||
@@ -48,7 +48,6 @@ do_install () { | |||
48 | install -d ${D}${datadir}/Bastille/OSMap/Modules | 48 | install -d ${D}${datadir}/Bastille/OSMap/Modules |
49 | install -d ${D}${datadir}/Bastille/Questions | 49 | install -d ${D}${datadir}/Bastille/Questions |
50 | install -d ${D}${datadir}/Bastille/FKL/configs/ | 50 | install -d ${D}${datadir}/Bastille/FKL/configs/ |
51 | install -d ${D}${localstatedir}/log/Bastille | ||
52 | install -d ${D}${sysconfdir}/Bastille | 51 | install -d ${D}${sysconfdir}/Bastille |
53 | install -m 0755 AutomatedBastille ${D}${sbindir} | 52 | install -m 0755 AutomatedBastille ${D}${sbindir} |
54 | install -m 0755 BastilleBackEnd ${D}${sbindir} | 53 | install -m 0755 BastilleBackEnd ${D}${sbindir} |
@@ -148,6 +147,20 @@ do_install () { | |||
148 | ${THISDIR}/files/set_required_questions.py ${D}${sysconfdir}/Bastille/config ${D}${datadir}/Bastille/Questions | 147 | ${THISDIR}/files/set_required_questions.py ${D}${sysconfdir}/Bastille/config ${D}${datadir}/Bastille/Questions |
149 | 148 | ||
150 | ln -s RevertBastille ${D}${sbindir}/UndoBastille | 149 | ln -s RevertBastille ${D}${sbindir}/UndoBastille |
150 | |||
151 | # Create /var/log/Bastille in runtime. | ||
152 | if [ "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" ]; then | ||
153 | install -d ${D}${nonarch_libdir}/tmpfiles.d | ||
154 | echo "d ${localstatedir}/log/Bastille - - - -" > ${D}${nonarch_libdir}/tmpfiles.d/Bastille.conf | ||
155 | fi | ||
156 | if [ "${@bb.utils.filter('DISTRO_FEATURES', 'sysvinit', d)}" ]; then | ||
157 | install -d ${D}${sysconfdir}/default/volatiles | ||
158 | echo "d root root 0755 ${localstatedir}/log/Bastille none" > ${D}${sysconfdir}/default/volatiles/99_Bastille | ||
159 | fi | ||
151 | } | 160 | } |
152 | 161 | ||
153 | FILES:${PN} += "${datadir}/Bastille ${libdir}/Bastille ${libdir}/perl* ${sysconfdir}/*" | 162 | FILES:${PN} += "${datadir}/Bastille \ |
163 | ${libdir}/Bastille \ | ||
164 | ${libdir}/perl* \ | ||
165 | ${sysconfdir}/* \ | ||
166 | ${nonarch_libdir}/tmpfiles.d" | ||