<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/meta-selinux.git, branch nanbield</title>
<subtitle>Mirror of git.yoctoproject.org/meta-selinux.git</subtitle>
<id>https://git.enea.com/cgit/linux/meta-selinux.git/atom?h=nanbield</id>
<link rel='self' href='https://git.enea.com/cgit/linux/meta-selinux.git/atom?h=nanbield'/>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-selinux.git/'/>
<updated>2023-10-12T14:14:19+00:00</updated>
<entry>
<title>README: update</title>
<updated>2023-10-12T14:14:19+00:00</updated>
<author>
<name>Yi Zhao</name>
<email>yi.zhao@windriver.com</email>
</author>
<published>2023-09-22T02:22:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-selinux.git/commit/?id=ff95c536a54a758185958bcfeff86d9ba595b13e'/>
<id>urn:sha1:ff95c536a54a758185958bcfeff86d9ba595b13e</id>
<content type='text'>
Add how to enable labeling on first boot.

Signed-off-by: Yi Zhao &lt;yi.zhao@windriver.com&gt;
Signed-off-by: Joe MacDonald &lt;joe@deserted.net&gt;
</content>
</entry>
<entry>
<title>selinux-autorelabel: enable labeling during build</title>
<updated>2023-10-12T14:14:19+00:00</updated>
<author>
<name>Yi Zhao</name>
<email>yi.zhao@windriver.com</email>
</author>
<published>2023-09-22T02:22:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-selinux.git/commit/?id=e29104086eaf72dae37140226113c694917b5b23'/>
<id>urn:sha1:e29104086eaf72dae37140226113c694917b5b23</id>
<content type='text'>
Previously, system using systemd would label selinux contexts on first
boot. While system using sysvinit would label during build. Add a
variable FIRST_BOOT_RELABEL as a switch to control labeling to make the
behavior of sysvinit and systemd consistent.

Set FIRST_BOOT_RELABEL to 1 in local.conf to enable labeling on first
boot.

Signed-off-by: Yi Zhao &lt;yi.zhao@windriver.com&gt;
Signed-off-by: Joe MacDonald &lt;joe@deserted.net&gt;
</content>
</entry>
<entry>
<title>selinux-image.bbclass: refactor bbclass</title>
<updated>2023-10-12T14:14:19+00:00</updated>
<author>
<name>Yi Zhao</name>
<email>yi.zhao@windriver.com</email>
</author>
<published>2023-09-22T02:22:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-selinux.git/commit/?id=46ec0414b4dff45de7c44a11ae4cc275982eca6f'/>
<id>urn:sha1:46ec0414b4dff45de7c44a11ae4cc275982eca6f</id>
<content type='text'>
The selinux_set_labels function should run as late as possible. To
guarantee that, we append it to IMAGE_PREPROCESS_COMMAND in
RecipePreFinalise event handler, this ensures it is the last function in
IMAGE_PREPROCESS_COMMAND.

After refactoring, system using systemd can also label selinux contexts
during build.

Signed-off-by: Yi Zhao &lt;yi.zhao@windriver.com&gt;
Signed-off-by: Joe MacDonald &lt;joe@deserted.net&gt;
</content>
</entry>
<entry>
<title>layer.conf: update LAYERSERIES_COMPAT for nanbield</title>
<updated>2023-10-12T14:14:19+00:00</updated>
<author>
<name>Yi Zhao</name>
<email>yi.zhao@windriver.com</email>
</author>
<published>2023-09-22T02:58:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-selinux.git/commit/?id=ce049565e1dc84f8ae323ec33ce5632f727900a4'/>
<id>urn:sha1:ce049565e1dc84f8ae323ec33ce5632f727900a4</id>
<content type='text'>
oe-core has switched to nanbield in:
https://git.openembedded.org/openembedded-core/commit/?id=f212cb12a0db9c9de5afd3cc89b1331d386e55f6

Signed-off-by: Yi Zhao &lt;yi.zhao@windriver.com&gt;
Signed-off-by: Joe MacDonald &lt;joe@deserted.net&gt;
</content>
</entry>
<entry>
<title>refpolicy: upgrade 20221101+git -&gt; 20231002+git</title>
<updated>2023-10-12T14:14:19+00:00</updated>
<author>
<name>Yi Zhao</name>
<email>yi.zhao@windriver.com</email>
</author>
<published>2023-10-11T02:50:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-selinux.git/commit/?id=0d58268e290fe9dfa1c17d97b9ca7709aa53d595'/>
<id>urn:sha1:0d58268e290fe9dfa1c17d97b9ca7709aa53d595</id>
<content type='text'>
* Switch branch to main.
* Update to latest git rev.
* Drop obsolete and useless patches.
* Refresh patches.

Signed-off-by: Yi Zhao &lt;yi.zhao@windriver.com&gt;
Signed-off-by: Joe MacDonald &lt;joe@deserted.net&gt;
</content>
</entry>
<entry>
<title>libselinux-python: fix build with musl</title>
<updated>2023-09-05T18:36:06+00:00</updated>
<author>
<name>Yi Zhao</name>
<email>yi.zhao@eng.windriver.com</email>
</author>
<published>2023-08-23T15:22:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-selinux.git/commit/?id=e44d4ff853a0ea835462c3476cba400124a00bdd'/>
<id>urn:sha1:e44d4ff853a0ea835462c3476cba400124a00bdd</id>
<content type='text'>
libselinux-python also requires the patch which provided by [1] to fix
build with musl.

[1] https://git.yoctoproject.org/meta-selinux/commit/?id=23d8e2d86317170c0a3c155640c71b83329ff726

Signed-off-by: Yi Zhao &lt;yi.zhao@windriver.com&gt;
Signed-off-by: Joe MacDonald &lt;joe@deserted.net&gt;
</content>
</entry>
<entry>
<title>linux-yocto: drop CONFIG_SECURITY_SELINUX_DISABLE</title>
<updated>2023-09-05T18:36:06+00:00</updated>
<author>
<name>Yi Zhao</name>
<email>yi.zhao@eng.windriver.com</email>
</author>
<published>2023-08-23T15:22:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-selinux.git/commit/?id=2ff4de94fd33bd9e1b58b1faf00366d8cb928cfa'/>
<id>urn:sha1:2ff4de94fd33bd9e1b58b1faf00366d8cb928cfa</id>
<content type='text'>
CONFIG_SECURITY_SELINUX_DISABLE has been removed since kernel 6.4[1][2].

[1] https://github.com/SELinuxProject/selinux-kernel/wiki/DEPRECATE-runtime-disable
[2] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f22f9aaf6c3d92ebd5ad9e67acc03afebaaeb289

Signed-off-by: Yi Zhao &lt;yi.zhao@windriver.com&gt;
Signed-off-by: Joe MacDonald &lt;joe@deserted.net&gt;
</content>
</entry>
<entry>
<title>selinux-python: add python3-distro and binutils to RDEPENDS</title>
<updated>2023-09-05T18:36:06+00:00</updated>
<author>
<name>Yi Zhao</name>
<email>yi.zhao@eng.windriver.com</email>
</author>
<published>2023-08-23T15:22:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-selinux.git/commit/?id=dea065096bf2776942f7990e8124053411d81d91'/>
<id>urn:sha1:dea065096bf2776942f7990e8124053411d81d91</id>
<content type='text'>
Add python3-distro and binutils to RDEPENDS for sepolicy to fix runtime
error:

$ sepolicy -h
Traceback (most recent call last):
  File "/usr/bin/sepolicy", line 690, in &lt;module&gt;
    gen_manpage_args(subparsers)
  File "/usr/bin/sepolicy", line 375, in gen_manpage_args
    man.add_argument("-o", "--os", dest="os", default=get_os_version(),

  File "/usr/lib/python3.11/site-packages/sepolicy/__init__.py", line 1245, in get_os_version
    import distro
ModuleNotFoundError: No module named 'distro'

$ sepolicy generate --init /usr/sbin/sshd
/bin/sh: line 1: nm: command not found

Signed-off-by: Yi Zhao &lt;yi.zhao@windriver.com&gt;
Signed-off-by: Joe MacDonald &lt;joe@deserted.net&gt;
</content>
</entry>
<entry>
<title>setools: upgrade 4.4.2 -&gt; 4.4.3</title>
<updated>2023-08-08T14:34:54+00:00</updated>
<author>
<name>Yi Zhao</name>
<email>yi.zhao@eng.windriver.com</email>
</author>
<published>2023-08-07T02:22:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-selinux.git/commit/?id=5933e66507d81651f721e2dfd16f7a6d04de4c32'/>
<id>urn:sha1:5933e66507d81651f721e2dfd16f7a6d04de4c32</id>
<content type='text'>
ChangeLog:
https://github.com/SELinuxProject/setools/releases/tag/4.4.3

Signed-off-by: Yi Zhao &lt;yi.zhao@windriver.com&gt;
Signed-off-by: Joe MacDonald &lt;joe@deserted.net&gt;
</content>
</entry>
<entry>
<title>libselinux: fix compilation with musl</title>
<updated>2023-07-31T19:08:04+00:00</updated>
<author>
<name>Renato Caldas</name>
<email>renato@calgera.com</email>
</author>
<published>2023-06-29T14:31:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-selinux.git/commit/?id=23d8e2d86317170c0a3c155640c71b83329ff726'/>
<id>urn:sha1:23d8e2d86317170c0a3c155640c71b83329ff726</id>
<content type='text'>
Signed-off-by: Renato Caldas &lt;renato@calgera.com&gt;
Signed-off-by: Joe MacDonald &lt;joe@deserted.net&gt;
</content>
</entry>
</feed>
