Deleted Added
full compact
mac_cred.c (150913) mac_cred.c (150923)
1/*-
2 * Copyright (c) 1999-2002 Robert N. M. Watson
3 * Copyright (c) 2001 Ilmar S. Habibulin
4 * Copyright (c) 2001-2003 Networks Associates Technology, Inc.
5 * Copyright (c) 2005 Samy Al Bahra
6 * All rights reserved.
7 *
8 * This software was developed by Robert Watson and Ilmar Habibulin for the

--- 22 unchanged lines hidden (view full) ---

31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35 * SUCH DAMAGE.
36 */
37
38#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1999-2002 Robert N. M. Watson
3 * Copyright (c) 2001 Ilmar S. Habibulin
4 * Copyright (c) 2001-2003 Networks Associates Technology, Inc.
5 * Copyright (c) 2005 Samy Al Bahra
6 * All rights reserved.
7 *
8 * This software was developed by Robert Watson and Ilmar Habibulin for the

--- 22 unchanged lines hidden (view full) ---

31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35 * SUCH DAMAGE.
36 */
37
38#include <sys/cdefs.h>
39__FBSDID("$FreeBSD: head/sys/security/mac/mac_process.c 150913 2005-10-04 14:32:15Z csjp $");
39__FBSDID("$FreeBSD: head/sys/security/mac/mac_process.c 150923 2005-10-04 14:47:47Z csjp $");
40
41#include "opt_mac.h"
42
43#include <sys/param.h>
44#include <sys/condvar.h>
45#include <sys/imgact.h>
46#include <sys/kernel.h>
47#include <sys/lock.h>

--- 301 unchanged lines hidden (view full) ---

349 continue;
350 /*
351 * Drill down to the deepest backing object.
352 */
353 offset = vme->offset;
354 object = vme->object.vm_object;
355 if (object == NULL)
356 continue;
40
41#include "opt_mac.h"
42
43#include <sys/param.h>
44#include <sys/condvar.h>
45#include <sys/imgact.h>
46#include <sys/kernel.h>
47#include <sys/lock.h>

--- 301 unchanged lines hidden (view full) ---

349 continue;
350 /*
351 * Drill down to the deepest backing object.
352 */
353 offset = vme->offset;
354 object = vme->object.vm_object;
355 if (object == NULL)
356 continue;
357 /* XXXCSJP We need to lock the object before walking
358 * the backing object list.
359 */
357 while (object->backing_object != NULL) {
360 while (object->backing_object != NULL) {
358 object = object->backing_object;
359 offset += object->backing_object_offset;
361 offset += object->backing_object_offset;
362 object = object->backing_object;
360 }
361 /*
362 * At the moment, vm_maps and objects aren't considered
363 * by the MAC system, so only things with backing by a
364 * normal object (read: vnodes) are checked.
365 */
366 if (object->type != OBJT_VNODE)
367 continue;

--- 304 unchanged lines hidden ---
363 }
364 /*
365 * At the moment, vm_maps and objects aren't considered
366 * by the MAC system, so only things with backing by a
367 * normal object (read: vnodes) are checked.
368 */
369 if (object->type != OBJT_VNODE)
370 continue;

--- 304 unchanged lines hidden ---