[lkml]   [2018]   [Nov]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: linux-next: manual merge of the selinux tree with the vfs tree
On Tue, Nov 27, 2018 at 1:52 AM Stephen Rothwell <> wrote:
> Hi Paul,
> Today's linux-next merge of the selinux tree got a conflict in:
> security/selinux/hooks.c
> between commit:
> 0472421f47a9 ("vfs: Remove unused code after filesystem context changes")
> from the vfs tree and commit:
> 2cbdcb882f97 ("selinux: always allow mounting submounts")
> from the selinux tree.
> I fixed it up (the former removed the function updated by the latter -
> I am not sure if there are further changes necessary) and can carry the
> fix as necessary. This is now fixed as far as linux-next is concerned,
> but any non trivial conflicts should be mentioned to your upstream
> maintainer when your tree is submitted for merging. You may also want
> to consider cooperating with the maintainer of the conflicting tree to
> minimise any particularly complex conflicts.

Hm... seems that there was some massive overhaul in the VFS code right
at the wrong moment... There are new hooks for mounting now and the
code that our commit changes is now here:

It seems that the logic is still the same, just now our patch (or the
VFS one) needs to be updated to change the above line as such
(untested pseudo-patch):

- if (fc->purpose == FS_CONTEXT_FOR_KERNEL_MOUNT)

Thanks for the heads up, Stephen!

Ondrej Mosnacek <omosnace at redhat dot com>
Associate Software Engineer, Security Technologies
Red Hat, Inc.

 \ /
  Last update: 2018-11-27 09:53    [W:0.133 / U:23.568 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site