Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

weston-init: Launch as root for i.MX93 #2032

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tq-steina
Copy link
Contributor

imx-pxp-g2d needs root access to

  • /dev/pxp_device
  • /dev/dma_heap/linux,cma*

imx-pxp-g2d needs root access to
* /dev/pxp_device
* /dev/dma_heap/linux,cma*

Signed-off-by: Alexander Stein <[email protected]>
@@ -92,3 +92,10 @@ do_install:append() {
sed -i -e "s/^xwayland=true/#xwayland=true/g" ${D}${sysconfdir}/xdg/weston/weston.ini
fi
}

do_install:append:mx93-nxp-bsp() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be possible to adjust the permissions so we could avoid this process to run as root?

Copy link
Contributor Author

@tq-steina tq-steina Dec 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would agree for /dev/pxp_device but I have no idea if it is a good idea to lift the accesspermissions for /dev/dma_heap/linux,cma*
Another question is. Are these all paths?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@thochstein Is it possible for you to check internally what are the devices that we need to provide access?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants