diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2005-09-03 15:55:17 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@evo.osdl.org> | 2005-09-05 00:05:51 -0700 |
commit | b5bf6c55edf94e9c7fc01724d5b271f78eaf1d3f (patch) | |
tree | 0f2be4478fa5886f467fce8b4a8d56b5e8dbed46 /security/selinux/ss/avtab.c | |
parent | 782ebb992ec20b5afdd5786ee8c2f1b58b631f24 (diff) | |
download | op-kernel-dev-b5bf6c55edf94e9c7fc01724d5b271f78eaf1d3f.zip op-kernel-dev-b5bf6c55edf94e9c7fc01724d5b271f78eaf1d3f.tar.gz |
[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 2e71af6..dde094f 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, struct avtab_datum *d, void *p), void *p) { - u16 buf16[4], enabled; - u32 buf32[7], items, items2, val; + __le16 buf16[4]; + u16 enabled; + __le32 buf32[7]; + u32 items, items2, val; struct avtab_key key; struct avtab_datum datum; int i, rc; @@ -403,7 +405,7 @@ static int avtab_insertf(struct avtab *a, struct avtab_key *k, int avtab_read(struct avtab *a, void *fp, u32 vers) { int rc; - u32 buf[1]; + __le32 buf[1]; u32 nel, i; |