- if ((error == 0) && !(options & XATTR_NOSECURITY) &&
- (vfs_flags(vnode_mount(vp)) & MNT_MULTILABEL))
- mac_vnode_label_update_extattr(vnode_mount(vp), vp, name);
+ if ((error == 0) && !(options & XATTR_NOSECURITY)) {
+ mac_vnode_notify_setextattr(context, vp, name, uio);
+ if (vfs_flags(vnode_mount(vp)) & MNT_MULTILABEL)
+ mac_vnode_label_update_extattr(vnode_mount(vp), vp, name);
+ }