Routing Policy Database Rule 0
Subsystems (2)
Hi,
We recently found a bug in our code which resulted in rule 0 in the routing policy database being deleted, this is a bad thing and the man page documentation for "ip rule" indicates
Rule 0 is special. It cannot be deleted or overridden.
which seems entirely reasonable. The code in net/core/fib_rules.c does not seem to protect against deletion of this rule and I was wondering if there is a reason for this. If not I will submit a patch to address it.
Simply running "ip rule del" shows the issue .
Regards,
Richard Laing
Signature · 9 lines
*Richard Laing* Software Team Leader* Allied Telesis Labs*| 27 Nazareth Ave | Christchurch 8024 | New Zealand Phone: +64 3 3393000 | DDI: +64 3 339 9248 | Web: *alliedtelesis.com <http://alliedtelesis.com/>*<skype:andrewriddell3?chat> http://productselector.alliedtelesis.eu/ <http://productselector.alliedtelesis.eu/>
Quoted 11 lines · Richard Laing
Hi,
We recently found a bug in our code which resulted in rule 0 in the routing policy database being deleted, this is a bad thing and the man page documentation for "ip rule" indicates
Rule 0 is special. It cannot be deleted or overridden.
which seems entirely reasonable. The code in
net/core/fib_rules.cdoes not seem to protect against deletion of this rule and I was wondering if there is a reason for this. If not I will submit a patch to address it.
This behaviour was changed in commit 5adef1809
("net: fib_rules: allow to delete local rule") so it seems the manual page is outdated. Feel free to send a patch.
Quoted 1 line
Simply running "ip rule del" shows the issue .
This however looks like a bug.