mirror of
https://git.yoctoproject.org/git/poky
synced 2026-01-04 16:10:04 +00:00
Builder is a common word and there are many other builder components which makes us to ignore CVEs for all of them. There is already 1 ignored and currently 3 new ones. Instead, set product to yocto to filter them. (From OE-Core rev: 408c987e9134180616f27ae5df3f59166eeaa6d9) Signed-off-by: Peter Marko <peter.marko@siemens.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
33 lines
1.0 KiB
BlitzBasic
33 lines
1.0 KiB
BlitzBasic
SUMMARY = "New user to do specific job"
|
|
DESCRIPTION = "This recipe create a new user named ${PN}, who is used for specific jobs like building. The task can be auto started via mini X"
|
|
SECTION = "x11"
|
|
LICENSE = "MIT"
|
|
LIC_FILES_CHKSUM = "file://builder_session.sh;endline=5;md5=84796c3c41785d86100fdabcbdade00e"
|
|
|
|
SRC_URI = "file://builder_session.sh \
|
|
"
|
|
|
|
S = "${WORKDIR}"
|
|
|
|
RDEPENDS:${PN} = "mini-x-session"
|
|
|
|
inherit useradd
|
|
|
|
# builder user password is "builder"
|
|
BUILDER_PASSWORD ?= ".gLibiNXn0P12"
|
|
USERADD_PACKAGES = "${PN}"
|
|
USERADD_PARAM:${PN} = "--system --create-home \
|
|
--groups video,tty,audio \
|
|
--password ${BUILDER_PASSWORD} \
|
|
--user-group builder"
|
|
|
|
do_install () {
|
|
install -d -m 755 ${D}${sysconfdir}/mini_x/session.d
|
|
install -p -m 755 builder_session.sh ${D}${sysconfdir}/mini_x/session.d/
|
|
|
|
chown builder.builder ${D}${sysconfdir}/mini_x/session.d/builder_session.sh
|
|
}
|
|
|
|
# do not report CVEs for other builder apps
|
|
CVE_PRODUCT = "yoctoproject:builder"
|