Hi,
first you can follow this link to configure raspberry PI Configure Raspberry Pi - Legato Docs
then check if Smack is enable in your config:
grep CONFIG_SECURITY_SMACK /boot/config-uname -r
You should see something like this
CONFIG_SECURITY_SMACK=y
CONFIG_SECURITY_SMACK_BRINGUP is not set
CONFIG_SECURITY_SMACK_NETFILTER=y
The key point is that the following must appear in your kernel’s build configuration:
CONFIG_SECURITY_SMACK=y
If you see this instead, then SMACK is disabled in your kernel:
CONFIG_SECURITY_SMACK is not set
there is another topic dealing with similar issue Error while loading shared libraries - #19 by virajpadte
have a look to it to get additional information,
best regards,