]> git.apps.os.sepia.ceph.com Git - fscrypt.git/commit
Allow fscrypt to work in containers (#213)
authorEric Biggers <ebiggers@google.com>
Fri, 17 Apr 2020 03:43:48 +0000 (20:43 -0700)
committerGitHub <noreply@github.com>
Fri, 17 Apr 2020 03:43:48 +0000 (20:43 -0700)
commitfe860934c793276100b7a60ebbb9325a2cfd910d
treed4599e6a345c4df735e27944ca902cad19c698ca
parent2b160aeb4dccac642bfeca3a0598fcfdc4238842
Allow fscrypt to work in containers (#213)

Update the /proc/self/mountinfo parsing code to allow selecting a Mount
with Subtree != "/", i.e. a Mount not of the full filesystem.  This is
needed to allow fscrypt to work in containers, where the root of the
filesystem may not be mounted.

See findMainMount() for details about the algorithm used.

Resolves https://github.com/google/fscrypt/issues/211
filesystem/filesystem.go
filesystem/mountpoint.go
filesystem/mountpoint_test.go