PERFORCE change 169494 for review
Robert Watson
rwatson at FreeBSD.org
Wed Oct 14 15:28:35 UTC 2009
http://p4web.freebsd.org/chv.cgi?CH=169494
Change 169494 by rwatson at rwatson_cinnamon on 2009/10/14 15:28:30
Align 64-bit capability field at a 64-bit offset in struct
kinfo_file, otherwise the compiler will introduce additional
padding, changing the size of the overall structure.
Spotted by: Jonathan Anderson
Affected files ...
.. //depot/projects/trustedbsd/capabilities/src/sys/sys/user.h#15 edit
Differences ...
==== //depot/projects/trustedbsd/capabilities/src/sys/sys/user.h#15 (text+ko) ====
@@ -333,8 +333,9 @@
struct sockaddr_storage kf_sa_local; /* Socket address. */
struct sockaddr_storage kf_sa_peer; /* Peer address. */
pid_t kf_pid; /* Process identifier. */
+ int _kf_ispare0; /* Space for more stuff. */
cap_rights_t kf_cap_rights; /* Capabiity rights. */
- int _kf_ispare[13]; /* Space for more stuff. */
+ int _kf_ispare[12]; /* Space for more stuff. */
/* Truncated before copyout in sysctl */
char kf_path[PATH_MAX]; /* Path to file, if any. */
};
More information about the p4-projects
mailing list