Q6voiced seems to have permission issue with nobody user
Describe your issue
What's the expected behaviour?
Call audio work fine as usual.
What's the current behaviour?
Call audio doesn't work.
How to reproduce your issue?
Install latest edge channel in Poco F1 and check if call audio works.
What device are you using?
xiaomi-beryllium
On what postmarketOS version did you encounter the issue?
-
edge ( master
branch) -
v22.06
-
I confirm that the issue still is present after running sudo apk upgrade -a
On what environment did you encounter the issue?
Environments
-
Phosh -
Plasma Mobile -
Sxmo (Wayland/Sway) Please post the output of sxmo_version.sh
-
Other: Please fill out
How did you get postmarketOS image?
-
from https://images.postmarketos.org -
I built it using pmbootstrap -
It was preinstalled on my device
What's the build date of the image? (in yyyy-mm-dd format)
Additional information
It appears q6voiced is not able to open pcm port as nobody
user like it used to before.
I switched to nobody
user and tried running it manually (based on this approach: https://unix.stackexchange.com/a/256388)
Here is the output:
/home/joel # su -s /bin/sh nobody
/home/joel $ /usr/bin/q6voiced hw:0,6
Failed to open tx: Permission denied
Failed to open rx: Permission denied
PCM devices were opened.
PCM devices were closed.
But if I edit the /etc/init.d/q6voiced
and comment/remove the supervise_daemon_args="--user nobody --group audio"
line, then the service works fine although its run as root user now.
It also works if I run it manually in terminal. (Runs as the logged in user)
I am not sure what changed recently that made nobody
permission go wrong. And I m also not sure if running it that way is the right way to test it. Let me know if this can be tested in better ways.