All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mikko Rapeli <mikko.rapeli@linaro.org>
To: Jon Mason <jdmason@kudzu.us>
Cc: meta-arm@lists.yoctoproject.org, tom.hochstein@nxp.com,
	sahil.malhotra@nxp.com
Subject: Re: [PATCH v2] optee-client: use udev rule and systemd service from upstream
Date: Thu, 17 Oct 2024 09:10:16 +0300	[thread overview]
Message-ID: <ZxCqSAU0NpVmeTdD@nuoska> (raw)
In-Reply-To: <Zw_95caMCjfsPsEd@kudzu.us>

Hi,

On Wed, Oct 16, 2024 at 01:54:45PM -0400, Jon Mason wrote:
> On Tue, Oct 15, 2024 at 04:35:12PM +0300, Mikko Rapeli wrote:
> > Use backported upstream patch for udev rule and systemd service file.
> > sysvinit script is still used from meta-arm. Don't install systemd
> > service without systemd distro feature, other way round for
> > sysvinit script.
> > 
> > tee-supplicant started by systemd service runs as non-root teesuppl
> > user with teepriv group. sysvinit still runs as root since busybox
> > start-stop-daemon doesn't support -g group parameter and -u teesuppl
> > doesn't seem to change the effective user.
> > 
> > udev rules allow non-root /dev/tee* access from tee and
> > /dev/teepriv* access from teepriv groups.
> > 
> > Tested sysvinit changes with:
> > 
> > $ kas build ci/qemuarm64-secureboot.yml:ci/poky.yml:ci/testimage.yml
> > 
> > and systemd changes with:
> > 
> > $ kas build ci/qemuarm64-secureboot.yml:ci/poky.yml:ci/testimage.yml:ci/uefi-secureboot.yml
> 
> While this testcase works, the following does not:
> $ kas build ci/qemuarm64-secureboot.yml:ci/qemuarm64-secureboot-ts.yml:ci/uefi-secureboot.yml:ci/testimage.yml
> 
> https://gitlab.com/jonmason00/meta-arm/-/jobs/8091040284

Sorry, I missed this configuration and the additional tee udev rule in
meta-arm/recipes-security/trusted-services/libts/tee-udev.rules
and group settings in meta-arm/recipes-security/trusted-services/libts_git.bb

Will send a v3 with fixes.

Cheers,

-Mikko


      reply	other threads:[~2024-10-17  6:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-15 13:35 [PATCH v2] optee-client: use udev rule and systemd service from upstream Mikko Rapeli
2024-10-16 17:54 ` Jon Mason
2024-10-17  6:10   ` Mikko Rapeli [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ZxCqSAU0NpVmeTdD@nuoska \
    --to=mikko.rapeli@linaro.org \
    --cc=jdmason@kudzu.us \
    --cc=meta-arm@lists.yoctoproject.org \
    --cc=sahil.malhotra@nxp.com \
    --cc=tom.hochstein@nxp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.