Lines Matching refs:vp

142 	    struct vnode *vp);
144 struct vnode *vp);
183 int mac_kld_check_load(struct ucred *cred, struct vnode *vp);
363 int mac_system_check_acct(struct ucred *cred, struct vnode *vp);
365 int mac_system_check_auditctl(struct ucred *cred, struct vnode *vp);
368 int mac_system_check_swapon(struct ucred *cred, struct vnode *vp);
369 int mac_system_check_swapoff(struct ucred *cred, struct vnode *vp);
425 void mac_vnode_assert_locked(struct vnode *vp, const char *func);
427 #define mac_vnode_assert_locked(vp, func) do { } while (0) argument
430 int mac_vnode_associate_extattr(struct mount *mp, struct vnode *vp);
431 void mac_vnode_associate_singlelabel(struct mount *mp, struct vnode *vp);
450 int mac_vnode_check_deleteacl(struct ucred *cred, struct vnode *vp,
452 int mac_vnode_check_deleteextattr(struct ucred *cred, struct vnode *vp,
454 int mac_vnode_check_exec(struct ucred *cred, struct vnode *vp,
456 int mac_vnode_check_getacl(struct ucred *cred, struct vnode *vp,
458 int mac_vnode_check_getextattr(struct ucred *cred, struct vnode *vp,
461 struct vnode *vp, struct componentname *cnp);
462 int mac_vnode_check_listextattr(struct ucred *cred, struct vnode *vp,
484 int mac_vnode_check_mmap_impl(struct ucred *cred, struct vnode *vp, int prot,
493 mac_vnode_check_mmap(struct ucred *cred, struct vnode *vp, int prot, in mac_vnode_check_mmap() argument
497 mac_vnode_assert_locked(vp, "mac_vnode_check_mmap"); in mac_vnode_check_mmap()
499 return (mac_vnode_check_mmap_impl(cred, vp, prot, flags)); in mac_vnode_check_mmap()
503 int mac_vnode_check_open_impl(struct ucred *cred, struct vnode *vp,
512 mac_vnode_check_open(struct ucred *cred, struct vnode *vp, in mac_vnode_check_open() argument
516 mac_vnode_assert_locked(vp, "mac_vnode_check_open"); in mac_vnode_check_open()
518 return (mac_vnode_check_open_impl(cred, vp, accmode)); in mac_vnode_check_open()
522 int mac_vnode_check_mprotect(struct ucred *cred, struct vnode *vp,
529 struct ucred *file_cred, struct vnode *vp);
534 struct vnode *vp) in mac_vnode_check_poll() argument
540 int mac_vnode_check_readdir(struct ucred *cred, struct vnode *vp);
549 mac_vnode_check_readlink(struct ucred *cred, struct vnode *vp) in mac_vnode_check_readlink() argument
552 mac_vnode_assert_locked(vp, "mac_vnode_check_readlink"); in mac_vnode_check_readlink()
554 return (mac_vnode_check_readlink_impl(cred, vp)); in mac_vnode_check_readlink()
562 struct vnode *vp, struct componentname *cnp);
564 struct vnode *vp, int samedir, struct componentname *cnp);
565 int mac_vnode_check_revoke(struct ucred *cred, struct vnode *vp);
566 int mac_vnode_check_setacl(struct ucred *cred, struct vnode *vp,
568 int mac_vnode_check_setextattr(struct ucred *cred, struct vnode *vp,
570 int mac_vnode_check_setflags(struct ucred *cred, struct vnode *vp,
572 int mac_vnode_check_setmode(struct ucred *cred, struct vnode *vp,
574 int mac_vnode_check_setowner(struct ucred *cred, struct vnode *vp,
576 int mac_vnode_check_setutimes(struct ucred *cred, struct vnode *vp,
580 struct ucred *file_cred, struct vnode *vp);
589 struct vnode *vp) in mac_vnode_check_stat() argument
592 mac_vnode_assert_locked(vp, "mac_vnode_check_stat"); in mac_vnode_check_stat()
594 return (mac_vnode_check_stat_impl(active_cred, file_cred, vp)); in mac_vnode_check_stat()
599 struct ucred *file_cred, struct vnode *vp);
608 struct vnode *vp) in mac_vnode_check_read() argument
611 mac_vnode_assert_locked(vp, "mac_vnode_check_read"); in mac_vnode_check_read()
613 return (mac_vnode_check_read_impl(active_cred, file_cred, vp)); in mac_vnode_check_read()
618 struct ucred *file_cred, struct vnode *vp);
627 struct vnode *vp) in mac_vnode_check_write() argument
630 mac_vnode_assert_locked(vp, "mac_vnode_check_write"); in mac_vnode_check_write()
632 return (mac_vnode_check_write_impl(active_cred, file_cred, vp)); in mac_vnode_check_write()
637 struct vnode *vp, struct componentname *cnp);
641 struct vnode *dvp, struct vnode *vp, struct componentname *cnp);
644 struct ucred *newcred, struct vnode *vp,
647 struct vnode *vp, struct label *interpvplabel,
649 void mac_vnode_relabel(struct ucred *cred, struct vnode *vp,