Thanks for your reply, Richard.
TheĀ task was elided above. Here's what the recipe looks like now. (I removed
the fakeroot decorator from the function signature). It still stops with
Operation not permitted.
label_sign_verity() {
...
${DUMPIMAGE} -T flat_dt -p 0 -o ${SOCOS_IMAGEDIR}/Image ${FITIMAGE_PATH} #Does
this contribute to the error?
...
echo ${WHOAMI} >>${WORKDIR}/socosupdate_sign_and_package.txt # prints root
...
${SETFATTR} -n security.ima -v
0x${IMA_HEADER}${HASH_ALGO}${KEY_ID}${SIG_LENGTH}${DTB_SIG}
${SOCOS_IMAGEDIR}/Image # Operation not permitted.
}
...
fakeroot do_sign_and_package() {
...
label_sign_verity ${SOCOSUPDATEDIR}/ ${FITIMAGE_PATH}
>>${WORKDIR}/socosupdate_sign_and_package.txt
}
...
addtask sign_and_package after do_deploy before do_build
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#60306): https://lists.yoctoproject.org/g/yocto/message/60306
Mute This Topic: https://lists.yoctoproject.org/mt/99511297/21656
Mute #yocto:https://lists.yoctoproject.org/g/yocto/mutehashtag/yocto
Mute #fakeroot:https://lists.yoctoproject.org/g/yocto/mutehashtag/fakeroot
Mute
#pseudo-native:https://lists.yoctoproject.org/g/yocto/mutehashtag/pseudo-native
Mute #xattr:https://lists.yoctoproject.org/g/yocto/mutehashtag/xattr
Mute #attr-native:https://lists.yoctoproject.org/g/yocto/mutehashtag/attr-native
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-