<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/meta-selinux.git/classes, branch mickledore</title>
<subtitle>Mirror of git.yoctoproject.org/meta-selinux.git</subtitle>
<id>https://git.enea.com/cgit/linux/meta-selinux.git/atom?h=mickledore</id>
<link rel='self' href='https://git.enea.com/cgit/linux/meta-selinux.git/atom?h=mickledore'/>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-selinux.git/'/>
<updated>2021-08-30T01:34:22+00:00</updated>
<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>
<entry>
<title>selinux-image: enable image labelling</title>
<updated>2017-05-03T01:21:44+00:00</updated>
<author>
<name>Joe MacDonald</name>
<email>joe_macdonald@mentor.com</email>
</author>
<published>2017-05-03T01:17:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-selinux.git/commit/?id=849cd74b5ff3c915356ae7411746194728594212'/>
<id>urn:sha1:849cd74b5ff3c915356ae7411746194728594212</id>
<content type='text'>
selinux images attempt to label the filesystem image at creation time.
This depends on a native setfiles, though, which isn't guaranteed to be
present without the DEPEND addition.

If the 'setfiles' call fails, that shouldn't be fatal, though, it can
always be run at first boot time, as is commonly done with desktop and
server distros.

Signed-off-by: Joe MacDonald &lt;joe_macdonald@mentor.com&gt;
</content>
</entry>
<entry>
<title>selinux-image: Fix RE error getting POL_TYPE</title>
<updated>2015-11-27T14:18:14+00:00</updated>
<author>
<name>George McCollister</name>
<email>george.mccollister@gmail.com</email>
</author>
<published>2015-11-05T16:56:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-selinux.git/commit/?id=d3efe540851c37de277e864e436dcfc0ae9465c5'/>
<id>urn:sha1:d3efe540851c37de277e864e436dcfc0ae9465c5</id>
<content type='text'>
Change [:space:] to [[:space:]]. [:space:] is incorrect and is treated
as a list of characters. Prior to this change having a policy of
'standard' resulted in POL_TYPE being set to 'tandard'.

Change the regular expression to match from the beginning of the line
since correcting the [:space:] error causes the '# SELINUXTYPE= can
take one of these values:' line to match.

Signed-off-by: George McCollister &lt;george.mccollister@gmail.com&gt;
Signed-off-by: Joe MacDonald &lt;joe_macdonald@mentor.com&gt;
</content>
</entry>
</feed>
