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
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions recipes-graphics/wayland/weston-init.bbappend
Original file line number Diff line number Diff line change
Expand Up @@ -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?

# imx-pxp-g2d needs root access to some devices
if [ "${@bb.utils.contains('PACKAGECONFIG', 'use-g2d', 'yes', 'no', d)}" = "yes" ]; then
sed -i -e "s/User=weston/User=root/g" ${D}${systemd_system_unitdir}/weston.service
fi
}