mac_none.c (106788) | mac_none.c (107698) |
---|---|
1/*- 2 * Copyright (c) 1999, 2000, 2001, 2002 Robert N. M. Watson 3 * Copyright (c) 2001, 2002 Networks Associates Technology, Inc. 4 * All rights reserved. 5 * 6 * This software was developed by Robert Watson for the TrustedBSD Project. 7 * 8 * This software was developed for the FreeBSD Project in part by Network --- 17 unchanged lines hidden (view full) --- 26 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * | 1/*- 2 * Copyright (c) 1999, 2000, 2001, 2002 Robert N. M. Watson 3 * Copyright (c) 2001, 2002 Networks Associates Technology, Inc. 4 * All rights reserved. 5 * 6 * This software was developed by Robert Watson for the TrustedBSD Project. 7 * 8 * This software was developed for the FreeBSD Project in part by Network --- 17 unchanged lines hidden (view full) --- 26 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * |
34 * $FreeBSD: head/sys/security/mac_none/mac_none.c 106788 2002-11-12 04:20:36Z rwatson $ | 34 * $FreeBSD: head/sys/security/mac_none/mac_none.c 107698 2002-12-09 03:44:28Z rwatson $ |
35 */ 36 37/* 38 * Developed by the TrustedBSD Project. 39 * Generic mandatory access module that does nothing. 40 */ 41 42#include <sys/types.h> --- 121 unchanged lines hidden (view full) --- 164static void 165mac_none_associate_vnode_singlelabel(struct mount *mp, 166 struct label *fslabel, struct vnode *vp, struct label *vlabel) 167{ 168 169} 170 171static void | 35 */ 36 37/* 38 * Developed by the TrustedBSD Project. 39 * Generic mandatory access module that does nothing. 40 */ 41 42#include <sys/types.h> --- 121 unchanged lines hidden (view full) --- 164static void 165mac_none_associate_vnode_singlelabel(struct mount *mp, 166 struct label *fslabel, struct vnode *vp, struct label *vlabel) 167{ 168 169} 170 171static void |
172mac_none_create_devfs_device(dev_t dev, struct devfs_dirent *devfs_dirent, 173 struct label *label) | 172mac_none_create_devfs_device(struct mount *mp, dev_t dev, 173 struct devfs_dirent *devfs_dirent, struct label *label) |
174{ 175 176} 177 178static void | 174{ 175 176} 177 178static void |
179mac_none_create_devfs_directory(char *dirname, int dirnamelen, 180 struct devfs_dirent *devfs_dirent, struct label *label) | 179mac_none_create_devfs_directory(struct mount *mp, char *dirname, 180 int dirnamelen, struct devfs_dirent *devfs_dirent, struct label *label) |
181{ 182 183} 184 185static void | 181{ 182 183} 184 185static void |
186mac_none_create_devfs_symlink(struct ucred *cred, struct devfs_dirent *dd, 187 struct label *ddlabel, struct devfs_dirent *de, struct label *delabel) | 186mac_none_create_devfs_symlink(struct ucred *cred, struct mount *mp, 187 struct devfs_dirent *dd, struct label *ddlabel, struct devfs_dirent *de, 188 struct label *delabel) |
188{ 189 190} 191 192static int 193mac_none_create_vnode_extattr(struct ucred *cred, struct mount *mp, 194 struct label *fslabel, struct vnode *dvp, struct label *dlabel, 195 struct vnode *vp, struct label *vlabel, struct componentname *cnp) --- 27 unchanged lines hidden (view full) --- 223mac_none_setlabel_vnode_extattr(struct ucred *cred, struct vnode *vp, 224 struct label *vlabel, struct label *intlabel) 225{ 226 227 return (0); 228} 229 230static void | 189{ 190 191} 192 193static int 194mac_none_create_vnode_extattr(struct ucred *cred, struct mount *mp, 195 struct label *fslabel, struct vnode *dvp, struct label *dlabel, 196 struct vnode *vp, struct label *vlabel, struct componentname *cnp) --- 27 unchanged lines hidden (view full) --- 224mac_none_setlabel_vnode_extattr(struct ucred *cred, struct vnode *vp, 225 struct label *vlabel, struct label *intlabel) 226{ 227 228 return (0); 229} 230 231static void |
231mac_none_update_devfsdirent(struct devfs_dirent *devfs_dirent, 232 struct label *direntlabel, struct vnode *vp, struct label *vnodelabel) | 232mac_none_update_devfsdirent(struct mount *mp, 233 struct devfs_dirent *devfs_dirent, struct label *direntlabel, 234 struct vnode *vp, struct label *vnodelabel) |
233{ 234 235} 236 237/* 238 * Labeling event operations: IPC object. 239 */ 240static void --- 778 unchanged lines hidden --- | 235{ 236 237} 238 239/* 240 * Labeling event operations: IPC object. 241 */ 242static void --- 778 unchanged lines hidden --- |