forked from mirrors/linux
		
	[PATCH] fix d_absolute_path() interplay with fsmount()
stuff in anon namespace should be treated as unattached. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
		
							parent
							
								
									5f9e832c13
								
							
						
					
					
						commit
						f2683bd8d5
					
				
					 1 changed files with 4 additions and 2 deletions
				
			
		| 
						 | 
					@ -116,8 +116,10 @@ static int prepend_path(const struct path *path,
 | 
				
			||||||
				vfsmnt = &mnt->mnt;
 | 
									vfsmnt = &mnt->mnt;
 | 
				
			||||||
				continue;
 | 
									continue;
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
			if (!error)
 | 
								if (is_mounted(vfsmnt) && !is_anon_ns(mnt->mnt_ns))
 | 
				
			||||||
				error = is_mounted(vfsmnt) ? 1 : 2;
 | 
									error = 1;	// absolute root
 | 
				
			||||||
 | 
								else
 | 
				
			||||||
 | 
									error = 2;	// detached or not attached yet
 | 
				
			||||||
			break;
 | 
								break;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		parent = dentry->d_parent;
 | 
							parent = dentry->d_parent;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue