netlabel_unlabeled.c (cd28786d6d4209ec32a375d92188ec7b4d98779f) netlabel_unlabeled.c (de64688ffb952a65ddbc5295ccd235d35f292593)
1/*
2 * NetLabel Unlabeled Support
3 *
4 * This file defines functions for dealing with unlabeled packets for the
5 * NetLabel system. The NetLabel system manages static and dynamic label
6 * mappings for network protocols such as CIPSO and RIPSO.
7 *
8 * Author: Paul Moore <paul.moore@hp.com>

--- 21 unchanged lines hidden (view full) ---

30
31#include <linux/types.h>
32#include <linux/rcupdate.h>
33#include <linux/list.h>
34#include <linux/spinlock.h>
35#include <linux/socket.h>
36#include <linux/string.h>
37#include <linux/skbuff.h>
1/*
2 * NetLabel Unlabeled Support
3 *
4 * This file defines functions for dealing with unlabeled packets for the
5 * NetLabel system. The NetLabel system manages static and dynamic label
6 * mappings for network protocols such as CIPSO and RIPSO.
7 *
8 * Author: Paul Moore <paul.moore@hp.com>

--- 21 unchanged lines hidden (view full) ---

30
31#include <linux/types.h>
32#include <linux/rcupdate.h>
33#include <linux/list.h>
34#include <linux/spinlock.h>
35#include <linux/socket.h>
36#include <linux/string.h>
37#include <linux/skbuff.h>
38#include <linux/audit.h>
38#include <net/sock.h>
39#include <net/netlink.h>
40#include <net/genetlink.h>
41
42#include <net/netlabel.h>
43#include <asm/bug.h>
44
45#include "netlabel_user.h"

--- 41 unchanged lines hidden (view full) ---

87 old_val = netlabel_unlabel_acceptflg;
88 spin_lock(&netlabel_unlabel_acceptflg_lock);
89 netlabel_unlabel_acceptflg = value;
90 spin_unlock(&netlabel_unlabel_acceptflg_lock);
91 rcu_read_unlock();
92
93 audit_buf = netlbl_audit_start_common(AUDIT_MAC_UNLBL_ALLOW,
94 audit_info);
39#include <net/sock.h>
40#include <net/netlink.h>
41#include <net/genetlink.h>
42
43#include <net/netlabel.h>
44#include <asm/bug.h>
45
46#include "netlabel_user.h"

--- 41 unchanged lines hidden (view full) ---

88 old_val = netlabel_unlabel_acceptflg;
89 spin_lock(&netlabel_unlabel_acceptflg_lock);
90 netlabel_unlabel_acceptflg = value;
91 spin_unlock(&netlabel_unlabel_acceptflg_lock);
92 rcu_read_unlock();
93
94 audit_buf = netlbl_audit_start_common(AUDIT_MAC_UNLBL_ALLOW,
95 audit_info);
95 audit_log_format(audit_buf, " unlbl_accept=%u old=%u", value, old_val);
96 audit_log_end(audit_buf);
96 if (audit_buf != NULL) {
97 audit_log_format(audit_buf,
98 " unlbl_accept=%u old=%u", value, old_val);
99 audit_log_end(audit_buf);
100 }
97}
98
99/*
100 * NetLabel Command Handlers
101 */
102
103/**
104 * netlbl_unlabel_accept - Handle an ACCEPT message

--- 186 unchanged lines hidden ---
101}
102
103/*
104 * NetLabel Command Handlers
105 */
106
107/**
108 * netlbl_unlabel_accept - Handle an ACCEPT message

--- 186 unchanged lines hidden ---