/*1* NetLabel NETLINK Interface2*3* This file defines the NETLINK interface for the NetLabel system. The4* NetLabel system manages static and dynamic label mappings for network5* protocols such as CIPSO and RIPSO.6*7* Author: Paul Moore <[email protected]>8*9*/1011/*12* (c) Copyright Hewlett-Packard Development Company, L.P., 200613*14* This program is free software; you can redistribute it and/or modify15* it under the terms of the GNU General Public License as published by16* the Free Software Foundation; either version 2 of the License, or17* (at your option) any later version.18*19* This program is distributed in the hope that it will be useful,20* but WITHOUT ANY WARRANTY; without even the implied warranty of21* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See22* the GNU General Public License for more details.23*24* You should have received a copy of the GNU General Public License25* along with this program; if not, write to the Free Software26* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA27*28*/2930#ifndef _NETLABEL_USER_H31#define _NETLABEL_USER_H3233#include <linux/types.h>34#include <linux/skbuff.h>35#include <linux/capability.h>36#include <linux/audit.h>37#include <net/netlink.h>38#include <net/genetlink.h>39#include <net/netlabel.h>4041/* NetLabel NETLINK helper functions */4243/**44* netlbl_netlink_auditinfo - Fetch the audit information from a NETLINK msg45* @skb: the packet46* @audit_info: NetLabel audit information47*/48static inline void netlbl_netlink_auditinfo(struct sk_buff *skb,49struct netlbl_audit *audit_info)50{51security_task_getsecid(current, &audit_info->secid);52audit_info->loginuid = audit_get_loginuid(current);53audit_info->sessionid = audit_get_sessionid(current);54}5556/* NetLabel NETLINK I/O functions */5758int netlbl_netlink_init(void);5960/* NetLabel Audit Functions */6162struct audit_buffer *netlbl_audit_start_common(int type,63struct netlbl_audit *audit_info);6465#endif666768