X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Futils.c;h=b16cdc97c2738ad70c23624fc91295c3317b1a66;hb=b34cbebfc8e60a678782bcffdf4ff8fc12de037e;hp=9f3a8f942b1176867fc7e0d55253cbae321f6130;hpb=fe4477ee14abb348ce9e167f8b4c09312d67de36;p=lttng-tools.git diff --git a/src/common/utils.c b/src/common/utils.c index 9f3a8f942..b16cdc97c 100644 --- a/src/common/utils.c +++ b/src/common/utils.c @@ -340,8 +340,9 @@ int utils_create_stream_file(char *path_name, char *file_name, uint64_t size, path = full_path; } + /* Open with 660 mode */ out_fd = run_as_open(path, O_WRONLY | O_CREAT | O_TRUNC, - S_IRWXU | S_IRWXG | S_IRWXO, uid, gid); + S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP, uid, gid); if (out_fd < 0) { PERROR("open stream path %s", path); goto error_open;