blob: 0c414c995cdf4093c3b0e37788d7ced387f43d07 [file] [log] [blame]
# Copyright 2018 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
AUTHOR = "The Chromium OS Authors"
DOC = """
When mounting a filesystem, Linux provides no way to specify that symlink
traversal should be blocked on the given filesystem. For user-supplied
filesystems in particular (sshfs, external storage media, etc.), we wish to
block symlink traversal to prevent CrOS code (e.g. the Files app) from being
tricked into following unexpected symlinks. We have added functionality to the
chromiumos LSM to enable a "nosymfollow" option, which can be provided as part
of the mount command to ensure the kernel does not allow symlink traversal on
the filesystem.
NAME = "security_NosymfollowMountOption"
Ensure the blocking of symlink traversal on a per-filesystem basis works as
This autotest ensures that symlink traversal is blocked on filesystems that
were mounted with the "nosymfollow" option, as well as that filesystems
mounted without that option can still traverse symlinks.
ATTRIBUTES = "suite:bvt-perbuild"
TEST_CLASS = "security"
TEST_CATEGORY = "Functional"
TEST_TYPE = "client"