Messages in this thread | | | From | David Howells <> | Subject | Re: linux-next: manual merge of the selinux tree with the vfs tree | Date | Fri, 30 Nov 2018 15:10:18 +0000 |
| |
Ondrej Mosnacek <omosnace@redhat.com> wrote:
> - if (fc->purpose == FS_CONTEXT_FOR_KERNEL_MOUNT) > + if (fc->purpose == (FS_CONTEXT_FOR_KERNEL_MOUNT|FS_CONTEXT_FOR_SUBMOUNT))
It's not a bitmask, so you can't do that. You'd need to do:
if (fc->purpose == FS_CONTEXT_FOR_KERNEL_MOUNT || fc->purpose == FS_CONTEXT_FOR_SUBMOUNT)
or use a switch.
David
| |