diff options
author | Paul Moore <pmoore@redhat.com> | 2014-08-01 11:17:37 -0400 |
---|---|---|
committer | Paul Moore <pmoore@redhat.com> | 2014-08-01 11:17:37 -0400 |
commit | 4fbe63d1c773cceef3fe1f6ed0c9c268f4f24760 (patch) | |
tree | ac8a91fc13402494d211489ef3123aea3a5164f7 /security/selinux/ss/ebitmap.c | |
parent | d960a6184a92c8da70d26355bfcb5bd8ad637743 (diff) |
netlabel: shorter names for the NetLabel catmap funcs/structs
Historically the NetLabel LSM secattr catmap functions and data
structures have had very long names which makes a mess of the NetLabel
code and anyone who uses NetLabel. This patch renames the catmap
functions and structures from "*_secattr_catmap_*" to just "*_catmap_*"
which improves things greatly.
There are no substantial code or logic changes in this patch.
Signed-off-by: Paul Moore <pmoore@redhat.com>
Tested-by: Casey Schaufler <casey@schaufler-ca.com>
Diffstat (limited to 'security/selinux/ss/ebitmap.c')
-rw-r--r-- | security/selinux/ss/ebitmap.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/security/selinux/ss/ebitmap.c b/security/selinux/ss/ebitmap.c index 842deca9484d..afe6a269ec17 100644 --- a/security/selinux/ss/ebitmap.c +++ b/security/selinux/ss/ebitmap.c | |||
@@ -86,7 +86,7 @@ int ebitmap_cpy(struct ebitmap *dst, struct ebitmap *src) | |||
86 | * | 86 | * |
87 | */ | 87 | */ |
88 | int ebitmap_netlbl_export(struct ebitmap *ebmap, | 88 | int ebitmap_netlbl_export(struct ebitmap *ebmap, |
89 | struct netlbl_lsm_secattr_catmap **catmap) | 89 | struct netlbl_lsm_catmap **catmap) |
90 | { | 90 | { |
91 | struct ebitmap_node *e_iter = ebmap->node; | 91 | struct ebitmap_node *e_iter = ebmap->node; |
92 | unsigned long e_map; | 92 | unsigned long e_map; |
@@ -100,7 +100,7 @@ int ebitmap_netlbl_export(struct ebitmap *ebmap, | |||
100 | } | 100 | } |
101 | 101 | ||
102 | if (*catmap != NULL) | 102 | if (*catmap != NULL) |
103 | netlbl_secattr_catmap_free(*catmap); | 103 | netlbl_catmap_free(*catmap); |
104 | *catmap = NULL; | 104 | *catmap = NULL; |
105 | 105 | ||
106 | while (e_iter) { | 106 | while (e_iter) { |
@@ -108,10 +108,10 @@ int ebitmap_netlbl_export(struct ebitmap *ebmap, | |||
108 | for (iter = 0; iter < EBITMAP_UNIT_NUMS; iter++) { | 108 | for (iter = 0; iter < EBITMAP_UNIT_NUMS; iter++) { |
109 | e_map = e_iter->maps[iter]; | 109 | e_map = e_iter->maps[iter]; |
110 | if (e_map != 0) { | 110 | if (e_map != 0) { |
111 | rc = netlbl_secattr_catmap_setlong(catmap, | 111 | rc = netlbl_catmap_setlong(catmap, |
112 | offset, | 112 | offset, |
113 | e_map, | 113 | e_map, |
114 | GFP_ATOMIC); | 114 | GFP_ATOMIC); |
115 | if (rc != 0) | 115 | if (rc != 0) |
116 | goto netlbl_export_failure; | 116 | goto netlbl_export_failure; |
117 | } | 117 | } |
@@ -123,7 +123,7 @@ int ebitmap_netlbl_export(struct ebitmap *ebmap, | |||
123 | return 0; | 123 | return 0; |
124 | 124 | ||
125 | netlbl_export_failure: | 125 | netlbl_export_failure: |
126 | netlbl_secattr_catmap_free(*catmap); | 126 | netlbl_catmap_free(*catmap); |
127 | return -ENOMEM; | 127 | return -ENOMEM; |
128 | } | 128 | } |
129 | 129 | ||
@@ -138,7 +138,7 @@ netlbl_export_failure: | |||
138 | * | 138 | * |
139 | */ | 139 | */ |
140 | int ebitmap_netlbl_import(struct ebitmap *ebmap, | 140 | int ebitmap_netlbl_import(struct ebitmap *ebmap, |
141 | struct netlbl_lsm_secattr_catmap *catmap) | 141 | struct netlbl_lsm_catmap *catmap) |
142 | { | 142 | { |
143 | int rc; | 143 | int rc; |
144 | struct ebitmap_node *e_iter = NULL; | 144 | struct ebitmap_node *e_iter = NULL; |
@@ -147,7 +147,7 @@ int ebitmap_netlbl_import(struct ebitmap *ebmap, | |||
147 | unsigned long bitmap; | 147 | unsigned long bitmap; |
148 | 148 | ||
149 | for (;;) { | 149 | for (;;) { |
150 | rc = netlbl_secattr_catmap_getlong(catmap, &offset, &bitmap); | 150 | rc = netlbl_catmap_getlong(catmap, &offset, &bitmap); |
151 | if (rc < 0) | 151 | if (rc < 0) |
152 | goto netlbl_import_failure; | 152 | goto netlbl_import_failure; |
153 | if (offset == (u32)-1) | 153 | if (offset == (u32)-1) |