lkml.org 
[lkml]   [2018]   [Nov]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: linux-next: manual merge of the selinux tree with the vfs tree
Date
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

\
 
 \ /
  Last update: 2018-11-30 16:10    [W:0.144 / U:0.636 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site