ia64
The attached patch for selinux-small seems to be necessary for ia64.
I still haven't got it to fully compile on ia64, but this patch makes it get a lot closer, and I think it's worthy of inclusion in the CVS.
Signature · 4 lines
http://www.coker.com.au/selinux/ My NSA Security Enhanced Linux packages http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark http://www.coker.com.au/postal/ Postal SMTP/POP benchmark http://www.coker.com.au/~russell/ My home page
libsecure/src/kernel_stat.h +28 -1
@@ -1,4 +1,31 @@/* Definition of `struct stat' used in the kernel.. */ +#ifdef __ia64__ +struct kernel_stat +{ + unsigned long st_dev; + unsigned long st_ino; + unsigned long st_nlink; + unsigned int st_mode; + unsigned int st_uid; + unsigned int st_gid; +/* do not define _HAVE___PAD0 because user-land does not know of pad0 */ + unsigned int __pad0; + unsigned long st_rdev; + unsigned long st_size; + unsigned long st_atime; + unsigned long __reserved0; /* reserved for atime.nanoseconds */ +#define _HAVE___RESERVED0 + unsigned long st_mtime; + unsigned long __reserved1; /* reserved for mtime.nanoseconds */ +#define _HAVE___RESERVED1 + unsigned long st_ctime; + unsigned long __reserved2; /* reserved for ctime.nanoseconds */ +#define _HAVE___RESERVED2 + unsigned long st_blksize; + long st_blocks; + unsigned long __unused[3]; +}; +#else struct kernel_stat { unsigned short int st_dev;
@@ -29,4 +56,4 @@unsigned long int __unused5;#define _HAVE___UNUSED5 }; - +#endif
libsecure/src/xstat_conv.h +9 -0
@@ -51,14 +51,23 @@ buf->st_blksize = kbuf->st_blksize; buf->st_blocks = kbuf->st_blocks; buf->st_atime = kbuf->st_atime; +#ifdef _HAVE___RESERVED0 + buf->__reserved0 =0 ; +#endif #ifdef _HAVE___UNUSED1 buf->__unused1 =0 ;#endif buf->st_mtime = kbuf->st_mtime; +#ifdef _HAVE___RESERVED1 + buf->__reserved1 =0 ; +#endif #ifdef _HAVE___UNUSED2 buf->__unused2 =0 ;#endif buf->st_ctime = kbuf->st_ctime; +#ifdef _HAVE___RESERVED2 + buf->__reserved2 =0 ; +#endif #ifdef _HAVE___UNUSED3 buf->__unused3 =0 ;#endif