[PATCH 3/3] ceph: make ceph ACL for symlink inheritable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Default ACL couldn't be inherited by the symlink in the
parent directory. This resolve it.

Signed-off-by: Guangliang Zhao <lucienchao@xxxxxxxxx>
---
 fs/ceph/dir.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/fs/ceph/dir.c b/fs/ceph/dir.c
index 619616d..2650570 100644
--- a/fs/ceph/dir.c
+++ b/fs/ceph/dir.c
@@ -735,6 +735,10 @@ static int ceph_symlink(struct inode *dir, struct dentry *dentry,
 	if (!err && !req->r_reply_info.head->is_dentry)
 		err = ceph_handle_notrace_create(dir, dentry);
 	ceph_mdsc_put_request(req);
+
+	if (!err)
+		err = ceph_init_acl(dentry, dentry->d_inode, dir);
+
 	if (err)
 		d_drop(dentry);
 	return err;
-- 
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux