Re: [PATCH v2] nfs: Fix automount superblock LSM init problem, preventing sb sharing

From: David Howells
Date: Fri Aug 05 2022 - 09:43:28 EST


Jeff Layton <jlayton@xxxxxxxxxx> wrote:

> I hit a problem when testing this:

if (reference) {

should be:

if (fc->purpose == FS_CONTEXT_FOR_SUBMOUNT) {

in both selinux and smack.

David