4
4
*
5
5
* Author : Stephen Smalley, <[email protected] >
6
6
*/
7
+
7
8
/*
8
9
* Updated: Trusted Computer Solutions, Inc. <[email protected] >
10
+ * Support for enhanced MLS infrastructure.
11
+ * Copyright (C) 2004-2006 Trusted Computer Solutions, Inc.
9
12
*
10
- * Support for enhanced MLS infrastructure.
11
- *
12
- * Copyright (C) 2004-2006 Trusted Computer Solutions, Inc.
13
- */
14
- /*
15
13
* Updated: Hewlett-Packard <[email protected] >
16
- *
17
- * Added support to import/export the MLS label from NetLabel
18
- *
19
- * (c) Copyright Hewlett-Packard Development Company, L.P., 2006
14
+ * Added support to import/export the MLS label from NetLabel
15
+ * Copyright (X) Hewlett-Packard Development Company, L.P., 2006
20
16
*/
21
17
22
18
#ifndef _SS_MLS_H_
@@ -35,47 +31,32 @@ int mls_context_isvalid(struct policydb *p, struct context *c);
35
31
int mls_range_isvalid (struct policydb * p , struct mls_range * r );
36
32
int mls_level_isvalid (struct policydb * p , struct mls_level * l );
37
33
38
- int mls_context_to_sid (struct policydb * p ,
39
- char oldc ,
40
- char * scontext ,
41
- struct context * context ,
42
- struct sidtab * s ,
43
- u32 def_sid );
34
+ int mls_context_to_sid (struct policydb * p , char oldc , char * scontext ,
35
+ struct context * context , struct sidtab * s , u32 def_sid );
44
36
45
37
int mls_from_string (struct policydb * p , char * str , struct context * context ,
46
38
gfp_t gfp_mask );
47
39
48
40
int mls_range_set (struct context * context , struct mls_range * range );
49
41
50
- int mls_convert_context (struct policydb * oldp ,
51
- struct policydb * newp ,
52
- struct context * oldc ,
53
- struct context * newc );
42
+ int mls_convert_context (struct policydb * oldp , struct policydb * newp ,
43
+ struct context * oldc , struct context * newc );
54
44
55
- int mls_compute_sid (struct policydb * p ,
56
- struct context * scontext ,
57
- struct context * tcontext ,
58
- u16 tclass ,
59
- u32 specified ,
60
- struct context * newcontext ,
61
- bool sock );
45
+ int mls_compute_sid (struct policydb * p , struct context * scontext ,
46
+ struct context * tcontext , u16 tclass , u32 specified ,
47
+ struct context * newcontext , bool sock );
62
48
63
- int mls_setup_user_range (struct policydb * p ,
64
- struct context * fromcon , struct user_datum * user ,
65
- struct context * usercon );
49
+ int mls_setup_user_range (struct policydb * p , struct context * fromcon ,
50
+ struct user_datum * user , struct context * usercon );
66
51
67
52
#ifdef CONFIG_NETLABEL
68
- void mls_export_netlbl_lvl (struct policydb * p ,
69
- struct context * context ,
53
+ void mls_export_netlbl_lvl (struct policydb * p , struct context * context ,
70
54
struct netlbl_lsm_secattr * secattr );
71
- void mls_import_netlbl_lvl (struct policydb * p ,
72
- struct context * context ,
55
+ void mls_import_netlbl_lvl (struct policydb * p , struct context * context ,
73
56
struct netlbl_lsm_secattr * secattr );
74
- int mls_export_netlbl_cat (struct policydb * p ,
75
- struct context * context ,
57
+ int mls_export_netlbl_cat (struct policydb * p , struct context * context ,
76
58
struct netlbl_lsm_secattr * secattr );
77
- int mls_import_netlbl_cat (struct policydb * p ,
78
- struct context * context ,
59
+ int mls_import_netlbl_cat (struct policydb * p , struct context * context ,
79
60
struct netlbl_lsm_secattr * secattr );
80
61
#else
81
62
static inline void mls_export_netlbl_lvl (struct policydb * p ,
@@ -112,5 +93,4 @@ static inline u32 mls_range_hash(const struct mls_range *r, u32 hash)
112
93
return hash ;
113
94
}
114
95
115
- #endif /* _SS_MLS_H */
116
-
96
+ #endif /* _SS_MLS_H */
0 commit comments