summaryrefslogtreecommitdiffstats
path: root/include/linux/audit.h
diff options
context:
space:
mode:
authorRichard Guy Briggs <rgb@redhat.com>2013-08-14 11:32:45 -0400
committerEric Paris <eparis@redhat.com>2014-01-13 22:26:52 -0500
commitf9441639e6319f0c0e12bd63fa2f58990af0a9d2 (patch)
tree3fc0c477d498240e517c471f76efa2deee81ce5d /include/linux/audit.h
parentca24a23ebca17d9d0f2afde4ee49cd810bccc8d7 (diff)
downloadblackbird-op-linux-f9441639e6319f0c0e12bd63fa2f58990af0a9d2.tar.gz
blackbird-op-linux-f9441639e6319f0c0e12bd63fa2f58990af0a9d2.zip
audit: fix netlink portid naming and types
Normally, netlink ports use the PID of the userspace process as the port ID. If the PID is already in use by a port, the kernel will allocate another port ID to avoid conflict. Re-name all references to netlink ports from pid to portid to reflect this reality and avoid confusion with actual PIDs. Ports use the __u32 type, so re-type all portids accordingly. (This patch is very similar to ebiederman's 5deadd69) Signed-off-by: Richard Guy Briggs <rgb@redhat.com> Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com> Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'include/linux/audit.h')
-rw-r--r--include/linux/audit.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/audit.h b/include/linux/audit.h
index c9a66c6f1307..9185bfa1c78b 100644
--- a/include/linux/audit.h
+++ b/include/linux/audit.h
@@ -461,7 +461,7 @@ extern int audit_update_lsm_rules(void);
/* Private API (for audit.c only) */
extern int audit_filter_user(int type);
extern int audit_filter_type(int type);
-extern int audit_receive_filter(int type, int pid, int seq,
+extern int audit_receive_filter(int type, __u32 portid, int seq,
void *data, size_t datasz);
extern int audit_enabled;
#else /* CONFIG_AUDIT */
OpenPOWER on IntegriCloud