275
275
mounted guest fs. Trying to be clever and specifying a
276
276
path with '..' in it will hit this safeguard.
278
absolute_path, _err = utils.execute('readlink', '-nm',
279
281
if not absolute_path.startswith(os.path.realpath(fs) + '/'):
280
282
raise exception.Invalid()