summaryrefslogtreecommitdiffstats
path: root/meta-app-framework/recipes-core/util-linux/util-linux_appfw.inc
blob: 7399aa44d993466ae881afce401847e501bc81d2 (plain)
1
2
3
4
5
6
7
8
# Enabling Smack support in util-linux enables special support
# in [lib]mount for Smack mount options: they get removed if
# Smack is not active in the current kernel. Important for
# booting with "security=none" when userspace otherwise is
# compiled to use Smack.

PACKAGECONFIG:append:with-lsm-smack:class-target = " smack"
PACKAGECONFIG[smack] = "--with-smack, --without-smack"
changes here directly. ################################################################################## do_patch[prefuncs] += "patch_systemd" do_patch[vardeps] += "patch_systemd" patch_systemd() { # Handling of /run and /sys/fs/cgroup. Make /run a transmuting directory to # enable systemd communications with services in the User domain. # Original patch by Michael Demeter <michael.demeter@intel.com>. # # We simplify the patching by touching only lines which check the result of # mac_smack_use(). Those are the ones which are used when Smack is active. # # smackfsroot=* on /sys/fs/cgroup may be upstreamable, but smackfstransmute=System::Run # is too distro specific (depends on Smack rules) and thus has to remain here. sed -i -e 's;\("/sys/fs/cgroup", *"[^"]*", *"[^"]*\)\(.*mac_smack_use.*\);\1,smackfsroot=*\2;' \ -e 's;\("/run", *"[^"]*", *"[^"]*\)\(.*mac_smack_use.*\);\1,smackfstransmute=System::Run\2;' \ ${S}/src/core/mount-setup.c } ################################################################################## # What follows is temporary. # This is a solution to the Bug-AGL SPEC-539 # (see https://jira.automotivelinux.org/browse/SPEC-539). # # It renames the file "touchscreen.rules" to "55-touchscreen.rules" # This comes with the recipe systemd_230/234 of poky (meta/recipes-core/systemd) # It should be removed when poky changes. ################################################################################## do_install:prepend() { mv ${WORKDIR}/touchscreen.rules ${WORKDIR}/55-touchscreen.rules || true }