summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
authorJerry Jelinek <jerry.jelinek@joyent.com>2012-03-16 01:16:04 +0000
committerJerry Jelinek <jerry.jelinek@joyent.com>2012-03-16 01:16:04 +0000
commit93c4aa5e044dab4275fd2ca94a5f16f8580ba9db (patch)
treecad3afc0be6507a813561f12755faace0c0ee991 /usr/src
parent39149f5f6f2da14aaad8ba2938c423d7f1608470 (diff)
downloadillumos-joyent-93c4aa5e044dab4275fd2ca94a5f16f8580ba9db.tar.gz
OS-1037 hyprlofs shouldn't require linkdir priv
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/uts/common/fs/hyprlofs/hyprlofs_vnops.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr/src/uts/common/fs/hyprlofs/hyprlofs_vnops.c b/usr/src/uts/common/fs/hyprlofs/hyprlofs_vnops.c
index 01cb6da15e..45b7d4db87 100644
--- a/usr/src/uts/common/fs/hyprlofs/hyprlofs_vnops.c
+++ b/usr/src/uts/common/fs/hyprlofs/hyprlofs_vnops.c
@@ -940,9 +940,7 @@ hyprlofs_remove(vnode_t *dvp, char *nm, cred_t *cr, caller_context_t *ct,
rw_enter(&parent->hln_rwlock, RW_WRITER);
rw_enter(&hp->hln_rwlock, RW_WRITER);
- if (hp->hln_type != VDIR ||
- (error = secpolicy_fs_linkdir(cr, dvp->v_vfsp)) == 0)
- error = hyprlofs_dirdelete(parent, hp, nm, DR_REMOVE, cr);
+ error = hyprlofs_dirdelete(parent, hp, nm, DR_REMOVE, cr);
rw_exit(&hp->hln_rwlock);
rw_exit(&parent->hln_rwlock);