aboutsummaryrefslogtreecommitdiffstats
path: root/meta-security/recipes-core/smack-system-setup/smack-system-setup_1.bb
blob: 49b12ad3f4e182ed7932a5a8122b229bcd30f8f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
DESCRIPTION = "setup of a system using smack"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"

SRC_URI = "\
  file://55-udev-smack-default.rules \
  file://systemd-journald.service.conf \
  file://systemd-tmpfiles-setup.service.conf \
  file://tmp.mount.conf \
"

RDEPENDS_${PN}_append_with-lsm-smack = " smack"

do_install_append_with-lsm-smack() {
    # tuning systemd units
    install -Dm0644 ${WORKDIR}/systemd-tmpfiles-setup.service.conf \
                     ${D}${systemd_unitdir}/system/systemd-tmpfiles-setup.service.d/smack.conf
    install -Dm0644 ${WORKDIR}/systemd-journald.service.conf \
                     ${D}${systemd_unitdir}/system/systemd-journald.service.d/smack.conf
    install -Dm0644 ${WORKDIR}/tmp.mount.conf \
                     ${D}${systemd_unitdir}/system/tmp.mount.d/smack.conf

    # add udev rules
    install -Dm0644 ${WORKDIR}/55-udev-smack-default.rules \
                     ${D}${sysconfdir}/udev/rules.d/55-udev-smack-default.rules
}

FILES_${PN} += "${systemd_unitdir}"