yet another kernel header patch for lunar

Steven Michalske hardkrash at lunar-linux.org
Sun Oct 12 16:35:16 GMT 2003


--Boundary-02=_yrbi///jmIKJC0Q
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: 7bit
Content-Description: signed data
Content-Disposition: inline

this protects kernel types from being put into userland applications

hardkrash

--- linux-2.4.22/include/linux/in.h.scm 2003-10-12 16:33:22.236200445 -0400
+++ linux-2.4.22/include/linux/in.h     2003-10-12 16:34:09.206881806 -0400
@@ -134,6 +134,8 @@
        (sizeof(struct ip_msfilter) - sizeof(__u32) \
        + (numsrc) * sizeof(__u32))

+#if defined(__KERNEL__) || !defined(__GLIBC__) || (__GLIBC__ < 2)
+
 struct group_req
 {
        __u32                   gr_interface;   /* interface index */
@@ -160,6 +162,8 @@
        (sizeof(struct group_filter) - sizeof(struct sockaddr_storage) \
        + (numsrc) * sizeof(struct sockaddr_storage))

+#endif // defined(__KERNEL__) || !defined(__GLIBC__) || (__GLIBC__ < 2)
+
 struct in_pktinfo
 {
        int             ipi_ifindex;

--Boundary-02=_yrbi///jmIKJC0Q
Content-Type: application/pgp-signature
Content-Description: signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQA/ibryX8iSlum6HOMRAnCfAJ9avFULebqUQ2xXJXn9G46GIkPK7gCgl0+U
6+YTXLAyYiMQb7XhaSGrpfI=
=l3SS
-----END PGP SIGNATURE-----

--Boundary-02=_yrbi///jmIKJC0Q--
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
Url : http://dbguin.lunar-linux.org/mailman/private/lunar-dev/attachments/20031012/a0997139/attachment.bin


More information about the lunar-dev mailing list