Lines Matching full:error
211 int error; in mac_vnode_externalize_label() local
215 return (error); in mac_vnode_externalize_label()
221 int error; in mac_vnode_internalize_label() local
225 return (error); in mac_vnode_internalize_label()
248 int error; in mac_vnode_associate_extattr() local
255 return (error); in mac_vnode_associate_extattr()
279 int error; in mac_vnode_create_extattr() local
284 error = VOP_OPENEXTATTR(vp, cred, curthread); in mac_vnode_create_extattr()
285 if (error == EOPNOTSUPP) { in mac_vnode_create_extattr()
291 } else if (error) in mac_vnode_create_extattr()
292 return (error); in mac_vnode_create_extattr()
297 if (error) { in mac_vnode_create_extattr()
299 return (error); in mac_vnode_create_extattr()
302 error = VOP_CLOSEEXTATTR(vp, 1, NOCRED, curthread); in mac_vnode_create_extattr()
303 if (error == EOPNOTSUPP) in mac_vnode_create_extattr()
304 error = 0; in mac_vnode_create_extattr()
306 return (error); in mac_vnode_create_extattr()
313 int error; in mac_vnode_setlabel_extattr() local
317 error = VOP_OPENEXTATTR(vp, cred, curthread); in mac_vnode_setlabel_extattr()
318 if (error == EOPNOTSUPP) { in mac_vnode_setlabel_extattr()
324 } else if (error) in mac_vnode_setlabel_extattr()
325 return (error); in mac_vnode_setlabel_extattr()
330 if (error) { in mac_vnode_setlabel_extattr()
332 return (error); in mac_vnode_setlabel_extattr()
335 error = VOP_CLOSEEXTATTR(vp, 1, NOCRED, curthread); in mac_vnode_setlabel_extattr()
336 if (error == EOPNOTSUPP) in mac_vnode_setlabel_extattr()
337 error = 0; in mac_vnode_setlabel_extattr()
339 return (error); in mac_vnode_setlabel_extattr()
375 int error; in mac_vnode_check_access_impl() local
380 MAC_CHECK_PROBE3(vnode_check_access, error, cred, vp, accmode); in mac_vnode_check_access_impl()
382 return (error); in mac_vnode_check_access_impl()
391 int error; in mac_vnode_check_chdir() local
396 MAC_CHECK_PROBE2(vnode_check_chdir, error, cred, dvp); in mac_vnode_check_chdir()
398 return (error); in mac_vnode_check_chdir()
407 int error; in mac_vnode_check_chroot() local
412 MAC_CHECK_PROBE2(vnode_check_chroot, error, cred, dvp); in mac_vnode_check_chroot()
414 return (error); in mac_vnode_check_chroot()
424 int error; in mac_vnode_check_create() local
430 MAC_CHECK_PROBE4(vnode_check_create, error, cred, dvp, cnp, vap); in mac_vnode_check_create()
432 return (error); in mac_vnode_check_create()
442 int error; in mac_vnode_check_deleteacl() local
447 MAC_CHECK_PROBE3(vnode_check_deleteacl, error, cred, vp, type); in mac_vnode_check_deleteacl()
449 return (error); in mac_vnode_check_deleteacl()
459 int error; in mac_vnode_check_deleteextattr() local
465 MAC_CHECK_PROBE4(vnode_check_deleteextattr, error, cred, vp, in mac_vnode_check_deleteextattr()
468 return (error); in mac_vnode_check_deleteextattr()
478 int error; in mac_vnode_check_exec() local
484 MAC_CHECK_PROBE3(vnode_check_exec, error, cred, vp, imgp); in mac_vnode_check_exec()
486 return (error); in mac_vnode_check_exec()
495 int error; in mac_vnode_check_getacl() local
500 MAC_CHECK_PROBE3(vnode_check_getacl, error, cred, vp, type); in mac_vnode_check_getacl()
502 return (error); in mac_vnode_check_getacl()
512 int error; in mac_vnode_check_getextattr() local
518 MAC_CHECK_PROBE4(vnode_check_getextattr, error, cred, vp, in mac_vnode_check_getextattr()
521 return (error); in mac_vnode_check_getextattr()
531 int error; in mac_vnode_check_link() local
538 MAC_CHECK_PROBE4(vnode_check_link, error, cred, dvp, vp, cnp); in mac_vnode_check_link()
540 return (error); in mac_vnode_check_link()
550 int error; in mac_vnode_check_listextattr() local
556 MAC_CHECK_PROBE3(vnode_check_listextattr, error, cred, vp, in mac_vnode_check_listextattr()
559 return (error); in mac_vnode_check_listextattr()
569 int error; in mac_vnode_check_lookup_impl() local
576 MAC_CHECK_PROBE3(vnode_check_lookup, error, cred, dvp, cnp); in mac_vnode_check_lookup_impl()
578 return (error); in mac_vnode_check_lookup_impl()
588 int error; in mac_vnode_check_mmap_impl() local
593 MAC_CHECK_PROBE4(vnode_check_mmap, error, cred, vp, prot, flags); in mac_vnode_check_mmap_impl()
595 return (error); in mac_vnode_check_mmap_impl()
618 int error; in mac_vnode_check_mprotect() local
623 MAC_CHECK_PROBE3(vnode_check_mprotect, error, cred, vp, prot); in mac_vnode_check_mprotect()
625 return (error); in mac_vnode_check_mprotect()
634 int error; in mac_vnode_check_open_impl() local
639 MAC_CHECK_PROBE3(vnode_check_open, error, cred, vp, accmode); in mac_vnode_check_open_impl()
641 return (error); in mac_vnode_check_open_impl()
651 int error; in mac_vnode_check_poll() local
657 MAC_CHECK_PROBE3(vnode_check_poll, error, active_cred, file_cred, in mac_vnode_check_poll()
660 return (error); in mac_vnode_check_poll()
670 int error; in mac_vnode_check_read_impl() local
676 MAC_CHECK_PROBE3(vnode_check_read, error, active_cred, file_cred, in mac_vnode_check_read_impl()
679 return (error); in mac_vnode_check_read_impl()
688 int error; in mac_vnode_check_readdir() local
693 MAC_CHECK_PROBE2(vnode_check_readdir, error, cred, dvp); in mac_vnode_check_readdir()
695 return (error); in mac_vnode_check_readdir()
704 int error; in mac_vnode_check_readlink_impl() local
709 MAC_CHECK_PROBE2(vnode_check_readlink, error, cred, vp); in mac_vnode_check_readlink_impl()
711 return (error); in mac_vnode_check_readlink_impl()
721 int error; in mac_vnode_check_relabel() local
726 MAC_CHECK_PROBE3(vnode_check_relabel, error, cred, vp, newlabel); in mac_vnode_check_relabel()
728 return (error); in mac_vnode_check_relabel()
738 int error; in mac_vnode_check_rename_from() local
745 MAC_CHECK_PROBE4(vnode_check_rename_from, error, cred, dvp, vp, cnp); in mac_vnode_check_rename_from()
747 return (error); in mac_vnode_check_rename_from()
757 int error; in mac_vnode_check_rename_to() local
764 MAC_CHECK_PROBE4(vnode_check_rename_to, error, cred, dvp, vp, cnp); in mac_vnode_check_rename_to()
765 return (error); in mac_vnode_check_rename_to()
774 int error; in mac_vnode_check_revoke() local
779 MAC_CHECK_PROBE2(vnode_check_revoke, error, cred, vp); in mac_vnode_check_revoke()
781 return (error); in mac_vnode_check_revoke()
791 int error; in mac_vnode_check_setacl() local
796 MAC_CHECK_PROBE4(vnode_check_setacl, error, cred, vp, type, acl); in mac_vnode_check_setacl()
798 return (error); in mac_vnode_check_setacl()
808 int error; in mac_vnode_check_setextattr() local
814 MAC_CHECK_PROBE4(vnode_check_setextattr, error, cred, vp, in mac_vnode_check_setextattr()
817 return (error); in mac_vnode_check_setextattr()
826 int error; in mac_vnode_check_setflags() local
831 MAC_CHECK_PROBE3(vnode_check_setflags, error, cred, vp, flags); in mac_vnode_check_setflags()
833 return (error); in mac_vnode_check_setflags()
842 int error; in mac_vnode_check_setmode() local
847 MAC_CHECK_PROBE3(vnode_check_setmode, error, cred, vp, mode); in mac_vnode_check_setmode()
849 return (error); in mac_vnode_check_setmode()
859 int error; in mac_vnode_check_setowner() local
864 MAC_CHECK_PROBE4(vnode_check_setowner, error, cred, vp, uid, gid); in mac_vnode_check_setowner()
866 return (error); in mac_vnode_check_setowner()
876 int error; in mac_vnode_check_setutimes() local
882 MAC_CHECK_PROBE4(vnode_check_setutimes, error, cred, vp, &atime, in mac_vnode_check_setutimes()
885 return (error); in mac_vnode_check_setutimes()
895 int error; in mac_vnode_check_stat_impl() local
901 MAC_CHECK_PROBE3(vnode_check_stat, error, active_cred, file_cred, in mac_vnode_check_stat_impl()
904 return (error); in mac_vnode_check_stat_impl()
914 int error; in mac_vnode_check_unlink() local
921 MAC_CHECK_PROBE4(vnode_check_unlink, error, cred, dvp, vp, cnp); in mac_vnode_check_unlink()
923 return (error); in mac_vnode_check_unlink()
933 int error; in mac_vnode_check_write_impl() local
939 MAC_CHECK_PROBE3(vnode_check_write, error, active_cred, file_cred, in mac_vnode_check_write_impl()
942 return (error); in mac_vnode_check_write_impl()
966 int error; in mac_mount_check_stat() local
969 MAC_CHECK_PROBE2(mount_check_stat, error, cred, mount); in mac_mount_check_stat()
971 return (error); in mac_mount_check_stat()
1011 int error; in vop_stdsetlabel_ea() local
1018 error = mac_vnode_setlabel_extattr(ap->a_cred, vp, intlabel); in vop_stdsetlabel_ea()
1019 if (error) in vop_stdsetlabel_ea()
1020 return (error); in vop_stdsetlabel_ea()
1034 int error; in vn_setlabel() local
1051 error = mac_vnode_check_relabel(cred, vp, intlabel); in vn_setlabel()
1052 if (error) in vn_setlabel()
1053 return (error); in vn_setlabel()
1062 error = VOP_ACCESS(vp, VADMIN, cred, curthread); in vn_setlabel()
1063 if (error) in vn_setlabel()
1064 return (error); in vn_setlabel()
1066 error = VOP_SETLABEL(vp, intlabel, cred, curthread); in vn_setlabel()
1067 if (error) in vn_setlabel()
1068 return (error); in vn_setlabel()