All of lore.kernel.org
 help / color / mirror / Atom feed
* linux-next: manual merge of the keys tree with the bpf-next tree
@ 2020-03-30  2:06 Stephen Rothwell
  2020-04-05  1:02 ` Stephen Rothwell
  0 siblings, 1 reply; 2+ messages in thread
From: Stephen Rothwell @ 2020-03-30  2:06 UTC (permalink / raw)
  To: David Howells, Daniel Borkmann, Alexei Starovoitov, Networking,
	David Miller
  Cc: Linux Next Mailing List, Linux Kernel Mailing List, KP Singh

[-- Attachment #1: Type: text/plain, Size: 2144 bytes --]

Hi all,

Today's linux-next merge of the keys tree got a conflict in:

  include/linux/lsm_hooks.h

between commit:

  98e828a0650f ("security: Refactor declaration of LSM hooks")

from the bpf-next tree and commits:

  e8fa137bb3cb ("security: Add hooks to rule on setting a watch")
  858bc27762c1 ("security: Add a hook for the point of notification insertion")

from the keys tree.

I fixed it up (I used the former version of this file and added the
following merge resolution patch) 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.

From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Mon, 30 Mar 2020 12:55:31 +1100
Subject: [PATCH] security: keys: fixup for "security: Refactor declaration of
 LSM hooks"

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
 include/linux/lsm_hook_defs.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/include/linux/lsm_hook_defs.h b/include/linux/lsm_hook_defs.h
index 9cd4455528e5..4f8d63fd1327 100644
--- a/include/linux/lsm_hook_defs.h
+++ b/include/linux/lsm_hook_defs.h
@@ -252,6 +252,16 @@ LSM_HOOK(int, 0, inode_notifysecctx, struct inode *inode, void *ctx, u32 ctxlen)
 LSM_HOOK(int, 0, inode_setsecctx, struct dentry *dentry, void *ctx, u32 ctxlen)
 LSM_HOOK(int, 0, inode_getsecctx, struct inode *inode, void **ctx,
 	 u32 *ctxlen)
+#ifdef CONFIG_KEY_NOTIFICATIONS
+LSM_HOOK(int, 0, watch_key, struct key *key)
+#endif
+#ifdef CONFIG_DEVICE_NOTIFICATIONS
+LSM_HOOK(int, 0, watch_devices, void)
+#endif
+#ifdef CONFIG_WATCH_QUEUE
+LSM_HOOK(int, 0, post_notification, const struct cred *w_cred,
+	 const struct cred *cred, struct watch_notification *n)
+#endif
 
 #ifdef CONFIG_SECURITY_NETWORK
 LSM_HOOK(int, 0, unix_stream_connect, struct sock *sock, struct sock *other,
-- 
2.25.0

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: linux-next: manual merge of the keys tree with the bpf-next tree
  2020-03-30  2:06 linux-next: manual merge of the keys tree with the bpf-next tree Stephen Rothwell
@ 2020-04-05  1:02 ` Stephen Rothwell
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Rothwell @ 2020-04-05  1:02 UTC (permalink / raw)
  To: David Howells
  Cc: Daniel Borkmann, Alexei Starovoitov, Networking, David Miller,
	Linux Next Mailing List, Linux Kernel Mailing List, KP Singh

[-- Attachment #1: Type: text/plain, Size: 2405 bytes --]

Hi all,

On Mon, 30 Mar 2020 13:06:36 +1100 Stephen Rothwell <sfr@canb.auug.org.au> wrote:
>
> Today's linux-next merge of the keys tree got a conflict in:
> 
>   include/linux/lsm_hooks.h
> 
> between commit:
> 
>   98e828a0650f ("security: Refactor declaration of LSM hooks")
> 
> from the bpf-next tree and commits:
> 
>   e8fa137bb3cb ("security: Add hooks to rule on setting a watch")
>   858bc27762c1 ("security: Add a hook for the point of notification insertion")
> 
> from the keys tree.
> 
> I fixed it up (I used the former version of this file and added the
> following merge resolution patch) 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.
> 
> From: Stephen Rothwell <sfr@canb.auug.org.au>
> Date: Mon, 30 Mar 2020 12:55:31 +1100
> Subject: [PATCH] security: keys: fixup for "security: Refactor declaration of
>  LSM hooks"
> 
> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
> ---
>  include/linux/lsm_hook_defs.h | 10 ++++++++++
>  1 file changed, 10 insertions(+)
> 
> diff --git a/include/linux/lsm_hook_defs.h b/include/linux/lsm_hook_defs.h
> index 9cd4455528e5..4f8d63fd1327 100644
> --- a/include/linux/lsm_hook_defs.h
> +++ b/include/linux/lsm_hook_defs.h
> @@ -252,6 +252,16 @@ LSM_HOOK(int, 0, inode_notifysecctx, struct inode *inode, void *ctx, u32 ctxlen)
>  LSM_HOOK(int, 0, inode_setsecctx, struct dentry *dentry, void *ctx, u32 ctxlen)
>  LSM_HOOK(int, 0, inode_getsecctx, struct inode *inode, void **ctx,
>  	 u32 *ctxlen)
> +#ifdef CONFIG_KEY_NOTIFICATIONS
> +LSM_HOOK(int, 0, watch_key, struct key *key)
> +#endif
> +#ifdef CONFIG_DEVICE_NOTIFICATIONS
> +LSM_HOOK(int, 0, watch_devices, void)
> +#endif
> +#ifdef CONFIG_WATCH_QUEUE
> +LSM_HOOK(int, 0, post_notification, const struct cred *w_cred,
> +	 const struct cred *cred, struct watch_notification *n)
> +#endif
>  
>  #ifdef CONFIG_SECURITY_NETWORK
>  LSM_HOOK(int, 0, unix_stream_connect, struct sock *sock, struct sock *other,
> -- 
> 2.25.0

This is now a conflict between the keys tree and Linus' tree.
-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-04-05  1:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-30  2:06 linux-next: manual merge of the keys tree with the bpf-next tree Stephen Rothwell
2020-04-05  1:02 ` Stephen Rothwell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.