<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/meta-selinux.git/recipes-security, branch master-next</title>
<subtitle>Mirror of git.yoctoproject.org/meta-selinux.git</subtitle>
<id>https://git.enea.com/cgit/linux/meta-selinux.git/atom?h=master-next</id>
<link rel='self' href='https://git.enea.com/cgit/linux/meta-selinux.git/atom?h=master-next'/>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-selinux.git/'/>
<updated>2019-04-15T16:57:51+00:00</updated>
<entry>
<title>libselinux.inc: Add python-shell to libselinux-python RDEPENDS.</title>
<updated>2019-04-15T16:57:51+00:00</updated>
<author>
<name>Chris PeBenito</name>
<email>Christopher.PeBenito@microsoft.com</email>
</author>
<published>2019-03-27T19:53:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-selinux.git/commit/?id=efdb09e842a104a2c6dbdb5182c86a4aab4cce9a'/>
<id>urn:sha1:efdb09e842a104a2c6dbdb5182c86a4aab4cce9a</id>
<content type='text'>
The libselinux SWIG wrapper imports shutil.

Signed-off-by: Chris PeBenito &lt;Christopher.PeBenito@microsoft.com&gt;
Signed-off-by: Joe MacDonald &lt;joe@deserted.net&gt;
</content>
</entry>
<entry>
<title>audit: change to use ${WORKDIR} instead ${S}/../</title>
<updated>2019-04-15T13:02:21+00:00</updated>
<author>
<name>Chen Qi</name>
<email>Qi.Chen@windriver.com</email>
</author>
<published>2019-04-15T03:16:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-selinux.git/commit/?id=e0105eed2b2461bf08b7aaf71db12dfae6ca51e3'/>
<id>urn:sha1:e0105eed2b2461bf08b7aaf71db12dfae6ca51e3</id>
<content type='text'>
The do_install function is assuming that ${S}/../ is ${WORKDIR},
but this is not true when using `devtool modify audit'.

So change to use ${WORKDIR}.

Signed-off-by: Chen Qi &lt;Qi.Chen@windriver.com&gt;
Signed-off-by: Joe MacDonald &lt;joe@deserted.net&gt;
</content>
</entry>
<entry>
<title>setools: fix build failure with gcc 7</title>
<updated>2019-04-14T21:29:57+00:00</updated>
<author>
<name>Kai Kang</name>
<email>kai.kang@windriver.com</email>
</author>
<published>2019-04-10T05:56:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-selinux.git/commit/?id=c0186953ac0396d415477b2c709decded5df4e32'/>
<id>urn:sha1:c0186953ac0396d415477b2c709decded5df4e32</id>
<content type='text'>
Backport patch from setools upstream to fix build failure with GCC 7 due
to possible truncation of snprintf output. It could be reproduced on 64
bit bsps such as qemux86-64 and qemumips64 with configs:

  SELECTED_OPTIMIZATION = "${DEBUG_OPTIMIZATION}"
  DEBUG_BUILD = "1"

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: remove git version</title>
<updated>2019-04-14T21:20:56+00:00</updated>
<author>
<name>Yi Zhao</name>
<email>yi.zhao@windriver.com</email>
</author>
<published>2019-04-02T00:54:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-selinux.git/commit/?id=144f949452493f6db2b1b9fd6a17c7074cfd8d59'/>
<id>urn:sha1:144f949452493f6db2b1b9fd6a17c7074cfd8d59</id>
<content type='text'>
The git version of libselinux libsemanage libsepol checkpolicy and
policycoreutils are far behind the master branch and now they can not
build due to the do_patch error. The current stable 2.8 version works
well so we can remove them.

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>packagegroup-selinux-minimal: add selinux-init</title>
<updated>2019-04-14T21:14:54+00:00</updated>
<author>
<name>Luca Boccassi</name>
<email>bluca@debian.org</email>
</author>
<published>2019-02-19T11:57:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-selinux.git/commit/?id=d00cb4413c3af04a5f04c5398372c832a541a460'/>
<id>urn:sha1:d00cb4413c3af04a5f04c5398372c832a541a460</id>
<content type='text'>
When trying to build a minimal image (eg: without python), the default
user on autologin is not mapped to the intended user/role/domain:

  # id -Z
  system_u:system_r:kernel_t:s0

And the following error is displayed on autologin:

  Unable to get valid context for &lt;user&gt;

While on an image built with the core-selinux packagegroup:

  # id -Z
  unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023

Adding selinux-init to the minimal package list fixes the issue.
This package does not seem to bring along additional dependencies.

Signed-off-by: Luca Boccassi &lt;bluca@debian.org&gt;
Signed-off-by: Joe MacDonald &lt;joe@deserted.net&gt;
</content>
</entry>
<entry>
<title>core-image-selinux.bb: remove trailing whitespace</title>
<updated>2019-04-14T21:07:16+00:00</updated>
<author>
<name>Yi Zhao</name>
<email>yi.zhao@windriver.com</email>
</author>
<published>2019-01-18T00:23:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-selinux.git/commit/?id=28d8039fa60b240dbd7e009107edac463d3b3c0e'/>
<id>urn:sha1:28d8039fa60b240dbd7e009107edac463d3b3c0e</id>
<content type='text'>
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: update to 2.20190201 and git HEAD policies</title>
<updated>2019-04-12T19:28:38+00:00</updated>
<author>
<name>Joe MacDonald</name>
<email>joe@deserted.net</email>
</author>
<published>2019-04-08T17:50:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-selinux.git/commit/?id=d6686698444616b9857a15bb514400f8a629e7ed'/>
<id>urn:sha1:d6686698444616b9857a15bb514400f8a629e7ed</id>
<content type='text'>
Additionally, the README has fallen out of date, update it to reflect the
current reality of layer dependencies.

Signed-off-by: Joe MacDonald &lt;joe@deserted.net&gt;
</content>
</entry>
<entry>
<title>Backport patches from upstream to fix build with musl</title>
<updated>2019-03-25T08:43:53+00:00</updated>
<author>
<name>Luca Boccassi</name>
<email>luca.boccassi@microsoft.com</email>
</author>
<published>2019-02-28T13:49:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-selinux.git/commit/?id=a6a3cadb1ef3203a123d8f5f9df27832f55b2ce3'/>
<id>urn:sha1:a6a3cadb1ef3203a123d8f5f9df27832f55b2ce3</id>
<content type='text'>
Audit 2.8.4 fails to build with musl. The fixes have been committed
to the upstream master branch and can be backported.
Building with glibc is unaffected.

Signed-off-by: Luca Boccassi &lt;luca.boccassi@microsoft.com&gt;
Signed-off-by: Joe MacDonald &lt;joe@deserted.net&gt;
</content>
</entry>
<entry>
<title>refpolicy: fix up all refpolicy 20170224 builds for current master</title>
<updated>2018-10-30T12:05:29+00:00</updated>
<author>
<name>Joe MacDonald</name>
<email>joe@deserted.net</email>
</author>
<published>2018-10-25T08:57:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-selinux.git/commit/?id=394ab36a6dcaadc900de509a03716eaa829b7823'/>
<id>urn:sha1:394ab36a6dcaadc900de509a03716eaa829b7823</id>
<content type='text'>
Signed-off-by: Joe MacDonald &lt;joe@deserted.net&gt;
</content>
</entry>
<entry>
<title>refpolicy_git.inc: lock SRCREVs on the actual version hashes</title>
<updated>2018-10-23T12:18:05+00:00</updated>
<author>
<name>Awais Belal</name>
<email>awais_belal@mentor.com</email>
</author>
<published>2018-10-05T06:34:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-selinux.git/commit/?id=62f6931c006c64ee8b726ce5f773828b44350c58'/>
<id>urn:sha1:62f6931c006c64ee8b726ce5f773828b44350c58</id>
<content type='text'>
Using AUTOREV in the main repository has its downsides.
1. The checked out version isn't actually the version depicted
   by PV.
2. Breaks builds in scenarios where network isn't available
   or BB_NO_NETWORK is used even after sources are already
   fetched.

1 is self explanatory, for 2 whenever SRCREV is set to AUTOREV and
SRCPV is used in PV the fetcher tries to access the network in order
to determine SRCPV (bb.fetch2.get_srcrev) and fails for obvious
reasons during parsing even when versioned recipes are used as
PREFERRED_VERSION because parsing still happens for recipes that are
in BB's search paths and we see.
Traceback (most recent call last):
bb.data_smart.ExpansionError: Failure expanding variable SRCPV, expression was ${@bb.fetch2.get_srcrev(d)} which triggered exception NetworkAccess: Network access disabled through BB_NO_NETWORK (or set indirectly due to use of BB_FETCH_PREMIRRORONLY) but access requested with command git -c core.fsyncobjectfiles=0 ls-remote git://github.com/TresysTechnology/refpolicy.git  (for url git://github.com/TresysTechnology/refpolicy.git)

So we lock the REVs and do that with a soft assignment which
allows overriding the REVs from elsewhere.

Signed-off-by: Awais Belal &lt;awais_belal@mentor.com&gt;
Signed-off-by: Joe MacDonald &lt;joe@deserted.net&gt;
</content>
</entry>
</feed>
