Commit 7e9be11
netfilter: nf_tables: Audit log setelem reset
Since set element reset is not integrated into nf_tables' transaction
logic, an explicit log call is needed, similar to NFT_MSG_GETOBJ_RESET
handling.
For the sake of simplicity, catchall element reset will always generate
a dedicated log entry. This relieves nf_tables_dump_set() from having to
adjust the logged element count depending on whether a catchall element
was found or not.
Fixes: 079cd63 ("netfilter: nf_tables: Introduce NFT_MSG_GETSETELEM_RESET")
Signed-off-by: Phil Sutter <[email protected]>
Reviewed-by: Richard Guy Briggs <[email protected]>
Signed-off-by: Pablo Neira Ayuso <[email protected]>1 parent 69c5d28 commit 7e9be11
File tree
3 files changed
+30
-3
lines changed- include/linux
- kernel
- net/netfilter
3 files changed
+30
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| 120 | + | |
120 | 121 | | |
121 | 122 | | |
122 | 123 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| 146 | + | |
146 | 147 | | |
147 | 148 | | |
148 | 149 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| 105 | + | |
105 | 106 | | |
106 | 107 | | |
107 | 108 | | |
| |||
5624 | 5625 | | |
5625 | 5626 | | |
5626 | 5627 | | |
| 5628 | + | |
| 5629 | + | |
| 5630 | + | |
| 5631 | + | |
| 5632 | + | |
| 5633 | + | |
| 5634 | + | |
| 5635 | + | |
| 5636 | + | |
| 5637 | + | |
| 5638 | + | |
5627 | 5639 | | |
5628 | 5640 | | |
5629 | 5641 | | |
5630 | 5642 | | |
5631 | 5643 | | |
5632 | 5644 | | |
5633 | | - | |
| 5645 | + | |
| 5646 | + | |
5634 | 5647 | | |
5635 | 5648 | | |
5636 | 5649 | | |
| |||
5646 | 5659 | | |
5647 | 5660 | | |
5648 | 5661 | | |
| 5662 | + | |
| 5663 | + | |
5649 | 5664 | | |
5650 | 5665 | | |
5651 | 5666 | | |
| |||
5725 | 5740 | | |
5726 | 5741 | | |
5727 | 5742 | | |
5728 | | - | |
| 5743 | + | |
| 5744 | + | |
5729 | 5745 | | |
5730 | 5746 | | |
5731 | 5747 | | |
5732 | 5748 | | |
5733 | 5749 | | |
| 5750 | + | |
| 5751 | + | |
| 5752 | + | |
| 5753 | + | |
5734 | 5754 | | |
5735 | 5755 | | |
5736 | 5756 | | |
| |||
5955 | 5975 | | |
5956 | 5976 | | |
5957 | 5977 | | |
| 5978 | + | |
5958 | 5979 | | |
5959 | 5980 | | |
5960 | 5981 | | |
5961 | 5982 | | |
5962 | 5983 | | |
5963 | 5984 | | |
5964 | | - | |
5965 | 5985 | | |
5966 | 5986 | | |
5967 | 5987 | | |
| |||
6004 | 6024 | | |
6005 | 6025 | | |
6006 | 6026 | | |
| 6027 | + | |
6007 | 6028 | | |
6008 | 6029 | | |
| 6030 | + | |
| 6031 | + | |
| 6032 | + | |
| 6033 | + | |
6009 | 6034 | | |
6010 | 6035 | | |
6011 | 6036 | | |
| |||
0 commit comments