Deleted Added
full compact
uipc_shm.c (178181) uipc_shm.c (180059)
1/*-
2 * Copyright (c) 2006 Robert N. M. Watson
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

41 * existing limits in mmap(2) sufficient?
42 *
43 * (5) Partial page truncation. vnode_pager_setsize() will zero any parts
44 * of a partially mapped page as a result of ftruncate(2)/truncate(2).
45 * We can do the same (with the same pmap evil), but do we need to
46 * worry about the bits on disk if the page is swapped out or will the
47 * swapper zero the parts of a page that are invalid if the page is
48 * swapped back in for us?
1/*-
2 * Copyright (c) 2006 Robert N. M. Watson
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

41 * existing limits in mmap(2) sufficient?
42 *
43 * (5) Partial page truncation. vnode_pager_setsize() will zero any parts
44 * of a partially mapped page as a result of ftruncate(2)/truncate(2).
45 * We can do the same (with the same pmap evil), but do we need to
46 * worry about the bits on disk if the page is swapped out or will the
47 * swapper zero the parts of a page that are invalid if the page is
48 * swapped back in for us?
49 *
50 * (6) Add MAC support in mac_biba(4) and mac_mls(4).
51 *
52 * (7) Add a MAC check_create() hook for creating new named objects.
49 */
50
51#include <sys/cdefs.h>
53 */
54
55#include <sys/cdefs.h>
52__FBSDID("$FreeBSD: head/sys/kern/uipc_shm.c 178181 2008-04-13 21:08:34Z alc $");
56__FBSDID("$FreeBSD: head/sys/kern/uipc_shm.c 180059 2008-06-27 05:39:04Z jhb $");
53
54#include "opt_mac.h"
55
56#include <sys/param.h>
57#include <sys/fcntl.h>
58#include <sys/file.h>
59#include <sys/filedesc.h>
60#include <sys/fnv_hash.h>

--- 553 unchanged lines hidden ---
57
58#include "opt_mac.h"
59
60#include <sys/param.h>
61#include <sys/fcntl.h>
62#include <sys/file.h>
63#include <sys/filedesc.h>
64#include <sys/fnv_hash.h>

--- 553 unchanged lines hidden ---