Commit 0d880dc
netfilter: nf_tables: Deduplicate nft_register_obj audit logs
When adding/updating an object, the transaction handler emits suitable
audit log entries already, the one in nft_obj_notify() is redundant. To
fix that (and retain the audit logging from objects' 'update' callback),
Introduce an "audit log free" variant for internal use.
Fixes: c520292 ("audit: log nftables configuration change events once per table")
Signed-off-by: Phil Sutter <[email protected]>
Reviewed-by: Richard Guy Briggs <[email protected]>
Acked-by: Paul Moore <[email protected]> (Audit)
Signed-off-by: Florian Westphal <[email protected]>1 parent 203bb9d commit 0d880dc
File tree
2 files changed
+48
-16
lines changed- net/netfilter
- tools/testing/selftests/netfilter
2 files changed
+48
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7871 | 7871 | | |
7872 | 7872 | | |
7873 | 7873 | | |
7874 | | - | |
7875 | | - | |
7876 | | - | |
| 7874 | + | |
| 7875 | + | |
| 7876 | + | |
| 7877 | + | |
7877 | 7878 | | |
7878 | 7879 | | |
7879 | 7880 | | |
7880 | 7881 | | |
7881 | | - | |
7882 | | - | |
7883 | | - | |
7884 | | - | |
7885 | | - | |
7886 | | - | |
7887 | | - | |
7888 | | - | |
7889 | | - | |
7890 | | - | |
7891 | | - | |
7892 | 7882 | | |
7893 | 7883 | | |
7894 | 7884 | | |
| |||
7911 | 7901 | | |
7912 | 7902 | | |
7913 | 7903 | | |
| 7904 | + | |
| 7905 | + | |
| 7906 | + | |
| 7907 | + | |
| 7908 | + | |
| 7909 | + | |
| 7910 | + | |
| 7911 | + | |
| 7912 | + | |
| 7913 | + | |
| 7914 | + | |
| 7915 | + | |
| 7916 | + | |
| 7917 | + | |
| 7918 | + | |
| 7919 | + | |
| 7920 | + | |
| 7921 | + | |
| 7922 | + | |
| 7923 | + | |
| 7924 | + | |
7914 | 7925 | | |
7915 | 7926 | | |
7916 | 7927 | | |
7917 | 7928 | | |
7918 | 7929 | | |
7919 | | - | |
7920 | | - | |
| 7930 | + | |
| 7931 | + | |
| 7932 | + | |
7921 | 7933 | | |
7922 | 7934 | | |
7923 | 7935 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
88 | 108 | | |
89 | 109 | | |
90 | 110 | | |
| |||
0 commit comments