linux-next: manual merge of the apparmor tree with the security tree
Subsystems (2)
Hi all,
Today's linux-next merge of the apparmor tree got a conflict in:
security/apparmor/lsm.c
between commit:
3c3bda37ca1d ("AppArmor: Add selfattr hooks")
from the security tree and commits:
bd7bd201ca46 ("apparmor: combine common_audit_data and apparmor_audit_data") d20f5a1a6e79 ("apparmor: rename audit_data->label to audit_data->subj_label")
from the apparmor 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 · 31 lines
Cheers, Stephen Rothwell diff --cc security/apparmor/lsm.c index 5e16c03936b9,4d34180e9799..000000000000 --- a/security/apparmor/lsm.c +++ b/security/apparmor/lsm.c @@@ -771,16 -868,11 +917,16 @@@ out return error; fail: - aad(&sa)->label = begin_current_label_crit_section(); + ad.subj_label = begin_current_label_crit_section(); - ad.info = name; + if (attr == LSM_ATTR_CURRENT) - aad(&sa)->info = "current"; ++ ad.info = "current"; + else if (attr == LSM_ATTR_EXEC) - aad(&sa)->info = "exec"; ++ ad.info = "exec"; + else - aad(&sa)->info = "invalid"; - aad(&sa)->error = error = -EINVAL; - aa_audit_msg(AUDIT_APPARMOR_DENIED, &sa, NULL); - end_current_label_crit_section(aad(&sa)->label); ++ ad.info = "invalid"; + ad.error = error = -EINVAL; + aa_audit_msg(AUDIT_APPARMOR_DENIED, &ad, NULL); + end_current_label_crit_section(ad.subj_label); goto out; }
Paul Moore
maintainerQuoted 16 lines · Stephen Rothwell
Hi all,
Today's linux-next merge of the apparmor tree got a conflict in:
security/apparmor/lsm.cbetween commit:
3c3bda37ca1d("AppArmor: Add selfattr hooks")from the security tree and commits:
bd7bd201ca46("apparmor: combinecommon_audit_dataandapparmor_audit_data")d20f5a1a6e79("apparmor: renameaudit_data->labeltoaudit_data->subj_label")
Quoted 8 lines
from the apparmor 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.
Thanks Stephen.
John, can you take a look and make sure this is correct (it looks okay to me)?
Quoted 28 lines
security/apparmor/lsm.c +7
-7@@@ -771,16 -868,11 +917,16 @@@ outreturn error; fail: -aad (&sa)->label =begin_current_label_crit_section (); + ad.subj_label =begin_current_label_crit_section (); - ad.info = name; + if (attr == LSM_ATTR_CURRENT) -aad (&sa)->info ="current" ; ++ ad.info ="current" ; + else if (attr == LSM_ATTR_EXEC) -aad (&sa)->info ="exec" ; ++ ad.info ="exec" ; + else -aad (&sa)->info ="invalid" ; -aad (&sa)->error = error = -EINVAL ; -aa_audit_msg (AUDIT_APPARMOR_DENIED , &sa,NULL ); -end_current_label_crit_section (aad (&sa)->label); ++ ad.info ="invalid" ; + ad.error = error = -EINVAL ; +aa_audit_msg (AUDIT_APPARMOR_DENIED , &ad,NULL ); +end_current_label_crit_section (ad.subj_label); goto out; }
Signature · 1 line
paul-moore.com
John Johansen
Acked-byQuoted 26 lines · Paul Moore
Quoted 16 lines · Stephen Rothwell
Hi all,
Today's linux-next merge of the apparmor tree got a conflict in:
security/apparmor/lsm.cbetween commit:
3c3bda37ca1d("AppArmor: Add selfattr hooks")from the security tree and commits:
bd7bd201ca46("apparmor: combinecommon_audit_dataandapparmor_audit_data")d20f5a1a6e79("apparmor: renameaudit_data->labeltoaudit_data->subj_label")Quoted 8 lines
from the apparmor 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.
Quoted 4 lines
Thanks Stephen.
John, can you take a look and make sure this is correct (it looks okay to me)?
yes its good, thanks Stephan.
Paul just to double check, to make sure we get ordering on this right
3c3bda37ca1d ("AppArmor: Add selfattr hooks")
is part of the Three basic syscalls series, the plan is still to have that series bake in next for a full cycle?
Regardless, I will wait until security-ext gets merged to send my pull request, and handle the conflict if its present.
Quoted 29 lines
Quoted 28 lines
security/apparmor/lsm.c +7
-7@@@ -771,16 -868,11 +917,16 @@@ outreturn error; fail: -aad (&sa)->label =begin_current_label_crit_section (); + ad.subj_label =begin_current_label_crit_section (); - ad.info = name; + if (attr == LSM_ATTR_CURRENT) -aad (&sa)->info ="current" ; ++ ad.info ="current" ; + else if (attr == LSM_ATTR_EXEC) -aad (&sa)->info ="exec" ; ++ ad.info ="exec" ; + else -aad (&sa)->info ="invalid" ; -aad (&sa)->error = error = -EINVAL ; -aa_audit_msg (AUDIT_APPARMOR_DENIED , &sa,NULL ); -end_current_label_crit_section (aad (&sa)->label); ++ ad.info ="invalid" ; + ad.error = error = -EINVAL ; +aa_audit_msg (AUDIT_APPARMOR_DENIED , &ad,NULL ); +end_current_label_crit_section (ad.subj_label); goto out; }
Paul Moore
maintainerQuoted 33 lines · John Johansen
Quoted 26 lines · Paul Moore
Quoted 16 lines · Stephen Rothwell
Hi all,
Today's linux-next merge of the apparmor tree got a conflict in:
security/apparmor/lsm.cbetween commit:
3c3bda37ca1d("AppArmor: Add selfattr hooks")from the security tree and commits:
bd7bd201ca46("apparmor: combinecommon_audit_dataandapparmor_audit_data")d20f5a1a6e79("apparmor: renameaudit_data->labeltoaudit_data->subj_label")Quoted 8 lines
from the apparmor 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.
Quoted 4 lines
Thanks Stephen.
John, can you take a look and make sure this is correct (it looks okay to me)?
yes its good, thanks Stephan.
Quoted 7 lines
Acked-by John Johansen <[email protected]>Paul just to double check, to make sure we get ordering on this right
3c3bda37ca1d("AppArmor: Add selfattr hooks")is part of the Three basic syscalls series, the plan is still to have that series bake in next for a full cycle?
Yes, that's still the plan. Once v6.7-rc1 is out I'll rebase the LSM syscall patches and I expect the vast majority of these conflicts to disappear, although I'm sure we'll pick up some new ones with the rest of the v6.7-rcX cycle :)
Signature · 1 line
paul-moore.com
Hi Paul,
Quoted 10 lines · On Mon, 30 Oct 2023 12:52:50 -0400 Paul Moore <[email protected]> wrote:
Quoted 3 lines · John Johansen
is part of the Three basic syscalls series, the plan is still to have that series bake in next for a full cycle?
Yes, that's still the plan. Once v6.7-rc1 is out I'll rebase the LSM syscall patches and I expect the vast majority of these conflicts to disappear, although I'm sure we'll pick up some new ones with the rest of the v6.7-rcX cycle :)
These patches should not be in linux-next until after v6.7-rc1.
Signature · 2 lines
Cheers, Stephen Rothwell
Paul Moore
maintainerQuoted 10 lines · Stephen Rothwell
Hi Paul,
Quoted 6 lines · On Mon, 30 Oct 2023 12:52:50 -0400 Paul Moore <[email protected]> wrote:
Quoted 3 lines · John Johansen
is part of the Three basic syscalls series, the plan is still to have that series bake in next for a full cycle?
Quoted 6 lines
Quoted 4 lines
Yes, that's still the plan. Once v6.7-rc1 is out I'll rebase the LSM syscall patches and I expect the vast majority of these conflicts to disappear, although I'm sure we'll pick up some new ones with the rest of the v6.7-rcX cycle :)
These patches should not be in linux-next until after v6.7-rc1.
What if we wanted additional testing beyond the typical? Do you not support that?
Signature · 1 line
paul-moore.com
Hi all,
Quoted 42 lines · On Fri, 27 Oct 2023 13:03:20 +1100 Stephen Rothwell <[email protected]>…
Today's linux-next merge of the apparmor tree got a conflict in:
security/apparmor/lsm.cbetween commit:
3c3bda37ca1d("AppArmor: Add selfattr hooks")from the security tree and commits:
bd7bd201ca46("apparmor: combinecommon_audit_dataandapparmor_audit_data")d20f5a1a6e79("apparmor: renameaudit_data->labeltoaudit_data->subj_label")from the apparmor 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.
security/apparmor/lsm.c +3
-3@@@ -771,16 -868,11 +917,16 @@@ outreturn error; fail: -aad (&sa)->label =begin_current_label_crit_section (); + ad.subj_label =begin_current_label_crit_section (); - ad.info = name; + if (attr == LSM_ATTR_CURRENT) -aad (&sa)->info ="current" ; ++ ad.info ="current" ; + else if (attr == LSM_ATTR_EXEC) -aad (&sa)->info ="exec" ; ++ ad.info ="exec" ; + else
security/apparmor/lsm.c
Quoted 10 lines
security/apparmor/lsm.c +4
-4-aad (&sa)->info ="invalid" ; -aad (&sa)->error = error = -EINVAL ; -aa_audit_msg (AUDIT_APPARMOR_DENIED , &sa,NULL ); -end_current_label_crit_section (aad (&sa)->label); ++ ad.info ="invalid" ; + ad.error = error = -EINVAL ; +aa_audit_msg (AUDIT_APPARMOR_DENIED , &ad,NULL ); +end_current_label_crit_section (ad.subj_label); goto out; }
This is now a conflict between the security tree and Linus' tree.
Signature · 2 lines
Cheers, Stephen Rothwell
Hi Paul,
[Sorry for the slow reply]
Quoted 15 lines · On Mon, 30 Oct 2023 17:04:01 -0400 Paul Moore <[email protected]> wrote:
Quoted 13 lines · Stephen Rothwell
Quoted 10 lines · On Mon, 30 Oct 2023 12:52:50 -0400 Paul Moore <[email protected]> wrote:
Quoted 3 lines · John Johansen
is part of the Three basic syscalls series, the plan is still to have that series bake in next for a full cycle?
Yes, that's still the plan. Once v6.7-rc1 is out I'll rebase the LSM syscall patches and I expect the vast majority of these conflicts to disappear, although I'm sure we'll pick up some new ones with the rest of the v6.7-rcX cycle :)
Quoted 4 lines
Quoted 1 line
These patches should not be in linux-next until after v6.7-rc1.
What if we wanted additional testing beyond the typical? Do you not support that?
No, I try hard not to. It just complicates things when I and others have to cope with conflicts and build problems caused by patches/features destined for next+1 while trying to stabilise the current/next release.
Sometimes it happens that a feature slips after being added to -next, but please don't do it deliberately.
Signature · 2 lines
Cheers, Stephen Rothwell
Paul Moore
maintainerQuoted 23 lines · Stephen Rothwell
Hi Paul,
[Sorry for the slow reply]
Quoted 17 lines · On Mon, 30 Oct 2023 17:04:01 -0400 Paul Moore <[email protected]> wrote:
Quoted 14 lines · Stephen Rothwell
Quoted 10 lines · On Mon, 30 Oct 2023 12:52:50 -0400 Paul Moore <[email protected]> wrote:
Quoted 3 lines · John Johansen
is part of the Three basic syscalls series, the plan is still to have that series bake in next for a full cycle?
Yes, that's still the plan. Once v6.7-rc1 is out I'll rebase the LSM syscall patches and I expect the vast majority of these conflicts to disappear, although I'm sure we'll pick up some new ones with the rest of the v6.7-rcX cycle :)
These patches should not be in linux-next until after v6.7-rc1.
Quoted 7 lines
Quoted 2 lines
What if we wanted additional testing beyond the typical? Do you not support that?
No, I try hard not to. It just complicates things when I and others have to cope with conflicts and build problems caused by patches/features destined for next+1 while trying to stabilise the current/next release.
The LSM, SELinux, and audit dev-staging branches will no longer flow into the next branches, and I've reset the current lsm/next branch so this should not be an issue the next time you pull.
Quoted 2 lines
Sometimes it happens that a feature slips after being added to -next, but please don't do it deliberately.
Signature · 1 line
paul-moore.com
Hi Paul,
Quoted 4 lines · On Sun, 5 Nov 2023 18:36:49 -0500 Paul Moore <[email protected]> wrote:
The LSM, SELinux, and audit dev-staging branches will no longer flow into the next branches, and I've reset the current lsm/next branch so this should not be an issue the next time you pull.
Thanks for that. It can all come back after the merge window, of course.
Signature · 2 lines
Cheers, Stephen Rothwell