mirror of
https://git.yoctoproject.org/meta-security
synced 2026-01-11 15:00:34 +00:00
meta-security: Add a new .bbclass for meta-security layer.
Inheriting the class will cause the check_security function to run on the ROOTFS image. Currently the check_security function just invokes buck-security-native on the root filesystem of the image.
This commit is contained in:
7
classes/check_security.bbclass
Normal file
7
classes/check_security.bbclass
Normal file
@@ -0,0 +1,7 @@
|
||||
check_security () {
|
||||
${STAGING_BINDIR_NATIVE}/buck-security -sysroot ${IMAGE_ROOTFS} -log ${T}/log.do_checksecurity.${PID} -disable-checks "checksum,firewall,packages_problematic,services,sshd,usermask" -no-sudo > /dev/null
|
||||
}
|
||||
|
||||
EXTRA_IMAGEDEPENDS += "buck-security-native"
|
||||
|
||||
ROOTFS_POSTPROCESS_COMMAND += "check_security;"
|
||||
Reference in New Issue
Block a user