History

netfilter: nfnetlink_queue: add security context information

This patch adds an additional attribute when sending packet information via netlink in netfilter_queue module. It will send additional security context data, so that userspace applications can verify this context against their own security databases.

Roman Kubiak committed 11 years ago

Commit ef493bd1 parent 89d256b2 files · +37 −2Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/linux/netfilter/nfnetlink_queue.h+3−1
@@ -49,6 +49,7 @@ enum nfqnl_attr_type { · 48 unmodified lines
4949 NFQA_EXP, /* nf_conntrack_netlink.h */
5050 NFQA_UID, /* __u32 sk uid */
5151 NFQA_GID, /* __u32 sk gid */
52+ NFQA_SECCTX, /* security context string */
5253
5354 __NFQA_MAX
5455 };
@@ -102,7 +103,8 @@ enum nfqnl_attr_config { · 47 unmodified lines
102103 #define NFQA_CFG_F_CONNTRACK (1 << 1)
103104 #define NFQA_CFG_F_GSO (1 << 2)
104105 #define NFQA_CFG_F_UID_GID (1 << 3)
105−#define NFQA_CFG_F_MAX (1 << 4)
106+#define NFQA_CFG_F_SECCTX (1 << 4)
107+#define NFQA_CFG_F_MAX (1 << 5)
106108
107109 /* flags for NFQA_SKB_INFO */
108110 /* packet appears to have wrong checksums, but they are ok */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t