<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/meta-secure-core.git/meta-integrity/classes, branch thud</title>
<subtitle>Mirror of github.com/jiazhang0/meta-secure-core.git</subtitle>
<id>https://git.enea.com/cgit/linux/meta-secure-core.git/atom?h=thud</id>
<link rel='self' href='https://git.enea.com/cgit/linux/meta-secure-core.git/atom?h=thud'/>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-secure-core.git/'/>
<updated>2018-05-31T03:26:13+00:00</updated>
<entry>
<title>sign_rpm_ext.bbclass: fix check_rpm_public_key racing at recipe parsing time</title>
<updated>2018-05-31T03:26:13+00:00</updated>
<author>
<name>Hongxu Jia</name>
<email>hongxu.jia@windriver.com</email>
</author>
<published>2018-05-31T01:54:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-secure-core.git/commit/?id=38ba5938416ba488f10849080a11069242924e89'/>
<id>urn:sha1:38ba5938416ba488f10849080a11069242924e89</id>
<content type='text'>
All recipe will be parsed which caused lockfile of
check_rpm_public_key racing issue.
...
|WARNING: meta-secure-core/meta/recipes-core/images/secure-core-image-initramfs.bb:
oe-core/bitbake/lib/bb/utils.py:400: ResourceWarning: unclosed file
&lt;_io.TextIOWrapper name='tmp-glibc/check_rpm_public_key.lock' mode='a+' encoding='UTF-8'&gt;
...

Refer do_package_write_rpm, add check_rpm_public_key to
prefunc of do_rootfs, only the running image recipe will
invoke check_rpm_public_key.

Signed-off-by: Hongxu Jia &lt;hongxu.jia@windriver.com&gt;
</content>
</entry>
<entry>
<title>sign_rpm_ext.bbclass: check rpm public key at image recipe parsing time</title>
<updated>2018-05-23T11:32:55+00:00</updated>
<author>
<name>Hongxu Jia</name>
<email>hongxu.jia@windriver.com</email>
</author>
<published>2018-05-23T09:05:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-secure-core.git/commit/?id=7824fbdea866f17bcbf631a028828d93d5d9892c'/>
<id>urn:sha1:7824fbdea866f17bcbf631a028828d93d5d9892c</id>
<content type='text'>
While multiple builds share a common sstate, the latter
build failed to build image which the public key not found.
...
|ERROR: initramfs-ostree-image-1.0-r0 do_rootfs: Importing GPG key failed.
Command 'rpmkeys --root=&lt;path&gt;/rootfs --import &lt;path&gt;/rpm-key' returned 1:
...

The latter build will not regenerate rpm packages and
check_rpm_public_key will not be invoked.

Explicitly invoke check_rpm_public_key at image recipe parsing time,
which make sure gpg public key be imported.

Signed-off-by: Hongxu Jia &lt;hongxu.jia@windriver.com&gt;
</content>
</entry>
<entry>
<title>sign_rpm_ext: make sure all target recipes are signed</title>
<updated>2017-08-24T00:18:01+00:00</updated>
<author>
<name>Jia Zhang</name>
<email>lans.zhang2008@gmail.com</email>
</author>
<published>2017-08-24T00:18:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-secure-core.git/commit/?id=c2962bba6dcc039775a78248b21e558c824d986d'/>
<id>urn:sha1:c2962bba6dcc039775a78248b21e558c824d986d</id>
<content type='text'>
Placing the key import logic under signing-keys cannot ensure all
target recipes are always signed. Instead, place it before
do_package_write_rpm.

Signed-off-by: Jia Zhang &lt;lans.zhang2008@gmail.com&gt;
</content>
</entry>
<entry>
<title>sign_rpm_ext: define the location of default gpg keyring to TMPDIR</title>
<updated>2017-08-20T07:00:05+00:00</updated>
<author>
<name>Jia Zhang</name>
<email>lans.zhang2008@gmail.com</email>
</author>
<published>2017-08-20T07:00:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-secure-core.git/commit/?id=6b7e09b444411c66c958cc5cded8d4c7d0c23fe7'/>
<id>urn:sha1:6b7e09b444411c66c958cc5cded8d4c7d0c23fe7</id>
<content type='text'>
Signed-off-by: Jia Zhang &lt;lans.zhang2008@gmail.com&gt;
</content>
</entry>
<entry>
<title>sign_rpm_ext: fix permission warning</title>
<updated>2017-08-20T03:18:24+00:00</updated>
<author>
<name>Jia Zhang</name>
<email>lans.zhang2008@gmail.com</email>
</author>
<published>2017-08-20T03:18:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-secure-core.git/commit/?id=5c584cb628d751a322b3f90239ea90226b43ca48'/>
<id>urn:sha1:5c584cb628d751a322b3f90239ea90226b43ca48</id>
<content type='text'>
Signed-off-by: Jia Zhang &lt;lans.zhang2008@gmail.com&gt;
</content>
</entry>
<entry>
<title>sign_rpm_ext.bbclass: clean up</title>
<updated>2017-08-19T13:52:51+00:00</updated>
<author>
<name>Jia Zhang</name>
<email>lans.zhang2008@gmail.com</email>
</author>
<published>2017-08-19T13:52:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-secure-core.git/commit/?id=820376c2b5d0100c9cac8f82bf405ed3aff08028'/>
<id>urn:sha1:820376c2b5d0100c9cac8f82bf405ed3aff08028</id>
<content type='text'>
Signed-off-by: Jia Zhang &lt;lans.zhang2008@gmail.com&gt;
</content>
</entry>
<entry>
<title>sign_rpm_ext: Fix the GPG_PATH directory not exist issue (#4)</title>
<updated>2017-08-19T07:18:58+00:00</updated>
<author>
<name>Guojian</name>
<email>guojian.zhou@windriver.com</email>
</author>
<published>2017-08-19T07:18:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-secure-core.git/commit/?id=050cc889bb5b46d21ede7598907bfc046ce5b000'/>
<id>urn:sha1:050cc889bb5b46d21ede7598907bfc046ce5b000</id>
<content type='text'>
If "GPG_PATH" is set in the init script, then "signing-keys"
get_public_keys task will execute failed.

So the "GPG_PATH" directory would be created when "GPG_PATH" is set.

The do_get_public_keys failed to import gpg key error information is as following:
----------------------------------------------------------------------------------------
ERROR: signing-keys-1.0-r0 do_get_public_keys: Function failed: Failed to import gpg key
(layers/meta-secure-core/meta-signing-key/files/rpm_keys/RPM-GPG-PRIVKEY-SecureCore):
gpg: fatal: can't create directory
`tmp/deploy/images/intel-corei7-64/.gnupg': No such file or directory

Signed-off-by: Guojian Zhou &lt;guojian.zhou@windriver.com&gt;</content>
</entry>
<entry>
<title>sign_rpm_ext.bbclass: use the default setting from meta-signing-key</title>
<updated>2017-08-19T04:54:19+00:00</updated>
<author>
<name>Jia Zhang</name>
<email>lans.zhang2008@gmail.com</email>
</author>
<published>2017-08-19T04:48:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-secure-core.git/commit/?id=8544d2a4a570ea109bc6b78c1e51ebc1d57b985d'/>
<id>urn:sha1:8544d2a4a570ea109bc6b78c1e51ebc1d57b985d</id>
<content type='text'>
Signed-off-by: Jia Zhang &lt;lans.zhang2008@gmail.com&gt;
</content>
</entry>
<entry>
<title>sign_rpm_ext: set default GPG_PATH if it is not specified (#2)</title>
<updated>2017-08-19T04:44:39+00:00</updated>
<author>
<name>yunguowei</name>
<email>yunguo.wei@windriver.com</email>
</author>
<published>2017-08-19T04:44:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-secure-core.git/commit/?id=e3f58965abe99e9cd4c3ccdfd5401df61b47d6c9'/>
<id>urn:sha1:e3f58965abe99e9cd4c3ccdfd5401df61b47d6c9</id>
<content type='text'>
commit 52bf3b6636f95a(meta-integrity: move gpg keyring initialization
to signing-keys) tried to initialize keyring in the task check_public_keys
of the recipe signing-keys. However, it does work with the recipe
signing-keys only, and GPG_PATH can't be passed to other recipes.

We bring the python anonymous function back, and it makes sure GPG_PATH
is set before signing the packages for every recipe.

Signed-off-by: Yunguo Wei &lt;yunguo.wei@windriver.com&gt;</content>
</entry>
<entry>
<title>meta-integrity: move gpg keyring initialization to signing-keys</title>
<updated>2017-08-17T15:29:26+00:00</updated>
<author>
<name>Jia Zhang</name>
<email>lans.zhang2008@gmail.com</email>
</author>
<published>2017-08-17T15:29:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-secure-core.git/commit/?id=52bf3b6636f95a4cf00d72dc774302905d7d8e88'/>
<id>urn:sha1:52bf3b6636f95a4cf00d72dc774302905d7d8e88</id>
<content type='text'>
Signed-off-by: Jia Zhang &lt;lans.zhang2008@gmail.com&gt;
</content>
</entry>
</feed>
