summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2011-03-13 16:42:14 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2011-03-15 02:21:45 -0400
commitbcda76524cd1fa32af748536f27f674a13e56700 (patch)
tree37dbc7fb50b515f3dff820e14d92e768fb1cda31 /net
parent1abf0c718f15a56a0a435588d1b104c7a37dc9bd (diff)
downloadlinux-3.10-bcda76524cd1fa32af748536f27f674a13e56700.tar.gz
linux-3.10-bcda76524cd1fa32af748536f27f674a13e56700.tar.bz2
linux-3.10-bcda76524cd1fa32af748536f27f674a13e56700.zip
Allow O_PATH for symlinks
At that point we can't do almost nothing with them. They can be opened with O_PATH, we can manipulate such descriptors with dup(), etc. and we can see them in /proc/*/{fd,fdinfo}/*. We can't (and won't be able to) follow /proc/*/fd/* symlinks for those; there's simply not enough information for pathname resolution to go on from such point - to resolve a symlink we need to know which directory does it live in. We will be able to do useful things with them after the next commit, though - readlinkat() and fchownat() will be possible to use with dfd being an O_PATH-opened symlink and empty relative pathname. Combined with open_by_handle() it'll give us a way to do realink-by-handle and lchown-by-handle without messing with more redundant syscalls. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions