-
Notifications
You must be signed in to change notification settings - Fork 138
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
Permissions of alsatplg -o output are hardcoded to S_IRUSR | S_IWUSR (600) #126
Comments
Thank you for your report. It's fixed now in 8e71fba. The problem was in the original code in alsa-lib, too. Several Intel people touched the code and the result ends with this too restrictive permission settings. |
Thanks @perexg for the super quick fix.
|
Use a redirection to work around hardcoded alsatplg permissions. See bug alsa-project/alsa-utils#126 Signed-off-by: Marc Herbert <marc.herbert@intel.com>
Use a redirection to work around hardcoded alsatplg permissions. See bug alsa-project/alsa-utils#126 Signed-off-by: Marc Herbert <marc.herbert@intel.com>
From https://github.com/alsa-project/alsa-utils/blob/c8c348e28a258f17e3/topology/topology.c#L172
When using alsatplg in a build system (e.g.: https://github.com/thesofproject/sof/blob/3e1c160e5053eae/tools/topology/topology1/CMakeLists.txt#L243), all other artefacts follow the process's umask except alsatplg output. This causes subtle and time-consuming errors when trying to share artefacts across different processes.
git blame finds:
commit cbabe7a
Author: Jaroslav Kysela perex@perex.cz
Date: Thu Dec 19 15:36:05 2019 +0100
Before cbabe7a, opening the output file was delegated to library function
snd_tplg_build_file()
. Not sure what permissions were used then.Workaround:
alsatplg -c intput.conf -o - > output.tplg
The text was updated successfully, but these errors were encountered: