[alsa-devel] [PATCH] topology: fix file permissions for output file to 0600
Liam Girdwood
liam.r.girdwood at linux.intel.com
Tue Aug 11 15:25:59 CEST 2015
File was incorrectly world rwx.
Signed-off-by: Liam Girdwood <liam.r.girdwood at linux.intel.com>
---
src/topology/parser.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/topology/parser.c b/src/topology/parser.c
index 5544517..993f70d 100644
--- a/src/topology/parser.c
+++ b/src/topology/parser.c
@@ -267,7 +267,7 @@ int snd_tplg_build_file(snd_tplg_t *tplg, const char *infile,
int err = 0;
tplg->out_fd =
- open(outfile, O_RDWR | O_CREAT, S_IRWXU | S_IRWXG | S_IRWXO);
+ open(outfile, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
if (tplg->out_fd < 0) {
SNDERR("error: failed to open %s err %d\n",
outfile, -errno);
--
2.1.4
More information about the Alsa-devel
mailing list