selinux: incrementing the count of known PFs.
PATCH 1/1 selinux: incrementing the count of known PFs.
This was needed for my bindep-pkg build. Not sure what config option requires it.
---
From 62063ad20509ba448f5601343b44647a00f5fcc2 Mon Sep 17 00:00:00 2001
From: Giulio Moro <[email protected]>
Date: Wed, 17 Aug 2022 15:50:52 +0000
Subject: [PATCH] selinux: incrementing the count of known PFs.
Fixup for a24b313bd77a4b3e15168d8115a8d661113fac0b
'selinux: dovetail: declare oob socket class'
--- security/selinux/include/classmap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
security/selinux/include/classmap.h +1 -1
@@ -257,6 +257,6 @@ struct security_class_mapping secclass_map[] = { { NULL } }; -#if PF_MAX >46 +#if PF_MAX >47 #error New address family defined, please update secclass_map.#endif
--
2.25.1
Quoted 35 lines · Giulio Moro
This was needed for my bindep-pkg build. Not sure what config option requires it.
---
From
62063ad20509ba448f5601343b44647a00f5fcc2Mon Sep 17 00:00:00 2001
From: Giulio Moro <[email protected]>
Date: Wed, 17 Aug 2022 15:50:52 +0000
Subject: [PATCH] selinux: incrementing the count of known PFs.Fixup for
a24b313bd77a4b3e15168d8115a8d661113fac0b'selinux: dovetail: declare oob socket class'Signed-off-by Giulio Moro <[email protected]>---
security/selinux/include/classmap.h | 2 +-1 file changed, 1 insertion(+), 1 deletion(-)security/selinux/include/classmap.h +1
-1@@ -257,6 +257,6 @@ struct security_class_mapping secclass_map[] = { { NULL } }; -#if PF_MAX >46 +#if PF_MAX >47 #error New address family defined, please update secclass_map. #endifSignature · 1 line
2.25.1
Which dovetail kernel versions is this targeting?
Jan
Signature · 2 lines
Siemens AG, Technology Competence Center Embedded Linux
[resending because it bounced back from the list]
Quoted 1 line
Which dovetail kernel versions is this targeting?
This was applied and tested on https://source.denx.de/Xenomai/xenomai4/linux-evl/-/tree/vendor/ti/v5.10.120 but it should be equally required and work equally well to https://source.denx.de/Xenomai/xenomai4/linux-evl/-/tree/v5.10.y-evl-rebase and probably any containing the same commit 'selinux: dovetail: declare oob socket class'
Jan Kiszka wrote on 18/08/2022 14:50:
Quoted 41 lines · Giulio Moro
Quoted 35 lines
This was needed for my bindep-pkg build. Not sure what config option requires it.
---
From
62063ad20509ba448f5601343b44647a00f5fcc2Mon Sep 17 00:00:00 2001
From: Giulio Moro <[email protected]>
Date: Wed, 17 Aug 2022 15:50:52 +0000
Subject: [PATCH] selinux: incrementing the count of known PFs.Fixup for
a24b313bd77a4b3e15168d8115a8d661113fac0b
'selinux: dovetail: declare oob socket class'Signed-off-by Giulio Moro <[email protected]>--- security/selinux/include/classmap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)security/selinux/include/classmap.h +1
-1@@ -257,6 +257,6 @@ struct security_class_mapping secclass_map[] = { { NULL } }; -#if PF_MAX >46 +#if PF_MAX >47 #error New address family defined, please update secclass_map. #endifSignature · 1 line
2.25.1Which dovetail kernel versions is this targeting?
Jan
Quoted 11 lines · Giulio Moro
[resending because it bounced back from the list]
Quoted 1 line
Which dovetail kernel versions is this targeting?
This was applied and tested on
https://source.denx.de/Xenomai/xenomai4/linux-evl/-/tree/vendor/ti/v5.10.120
but it should be equally required and work equally well to
https://source.denx.de/Xenomai/xenomai4/linux-evl/-/tree/v5.10.y-evl-rebase
and probably any containing the same commit 'selinux: dovetail: declare oob socket class'
Ok, thanks. So, it's only 5.10 or also later version?
Philippe will have to handle this change, adding him.
Quoted 15 lines
Jan Kiszka wrote on 18/08/2022 14:50:
Quoted 13 lines · Giulio Moro
Quoted 12 lines
This was needed for my bindep-pkg build. Not sure what config option requires it.
---
From
62063ad20509ba448f5601343b44647a00f5fcc2Mon Sep 17 00:00:00 2001
From: Giulio Moro <[email protected]>
Date: Wed, 17 Aug 2022 15:50:52 +0000
Subject: [PATCH] selinux: incrementing the count of known PFs.Fixup for
a24b313bd77a4b3e15168d8115a8d661113fac0b'selinux: dovetail: declare oob socket class'
FWIW, I don't find this commit ID in linux-dovetail.git or linux-evl.git. And looking at it, it's definitely remains unclear to me why we should doe PX_MAX += 2 here. Can you elaborate?
Jan
Quoted 29 lines
Quoted 28 lines
Quoted 19 lines
Signed-off-by Giulio Moro <[email protected]>---
security/selinux/include/classmap.h | 2 +-1 file changed, 1 insertion(+), 1 deletion(-)security/selinux/include/classmap.h +1
-1@@ -257,6 +257,6 @@ struct security_class_mapping secclass_map[] = { { NULL } }; -#if PF_MAX >46 +#if PF_MAX >47 #error New address family defined, please update secclass_map. #endifQuoted 4 lines
--
2.25.1Which dovetail kernel versions is this targeting?
Jan
Signature · 2 lines
Siemens AG, Technology Competence Center Embedded Linux