mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-30 13:58:22 +00:00
Add extra transition table labeling to help with interpretation of the
dump output.
This commit is contained in:
@@ -2198,7 +2198,7 @@ void TransitionTable::dump(ostream& os)
|
|||||||
st.insert(make_pair(i->second, i->first));
|
st.insert(make_pair(i->second, i->first));
|
||||||
}
|
}
|
||||||
|
|
||||||
os << "(accept, default, base):" << endl;
|
os << "size=" << default_base.size() << " (accept, default, base): {state} -> {default state}" << endl;
|
||||||
for (size_t i = 0; i < default_base.size(); i++) {
|
for (size_t i = 0; i < default_base.size(); i++) {
|
||||||
os << i << ": ";
|
os << i << ": ";
|
||||||
os << "(" << accept[i] << ", "
|
os << "(" << accept[i] << ", "
|
||||||
@@ -2211,7 +2211,7 @@ void TransitionTable::dump(ostream& os)
|
|||||||
os << endl;
|
os << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
os << "(next, check):" << endl;
|
os << "size=" << next_check.size() << " (next, check): {check state} -> {next state} : offset from base" << endl;
|
||||||
for (size_t i = 0; i < next_check.size(); i++) {
|
for (size_t i = 0; i < next_check.size(); i++) {
|
||||||
if (!next_check[i].second)
|
if (!next_check[i].second)
|
||||||
continue;
|
continue;
|
||||||
|
Reference in New Issue
Block a user