Skip to content

Commit f82d255

Browse files
committed
comment out call to problematic variable
Some versions of libapparmor do not include the 'class' field for the 'aa_log_record' struct. If the user has that old library installed, then this line of code would cause a compiler issue. It caused a compiler error with some openSUSE distributions
1 parent 9b2ddfb commit f82d255

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/threads/log_record.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,6 @@ std::list<std::pair<std::string, std::string>> LogRecord::get_metadata() const
120120
attempt_emplace_pair(metadata, "File System Type", record_data->fs_type);
121121
attempt_emplace_pair(metadata, "Flags", record_data->flags);
122122
attempt_emplace_pair(metadata, "Source Name", record_data->src_name);
123-
attempt_emplace_pair(metadata, "Class", record_data->class_variable);
123+
// attempt_emplace_pair(metadata, "Class", record_data->class_variable);
124124
return metadata;
125125
}

0 commit comments

Comments
 (0)