linux-next: manual merge of the keys tree with the integrity tree
Hi all,
Today's linux-next merge of the keys tree got a conflict in:
security/integrity/digsig.c
between commit:
8c655784e2cf ("integrity: Fix __integrity_init_keyring() section mismatch")
from the integrity tree and commit:
79512db59dc8 ("keys: Replace uid/gid/perm permissions checking with an ACL")
from the keys tree.
I fixed it up (see below) 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.
Signature · 20 lines
Cheers,
Stephen Rothwell
diff --cc security/integrity/digsig.c
index 868ade3e8970,e432900c00b9..000000000000
--- a/security/integrity/digsig.c
+++ b/security/integrity/digsig.c
@@@ -69,9 -70,8 +70,9 @@@ int integrity_digsig_verify(const unsig
return -EOPNOTSUPP;
}
-static int __integrity_init_keyring(const unsigned int id, struct key_acl *acl,
- struct key_restriction *restriction)
+static int __init __integrity_init_keyring(const unsigned int id,
- key_perm_t perm,
++ struct key_acl *acl,
+ struct key_restriction *restriction)
{
const struct cred *cred = current_cred();
int err = 0;Hi all,
Quoted 33 lines · On Wed, 26 Jun 2019 14:33:33 +1000 Stephen Rothwell <[email protected]>…
Today's linux-next merge of the keys tree got a conflict in:
security/integrity/digsig.cbetween commit:
8c655784e2cf("integrity: Fix__integrity_init_keyring()section mismatch")from the integrity tree and commit:
79512db59dc8("keys: Replace uid/gid/perm permissions checking with an ACL")from the keys tree.
I fixed it up (see below) 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.
Signature · 2 lines
Cheers, Stephen Rothwellsecurity/integrity/digsig.c +0
-0@@@ -69,9 -70,8 +70,9 @@@ int integrity_digsig_verify(const unsigreturn -EOPNOTSUPP ; }
security/integrity/digsig.c
Quoted 10 lines
security/integrity/digsig.c +1
-1-static int __integrity_init_keyring(const unsigned int id, struct key_acl *acl, - struct key_restriction *restriction) +static int __init __integrity_init_keyring(const unsigned int id, -key_perm_t perm, ++ struct key_acl *acl, + struct key_restriction *restriction) {const struct cred *cred =current_cred ();int err =0 ;
I am still getting this conflict (the commit ids may have changed). Just a reminder in case you think Linus may need to know.
Signature · 2 lines
Cheers, Stephen Rothwell
Hi Stephen,
Quoted 8 lines · Stephen Rothwell
Quoted 8 lines
security/integrity/digsig.c +0
-0@@@ -69,9 -70,8 +70,9 @@@ int integrity_digsig_verify(const unsigreturn -EOPNOTSUPP ; }
Quoted 12 lines
security/integrity/digsig.c
Quoted 9 lines
-static int __integrity_init_keyring(const unsigned int id, struct
key_acl*acl,
- structkey_restriction*restriction)
+static int__init__integrity_init_keyring(const unsigned int id,security/integrity/digsig.c +1
-1- key_perm_t perm, ++ struct key_acl *acl, + struct key_restriction *restriction) {const struct cred *cred =current_cred ();int err =0 ;I am still getting this conflict (the commit ids may have changed). Just a reminder in case you think Linus may need to know.
Thank you for carrying the patch! I did remember to mention it in the pull request. :)
Mimi
Hi Mimi,
Quoted 3 lines · On Mon, 08 Jul 2019 20:31:35 -0400 Mimi Zohar <[email protected]> wrote:
Thank you for carrying the patch! I did remember to mention it in the pull request. :)
Excellent!
Signature · 2 lines
Cheers, Stephen Rothwell