- /* Opening the tracefile in write mode */
- if (stream->net_seq_idx == (uint64_t) -1ULL) {
- ret = run_as_open(full_path, O_WRONLY | O_CREAT | O_TRUNC,
- S_IRWXU|S_IRWXG|S_IRWXO, stream->uid, stream->gid);
- if (ret < 0) {
- PERROR("open kernel stream path %s", full_path);
- goto error;
- }
- stream->out_fd = ret;
- }
-