diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2005-09-03 18:55:17 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@evo.osdl.org> | 2005-09-05 03:05:51 -0400 |
commit | b5bf6c55edf94e9c7fc01724d5b271f78eaf1d3f (patch) | |
tree | 0f2be4478fa5886f467fce8b4a8d56b5e8dbed46 /security/selinux/ss/avtab.c | |
parent | 782ebb992ec20b5afdd5786ee8c2f1b58b631f24 (diff) |
[PATCH] selinux: endian notations
This patch adds endian notations to the SELinux code.
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'security/selinux/ss/avtab.c')
-rw-r--r-- | security/selinux/ss/avtab.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/security/selinux/ss/avtab.c b/security/selinux/ss/avtab.c index 2e71af67b5d8..dde094feb20d 100644 --- a/security/selinux/ss/avtab.c +++ b/security/selinux/ss/avtab.c | |||
@@ -297,8 +297,10 @@ int avtab_read_item(void *fp, u32 vers, struct avtab *a, | |||
297 | struct avtab_datum *d, void *p), | 297 | struct avtab_datum *d, void *p), |
298 | void *p) | 298 | void *p) |
299 | { | 299 | { |
300 | u16 buf16[4], enabled; | 300 | __le16 buf16[4]; |
301 | u32 buf32[7], items, items2, val; | 301 | u16 enabled; |
302 | __le32 buf32[7]; | ||
303 | u32 items, items2, val; | ||
302 | struct avtab_key key; | 304 | struct avtab_key key; |
303 | struct avtab_datum datum; | 305 | struct avtab_datum datum; |
304 | int i, rc; | 306 | int i, rc; |
@@ -403,7 +405,7 @@ static int avtab_insertf(struct avtab *a, struct avtab_key *k, | |||
403 | int avtab_read(struct avtab *a, void *fp, u32 vers) | 405 | int avtab_read(struct avtab *a, void *fp, u32 vers) |
404 | { | 406 | { |
405 | int rc; | 407 | int rc; |
406 | u32 buf[1]; | 408 | __le32 buf[1]; |
407 | u32 nel, i; | 409 | u32 nel, i; |
408 | 410 | ||
409 | 411 | ||