From 46912f1c18e01b63660a56ea7d9c572741e06117 Mon Sep 17 00:00:00 2001 From: Roman Kubiak Date: Tue, 16 Jun 2015 18:14:47 +0200 Subject: src: add security context information This commit adds security context information structures and functions. This will allow userspace to find the security context of each packet (if it exists) and make decisions based on that. It should work for SELinux and SMACK. Signed-off-by: Roman Kubiak Signed-off-by: Pablo Neira Ayuso --- src/nlmsg.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/nlmsg.c') diff --git a/src/nlmsg.c b/src/nlmsg.c index aebdd5e..cabd8be 100644 --- a/src/nlmsg.c +++ b/src/nlmsg.c @@ -137,6 +137,7 @@ static int nfq_pkt_parse_attr_cb(const struct nlattr *attr, void *data) case NFQA_IFINDEX_PHYSOUTDEV: case NFQA_CAP_LEN: case NFQA_SKB_INFO: + case NFQA_SECCTX: case NFQA_UID: case NFQA_GID: if (mnl_attr_validate(attr, MNL_TYPE_U32) < 0) -- cgit v1.2.3