<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/meta-selinux.git/classes, branch scarthgap</title>
<subtitle>Mirror of git.yoctoproject.org/meta-selinux.git</subtitle>
<id>https://git.enea.com/cgit/linux/meta-selinux.git/atom?h=scarthgap</id>
<link rel='self' href='https://git.enea.com/cgit/linux/meta-selinux.git/atom?h=scarthgap'/>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-selinux.git/'/>
<updated>2026-03-17T14:09:59+00:00</updated>
<entry>
<title>selinux-image: Preserve SELinux contexts in tarballs</title>
<updated>2026-03-17T14:09:59+00:00</updated>
<author>
<name>Sasi Kumar Maddineni</name>
<email>sasikuma@qti.qualcomm.com</email>
</author>
<published>2026-03-16T23:21:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-selinux.git/commit/?id=dc8427f0adc3bdc693e855aac311eca36a48348c'/>
<id>urn:sha1:dc8427f0adc3bdc693e855aac311eca36a48348c</id>
<content type='text'>
Tarball images were created without SELinux context information,
causing loss of security labels during extraction while working with
features like:ostree. This breaks SELinux policy enforcement and requires
relabeling after deployment, adding runtime overhead.

Append "--selinux" to IMAGE_CMD_TAR to include SELinux file contexts
when generating tarball images. This ensures security labels are
preserved across image creation and deployment.

Signed-off-by: Sasi Kumar Maddineni &lt;quic_sasikuma@quicinc.com&gt;
Signed-off-by: Yi Zhao &lt;yi.zhao@windriver.com&gt;
(cherry picked from commit 9a913243ffaf26e06f151c3c293b62e28ec549f1)
Signed-off-by: Hiago De Franco &lt;hfranco@baylibre.com&gt;
Signed-off-by: Yi Zhao &lt;yi.zhao@windriver.com&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>classes: drop redundant classes</title>
<updated>2021-08-30T01:34:22+00:00</updated>
<author>
<name>Yi Zhao</name>
<email>yi.zhao@windriver.com</email>
</author>
<published>2021-08-19T04:47:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-selinux.git/commit/?id=31325005e4409e08b7f68eed44a9c4086453e4dd'/>
<id>urn:sha1:31325005e4409e08b7f68eed44a9c4086453e4dd</id>
<content type='text'>
There are some redundant classes: enable-selinux.bbclass,
with-selinux.bbclass, meson-enable-selinux.bbclass,
meson-selinux.bbclass, enable-audit.bbclass, with-audit.bbclass.
These classes only add PACKAGEOCNFIG[selinux]/[audit] to recipes. But
currently most recipes have added PACKAGECONFIG[selinux]/[audit] in
their bb files. We don't need these anymore. Only keep
enable-selinux.class and enable-audit.class to append
PACKAGECONFIG[selinux]/[audit] for recipes.

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>meta-selinux: convert to new override syntax</title>
<updated>2021-08-04T20:18:39+00:00</updated>
<author>
<name>Yi Zhao</name>
<email>yi.zhao@windriver.com</email>
</author>
<published>2021-08-04T06:49:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-selinux.git/commit/?id=654201e25da6761f2b69f5ff1dd80ec61a79027f'/>
<id>urn:sha1:654201e25da6761f2b69f5ff1dd80ec61a79027f</id>
<content type='text'>
This is the result of automated script conversion:
poky/scripts/contrib/convert-overrides.py meta-selinux

Converting the metadata to use ":" as the override character instead of "_".

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.bbclass: remove True option in getVar()</title>
<updated>2020-04-03T12:39:07+00:00</updated>
<author>
<name>Yi Zhao</name>
<email>yi.zhao@windriver.com</email>
</author>
<published>2020-04-02T09:12:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-selinux.git/commit/?id=83eac4de1ab3c442c071b085a5e6d71faf33325b'/>
<id>urn:sha1:83eac4de1ab3c442c071b085a5e6d71faf33325b</id>
<content type='text'>
The getVar() defaults to expanding by default, thus remove the True
option from all getVar() calls.

Signed-off-by: Yi Zhao &lt;yi.zhao@windriver.com&gt;
Signed-off-by: Joe MacDonald &lt;joe_macdonald@mentor.com&gt;
</content>
</entry>
<entry>
<title>glib-2.0: fix configure error for meson build</title>
<updated>2019-06-16T03:11:05+00:00</updated>
<author>
<name>Yi Zhao</name>
<email>yi.zhao@windriver.com</email>
</author>
<published>2019-06-12T07:53:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-selinux.git/commit/?id=bb0c9c3abcb935e4b362eb57985e1ee7fec0bfe0'/>
<id>urn:sha1:bb0c9c3abcb935e4b362eb57985e1ee7fec0bfe0</id>
<content type='text'>
In glib 2.60.x, it turns selinux into a meson feature. We should use
'-Dselinux=enabled/disabled' rather than '-Dselinux=true/false' to
enable/disable the feature.

Add meso-enable-selinux.bbclass for this change and inherit it in
glib-2.0 bbappend to fix the configure error.

Signed-off-by: Yi Zhao &lt;yi.zhao@windriver.com&gt;
Signed-off-by: Joe MacDonald &lt;joe_macdonald@mentor.com&gt;
</content>
</entry>
<entry>
<title>selinux-image.bbclass: using append instead of += for IMAGE_PREPROCESS_COMMAND</title>
<updated>2019-04-14T21:08:54+00:00</updated>
<author>
<name>Yi Zhao</name>
<email>yi.zhao@windriver.com</email>
</author>
<published>2019-01-25T07:39:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-selinux.git/commit/?id=3f850b745ca5a640a38516fce5393318cc78cacc'/>
<id>urn:sha1:3f850b745ca5a640a38516fce5393318cc78cacc</id>
<content type='text'>
Fix AVC denied error when booting:

type=AVC msg=audit(1548055920.478:86): avc:  denied  { execute } for
pid=366 comm="audispd" path="/lib/ld-2.28.so" dev="vda" ino=7545
scontext=system_u:system_r:audisp_t:s15:c0.c1023
tcontext=system_u:object_r:unlabeled_t:s0 tclass=file permissive=1

type=AVC msg=audit(1548055920.478:87): avc:  denied  { open } for
pid=366 comm="audispd" path="/lib/libc-2.28.so" dev="vda" ino=7558
scontext=system_u:system_r:audisp_t:s15:c0.c1023
tcontext=system_u:object_r:unlabeled_t:s0 tclass=file permissive=1

When using "+=" for IMAGE_PREPROCESS_COMMAND, the selinux_set_labels
process would run before prelink process to set the security labels for
the files. But the label for /lib/libc-2.28.so and /lib/ld-2.28.so would
be changed after run prelink process. Use "_append" to make sure the
selinux_set_labels process run after prelink process.

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>meson-selinux.bbclass: add for meson build system</title>
<updated>2019-03-25T08:43:53+00:00</updated>
<author>
<name>Kai Kang</name>
<email>kai.kang@windriver.com</email>
</author>
<published>2019-03-11T05:52:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-selinux.git/commit/?id=eafe868098f52b061422bffc13fbc582d687d4ed'/>
<id>urn:sha1:eafe868098f52b061422bffc13fbc582d687d4ed</id>
<content type='text'>
Add meson-selinux.bbclass for meson build system. It used
'-Dselinux=true/false' to enable/disable 'selinux' rather than
--enable-selinux or --with-selinux.

Inherit meson-selinux for glib-2.0 to fix configure failure.

Signed-off-by: Kai Kang &lt;kai.kang@windriver.com&gt;
Signed-off-by: Joe MacDonald &lt;joe@deserted.net&gt;
</content>
</entry>
<entry>
<title>selinux-image: fix labeling on non-seclabel mounts</title>
<updated>2018-08-13T15:20:32+00:00</updated>
<author>
<name>George McCollister</name>
<email>george.mccollister@gmail.com</email>
</author>
<published>2018-05-22T14:47:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-selinux.git/commit/?id=8ecad12b2ccb612fdf4906392d26fa6bfae20460'/>
<id>urn:sha1:8ecad12b2ccb612fdf4906392d26fa6bfae20460</id>
<content type='text'>
Use -m to prevent non-seclabel mounts from being excluded from labeling.
After the following commit setfiles will no longer label files on a
mount other than / if it doesn't have seclabel listed in /proc/mounts:
https://github.com/SELinuxProject/selinux/commit/f2e77865e144ab2e1313aa78d99b969f8f48695e#diff-2de9aefdd8fc5bc6a8740533e5d1cc2e

Signed-off-by: George McCollister &lt;george.mccollister@gmail.com&gt;
Signed-off-by: Joe MacDonald &lt;joe_macdonald@mentor.com&gt;
</content>
</entry>
<entry>
<title>enable-audit.bbclass: remove implement of packageconfig audit</title>
<updated>2018-05-08T14:30:56+00:00</updated>
<author>
<name>Kai Kang</name>
<email>kai.kang@windriver.com</email>
</author>
<published>2018-04-02T06:11:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-selinux.git/commit/?id=c8290189fdaa2d23b0f37fd9c4f6236e64ee58a3'/>
<id>urn:sha1:c8290189fdaa2d23b0f37fd9c4f6236e64ee58a3</id>
<content type='text'>
enable-audit.bbclass is only used by systemd. And systemd has adapted to
use build tool meson and implement PACKAGECONFIG audit in recipe file of
systemd in oe-core.

So remove implement of PACKAGECONFIG audit from enable-audit.bbclass.

Signed-off-by: Kai Kang &lt;kai.kang@windriver.com&gt;
Signed-off-by: Joe MacDonald &lt;joe_macdonald@mentor.com&gt;
</content>
</entry>
</feed>
