Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Oct 2009 15:28:34 GMT
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 169494 for review
Message-ID:  <200910141528.n9EFSYEb043881@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/chv.cgi?CH=169494

Change 169494 by rwatson@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. */
 };



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200910141528.n9EFSYEb043881>