Skip to content

Commit 1eb7c67

Browse files
committed
kpwn_db: switch netfilter related structures to optional in config.py
1 parent 349d180 commit 1eb7c67

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

kpwn_db/converter/config.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717

1818
# nm: D - initialized data section, global
1919
SYM_STRUCT | 0x01: "init_nsproxy",
20-
SYM_STRUCT | 0x02: "nft_last_type",
20+
SYM_STRUCT | 0x02: "nft_last_type?",
2121

2222
# nm: d - initialized data section, local
2323
SYM_OPS | 0x01: "anon_pipe_buf_ops",
2424
SYM_OPS | 0x02: "qfq_qdisc_ops",
25-
SYM_OPS | 0x03: "nft_last_ops"
25+
SYM_OPS | 0x03: "nft_last_ops?"
2626
}
2727

2828
rop_actions = {
@@ -47,8 +47,8 @@
4747
"Qdisc_ops": ["change"],
4848
"sock": ["sk_destruct", "sk_rcu.next"],
4949
"netlink_sock": ["sk.sk_destruct", "sk.sk_rcu.next", "sk.sk_rcu.func", "netlink_bind", "sk.sk_write_space"],
50-
"nft_expr_ops": ["dump", "type"],
51-
"nft_bitmap_elem": [],
52-
"nft_set_elem_expr": [],
53-
"nft_expr": ["ops"],
50+
"nft_expr_ops?": ["dump?", "type?"],
51+
"nft_bitmap_elem?": [],
52+
"nft_set_elem_expr?": [],
53+
"nft_expr?": ["ops?"],
5454
}

0 commit comments

Comments
 (0)