commit | f890185392aac149caf0631112049f2fb2e0cb41 | [log] [tgz] |
---|---|---|
author | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | Mon May 20 23:04:29 2013 +0530 |
committer | Michael Roth <mdroth@linux.vnet.ibm.com> | Mon May 20 16:23:43 2013 -0500 |
tree | edd6fee576195a23fd04dc1296045742b7cb6c1b | |
parent | 745f6c0ef7f2fcd025e395538f1e2e3c9893de41 [diff] |
hw/9pfs: use O_NOFOLLOW for mapped readlink operation With mapped security models like mapped-xattr and mapped-file, we save the symlink target as file contents. Now if we ever expose a normal directory with mapped security model and find real symlinks in export path, never follow them and return proper error. Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>