On Sat, Oct 03, 2009 at 12:20:25AM -0700, Matt Helsley wrote: > Using kernel headers directly from userspace is strongly discouraged. > > > Sanitize kernel headers for userspace by extracting non-__KERNEL__ > portions of the various checkpoint headers and placing them in a > similar organization of userspace headers. > > The script is run from the top level of the user-cr source tree like: > > ./scripts/extract-headers.sh -s <path-to-kern-source> -o ./include > > The patch includes a copy of the auto-generated headers and adjusts > the user-cr programs to use them. > > Programs should only include linux/checkpoint.h and > linux/checkpoint_hdr.h. asm/checkpoint_hdr.h is included from > linux/checkpoint_hdr.h > > Signed-off-by: Matt Helsley <matthltc@xxxxxxxxxx> > Cc: containers@xxxxxxxxxxxxxxxxxxxxxxxxxx Note that: "[PATCH] Fix up headers so we can munge them for use by userspace." must be applied to the kernel tree before the script in this patch will reproduce the headers properly. Since this patch includes the necessary headers synchronizing the transition shouldn't be a problem. Cheers, -Matt _______________________________________________ Containers mailing list Containers@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linux-foundation.org/mailman/listinfo/containers