From owner-cvs-src@FreeBSD.ORG Tue Feb 12 20:55:04 2008 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BA04016A419; Tue, 12 Feb 2008 20:55:04 +0000 (UTC) (envelope-from csjp@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id AE64613C4EB; Tue, 12 Feb 2008 20:55:04 +0000 (UTC) (envelope-from csjp@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m1CKt4HJ044058; Tue, 12 Feb 2008 20:55:04 GMT (envelope-from csjp@repoman.freebsd.org) Received: (from csjp@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m1CKt4oL044057; Tue, 12 Feb 2008 20:55:04 GMT (envelope-from csjp) Message-Id: <200802122055.m1CKt4oL044057@repoman.freebsd.org> From: "Christian S.J. Peron" Date: Tue, 12 Feb 2008 20:55:04 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/sys ipc.h shm.h src/sys/kern sysv_shm.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Feb 2008 20:55:04 -0000 csjp 2008-02-12 20:55:04 UTC FreeBSD src repository Modified files: sys/sys ipc.h shm.h sys/kern sysv_shm.c Log: Make sure we restrict Linux only IPC calls from being executed through the FreeBSD ABI. IPC_INFO, SHM_INFO, SHM_STAT were added specifically for Linux binary support. They are not documented as being a part of the FreeBSD ABI, also, the structures necessary for them have been hidden away from the users for a long time. Also, the Linux ABI layer uses it's own structures to populate the responses back to the user to ensure that the ABI is consistent. I think there is a bit more separation work that needs to happen. Reviewed by: jhb Discussed with: jhb Discussed on: freebsd-arch@ (very briefly) MFC after: 1 month Revision Changes Path 1.113 +18 -3 src/sys/kern/sysv_shm.c 1.26 +3 -0 src/sys/sys/ipc.h 1.25 +1 -1 src/sys/sys/shm.h