aboutsummaryrefslogtreecommitdiff
path: root/filesystem/filesystem.go
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2022-01-18 21:11:01 -0800
committerGitHub <noreply@github.com>2022-01-18 21:11:01 -0800
commitfac30865c04de8f4698776e94dd86c7a88fd5da2 (patch)
tree58d70d8ded0c14baeec01e0db1991385419a376c /filesystem/filesystem.go
parent7813af71eba05166e0c2f7056e094ca8756fbe8e (diff)
parent5ae7da4ee6582099de5d1b14733f8d58f4dc2816 (diff)
Merge pull request #337 from google/broken-links
filesystem: store mountpoint in link files as a fallback
Diffstat (limited to 'filesystem/filesystem.go')
-rw-r--r--filesystem/filesystem.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/filesystem/filesystem.go b/filesystem/filesystem.go
index 0b30452..ab4badb 100644
--- a/filesystem/filesystem.go
+++ b/filesystem/filesystem.go
@@ -176,8 +176,7 @@ var SortDescriptorsByLastMtime = false
//
// There is also the ability to reference another filesystem's metadata. This is
// used when a Policy on filesystem A is protected with Protector on filesystem
-// B. In this scenario, we store a "link file" in the protectors directory whose
-// contents look like "UUID=3a6d9a76-47f0-4f13-81bf-3332fbe984fb".
+// B. In this scenario, we store a "link file" in the protectors directory.
//
// We also allow ".fscrypt" to be a symlink which was previously created. This
// allows login protectors to be created when the root filesystem is read-only,
@@ -588,7 +587,7 @@ func (m *Mount) AddLinkedProtector(descriptor string, dest *Mount) (bool, error)
// Right now, we only make links using UUIDs.
var newLink string
- newLink, err = makeLink(dest, "UUID")
+ newLink, err = makeLink(dest)
if err != nil {
return false, err
}