<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/poky.git/meta/recipes-core/volatile-binds, branch halstead/hashclient</title>
<subtitle>Mirror of git.yoctoproject.org/poky</subtitle>
<id>https://git.enea.com/cgit/linux/poky.git/atom?h=halstead%2Fhashclient</id>
<link rel='self' href='https://git.enea.com/cgit/linux/poky.git/atom?h=halstead%2Fhashclient'/>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/'/>
<updated>2023-10-30T08:50:46+00:00</updated>
<entry>
<title>volatile-binds: Calculate the name of the /var/lib service</title>
<updated>2023-10-30T08:50:46+00:00</updated>
<author>
<name>Stéphane Veyret</name>
<email>sveyret@gmail.com</email>
</author>
<published>2023-08-28T17:52:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=494a25d861d72c662c25cfee3a388ead71992bdf'/>
<id>urn:sha1:494a25d861d72c662c25cfee3a388ead71992bdf</id>
<content type='text'>
By default, /var/lib is bind mounted on /var/volatile/lib. If this is
the case, the recipe adds conditions on systemd-random-seed in the
service file mounting it. But as the VOLATILE_BINDS may be modified,
/var/lib may be mounted elsewhere, for example in /persistent/var/lib.
In this case, the conditions are not set because the service file name
does not match expected one.
This patch automatically records the name of the service mounting
/var/lib, if any, in order to set the condition in the appropriate file.

(From OE-Core rev: 66f0c2a1678cb69cf8d50372b0592c55e2dc3e3c)

Signed-off-by: Stéphane Veyret &lt;sveyret@gmail.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>volatile-binds: Allow creation of subdirectories</title>
<updated>2023-10-30T08:50:46+00:00</updated>
<author>
<name>Stéphane Veyret</name>
<email>sveyret@gmail.com</email>
</author>
<published>2023-08-27T16:41:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=d6134c9f97d9ac062471a870c70a3f1d1f3a5959'/>
<id>urn:sha1:d6134c9f97d9ac062471a870c70a3f1d1f3a5959</id>
<content type='text'>
The mount-copybind script will create the parent directory of the bind
mount if it does not exist. But actually, if this is the case, the
service will not even start because of the ConditionPathIsReadWrite.
This patch adds a "or" condition to allow the service to start also if
the parent directory of the bind mount does not exist.

(From OE-Core rev: 1ca031b77546056ca1994469b0f2e93ea2018edf)

Signed-off-by: Stéphane Veyret &lt;sveyret@gmail.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>volatile-binds: Remove TimeoutSec and allow DefaultTimeoutSec to be used</title>
<updated>2022-04-30T21:00:20+00:00</updated>
<author>
<name>Portia</name>
<email>stephensportia@gmail.com</email>
</author>
<published>2022-04-29T07:34:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=9e556960421c8bbe8851d9810352a5b4bd3b50df'/>
<id>urn:sha1:9e556960421c8bbe8851d9810352a5b4bd3b50df</id>
<content type='text'>
Remove setting TimeoutSec and allow the DefaultTimeSec to be set for the
volatile-binds services.

(From OE-Core rev: 86aea324e423ce5f411a21afa18356339e3545a8)

Signed-off-by: Portia Stephens &lt;stephensportia@gmail.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>volatile-binds: Change DefaultDependencies from false to no</title>
<updated>2022-04-30T21:00:20+00:00</updated>
<author>
<name>Portia</name>
<email>stephensportia@gmail.com</email>
</author>
<published>2022-04-29T07:34:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=892b126ef4dcbe28f3fb9e648f19adf2612b349c'/>
<id>urn:sha1:892b126ef4dcbe28f3fb9e648f19adf2612b349c</id>
<content type='text'>
The systemd-unit parameter DefaultDependencies changed from true/false
to yes/no. This changed in systemd in v242.

(From OE-Core rev: add4dcb03dc7b034253db05f0023cb97cab8b26d)

Signed-off-by: Portia Stephens &lt;stephensportia@gmail.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>volatile-binds: add recipe variable to allow disabling OverlayFS</title>
<updated>2022-03-29T14:59:29+00:00</updated>
<author>
<name>Luca Boccassi</name>
<email>luca.boccassi@microsoft.com</email>
</author>
<published>2022-03-28T15:26:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=259c30621f8b2072fc4878c210d2ddadbdea91e1'/>
<id>urn:sha1:259c30621f8b2072fc4878c210d2ddadbdea91e1</id>
<content type='text'>
Use the new MOUNT_COPYBIND_AVOID_OVERLAYFS flag provided by mount-copybind.
When SELinux is enabled, processes accessing OverlayFS mounts will get a denial
if the process setting up the mount doesn't have all the permissions that
the accessor has.

(From OE-Core rev: 6002bdc77643c363a8326bf163baecba8b36e3e0)

Signed-off-by: Luca Boccassi &lt;luca.boccassi@microsoft.com&gt;
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@bootlin.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>mount-copybind: add MOUNT_COPYBIND_AVOID_OVERLAYFS env var to skip OverlayFS</title>
<updated>2022-03-26T09:33:32+00:00</updated>
<author>
<name>Luca Boccassi</name>
<email>luca.boccassi@microsoft.com</email>
</author>
<published>2022-03-25T18:40:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=52cad1fe64c413290c3679f977292ca3b3c30d29'/>
<id>urn:sha1:52cad1fe64c413290c3679f977292ca3b3c30d29</id>
<content type='text'>
In some cases we don't want to even attempt to set up OverlayFS, for
example because SELinux in enforcing mode would kill the process
attempting to use the mount. See:

https://lore.kernel.org/all/CA+FmFJBDwt52Z-dVGfuUcnRMiMtGPhK4cCQJ=J_fg0r3x-b6ng@mail.gmail.com/T/#mef98aa406324096d1889d3d467251f30456f403c

If MOUNT_COPYBIND_AVOID_OVERLAYFS=1 is set, skip directly to copy and
bind mount.

(From OE-Core rev: a8e7dca69054798b1c9843a0de889cef3e261c4f)

Signed-off-by: Luca Boccassi &lt;luca.boccassi@microsoft.com&gt;
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@bootlin.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>mount-copybind: fix shellcheck warning</title>
<updated>2022-03-26T09:33:32+00:00</updated>
<author>
<name>Luca Boccassi</name>
<email>bluca@debian.org</email>
</author>
<published>2022-03-25T18:40:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=23ef8946410d539d85fcbdaf818ce01e4a658716'/>
<id>urn:sha1:23ef8946410d539d85fcbdaf818ce01e4a658716</id>
<content type='text'>
$ shellcheck meta/recipes-core/volatile-binds/files/mount-copybind

In meta/recipes-core/volatile-binds/files/mount-copybind line 54:
            mountcontext=",rootcontext=$(matchpathcon -n $mountpoint)"
                                                         ^---------^ SC2086: Double quote to prevent globbing and word splitting.

Did you mean:
            mountcontext=",rootcontext=$(matchpathcon -n "$mountpoint")"

For more information:
  https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ...

(From OE-Core rev: 56c7962a6c31acfe0e118f713954aeafd7e2d9c0)

Signed-off-by: Luca Boccassi &lt;luca.boccassi@microsoft.com&gt;
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@bootlin.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>mount-copybind: add rootcontext mountoption for overlayfs</title>
<updated>2021-10-11T17:41:38+00:00</updated>
<author>
<name>Maximilian Blenk</name>
<email>Maximilian.Blenk@bmw.de</email>
</author>
<published>2021-09-09T08:05:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=e325390b91da7d3b43e78ad840a9fe5cd14a9ab7'/>
<id>urn:sha1:e325390b91da7d3b43e78ad840a9fe5cd14a9ab7</id>
<content type='text'>
If selinux is enabled, the context of the mountpoint for overlayfs
needs to be specified manually via the rootcontext option. To this
end, the required context is determined using matchpathcon(1) and
passed via the rootcontext mount option.

Additionally, if the mount source directory is created by mount-copybind
it also needs to take care that the context of the directory is correct

(From OE-Core rev: 57f51e8c73ab9f55f20815a9459c3afad2b281e6)

Signed-off-by: Tobias Kaufmann &lt;Tobias.KA.Kaufmann@bmw.de&gt;
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@bootlin.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>mount-copybind: add SELinux support</title>
<updated>2021-10-11T17:41:38+00:00</updated>
<author>
<name>Tobias Kaufmann</name>
<email>Tobias.KA.Kaufmann@bmw.de</email>
</author>
<published>2021-09-09T08:05:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=e1d658ef1153ecb16acda19e3f6fe2edea7cf4e4'/>
<id>urn:sha1:e1d658ef1153ecb16acda19e3f6fe2edea7cf4e4</id>
<content type='text'>
bind mounts don't use the SELinux label of the target, but the SELinux
label of the source.

This patch restores the SELinux context of the bind mount recursively using
restorecon.

(From OE-Core rev: 6f3e231dc9bc11772573bf9683de9804460362d1)

Signed-off-by: Tobias Kaufmann &lt;Tobias.KA.Kaufmann@bmw.de&gt;
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@bootlin.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>systemd: '${systemd_unitdir}/system' =&gt; '${systemd_system_unitdir}'</title>
<updated>2021-09-07T20:54:11+00:00</updated>
<author>
<name>Robert P. J. Day</name>
<email>rpjday@crashcourse.ca</email>
</author>
<published>2021-08-26T09:42:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=abeb2e95c6e5b286283dfe7198d5a222f7139458'/>
<id>urn:sha1:abeb2e95c6e5b286283dfe7198d5a222f7139458</id>
<content type='text'>
Repo-wide replacement to use newer variable to represent systemd
system unitdir directory.

(From OE-Core rev: 5ace3ada5c54500c71becc8e0c6eddeb8bc053e3)

Signed-off-by: Robert P. J. Day &lt;rpjday@crashcourse.ca&gt;
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@bootlin.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
</feed>
