mac_test.c (106788) | mac_test.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_test/mac_test.c 106788 2002-11-12 04:20:36Z rwatson $ | 34 * $FreeBSD: head/sys/security/mac_test/mac_test.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> --- 470 unchanged lines hidden (view full) --- 513static void 514mac_test_associate_vnode_singlelabel(struct mount *mp, 515 struct label *fslabel, struct vnode *vp, struct label *vlabel) 516{ 517 518} 519 520static 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> --- 470 unchanged lines hidden (view full) --- 513static void 514mac_test_associate_vnode_singlelabel(struct mount *mp, 515 struct label *fslabel, struct vnode *vp, struct label *vlabel) 516{ 517 518} 519 520static void |
521mac_test_create_devfs_device(dev_t dev, struct devfs_dirent *devfs_dirent, 522 struct label *label) | 521mac_test_create_devfs_device(struct mount *mp, dev_t dev, 522 struct devfs_dirent *devfs_dirent, struct label *label) |
523{ 524 525} 526 527static void | 523{ 524 525} 526 527static void |
528mac_test_create_devfs_directory(char *dirname, int dirnamelen, 529 struct devfs_dirent *devfs_dirent, struct label *label) | 528mac_test_create_devfs_directory(struct mount *mp, char *dirname, 529 int dirnamelen, struct devfs_dirent *devfs_dirent, struct label *label) |
530{ 531 532} 533 534static void | 530{ 531 532} 533 534static void |
535mac_test_create_devfs_symlink(struct ucred *cred, struct devfs_dirent *dd, 536 struct label *ddlabel, struct devfs_dirent *de, struct label *delabel) | 535mac_test_create_devfs_symlink(struct ucred *cred, struct mount *mp, 536 struct devfs_dirent *dd, struct label *ddlabel, struct devfs_dirent *de, 537 struct label *delabel) |
537{ 538 539} 540 541static int 542mac_test_create_vnode_extattr(struct ucred *cred, struct mount *mp, 543 struct label *fslabel, struct vnode *dvp, struct label *dlabel, 544 struct vnode *vp, struct label *vlabel, struct componentname *cnp) --- 27 unchanged lines hidden (view full) --- 572mac_test_setlabel_vnode_extattr(struct ucred *cred, struct vnode *vp, 573 struct label *vlabel, struct label *intlabel) 574{ 575 576 return (0); 577} 578 579static void | 538{ 539 540} 541 542static int 543mac_test_create_vnode_extattr(struct ucred *cred, struct mount *mp, 544 struct label *fslabel, struct vnode *dvp, struct label *dlabel, 545 struct vnode *vp, struct label *vlabel, struct componentname *cnp) --- 27 unchanged lines hidden (view full) --- 573mac_test_setlabel_vnode_extattr(struct ucred *cred, struct vnode *vp, 574 struct label *vlabel, struct label *intlabel) 575{ 576 577 return (0); 578} 579 580static void |
580mac_test_update_devfsdirent(struct devfs_dirent *devfs_dirent, 581 struct label *direntlabel, struct vnode *vp, struct label *vnodelabel) | 581mac_test_update_devfsdirent(struct mount *mp, 582 struct devfs_dirent *devfs_dirent, struct label *direntlabel, 583 struct vnode *vp, struct label *vnodelabel) |
582{ 583 584} 585 586/* 587 * Labeling event operations: IPC object. 588 */ 589static void --- 752 unchanged lines hidden --- | 584{ 585 586} 587 588/* 589 * Labeling event operations: IPC object. 590 */ 591static void --- 752 unchanged lines hidden --- |