Skip to contentSkip to conversation

Downloading SELinux for TISDK

PATCH Superseded Aashvij Shenai 3 participants 4 messages Nov 14, 2024 – Nov 17, 2024

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover Downloading SELinux for TISDK

This patch enables the meta-selinux layer to come into the layers of current builds. SELinux allows for access control needed for runtime security.

Aashvij Shenai (1):
oe-layersetup: Bringing meta-selinux into Yocto builds

 configs/arago-scarthgap-config.txt      | 1 +
 configs/arago-scarthgap-next-config.txt | 1 +
 configs/arago-scarthgap-wip-config.txt  | 1 +
 3 files changed, 3 insertions(+)
Signature · 1 line
2.34.1
#1 lore raw

PATCH 1/1 oe-layersetup: Bringing meta-selinux into Yocto builds

This patch downloads the meta-selinux layer for the scarthgap branch

---
 configs/arago-scarthgap-config.txt      | 1 +
 configs/arago-scarthgap-next-config.txt | 1 +
 configs/arago-scarthgap-wip-config.txt  | 1 +
 3 files changed, 3 insertions(+)
configs/arago-scarthgap-config.txt +1 -0
index f95056d..1fd092b 100644
@@ -2,6 +2,7 @@
 # repo name,repo uri,repo branch,repo commit[,layers=layer1:layer2...:layern]
 
 bitbake,https://git.openembedded.org/bitbake,2.8,HEAD
+meta-selinux,https://git.yoctoproject.org/meta-selinux,scarthgap,3aff015697fa056b4af83b1c9ba44eca346a8a37
 meta-arago,https://git.yoctoproject.org/meta-arago,scarthgap,HEAD,layers=meta-arago-distro:meta-arago-extras:meta-arago-demos:meta-arago-test
 #meta-browser,https://github.com/OSSystems/meta-browser.git,master,1ed2254d72a4c25879014c98be287a7e3e22904c,layers=meta-chromium
 meta-qt5,https://github.com/meta-qt5/meta-qt5.git,scarthgap,HEAD,layers=
configs/arago-scarthgap-next-config.txt +1 -0
index cd69c01..dbdec3a 100644
@@ -10,6 +10,7 @@ MOTD: NOTE: to point the recipe to the appropriate cicd/next branch for that rec
 MOTD: NOTE:
 
 bitbake,https://git.openembedded.org/bitbake,2.8,HEAD
+meta-selinux,https://git.yoctoproject.org/meta-selinux,scarthgap,3aff015697fa056b4af83b1c9ba44eca346a8a37
 meta-arago,https://git.yoctoproject.org/meta-arago,scarthgap-next,HEAD,layers=meta-arago-distro:meta-arago-extras:meta-arago-demos:meta-arago-test
 #meta-browser,https://github.com/OSSystems/meta-browser.git,master,1ed2254d72a4c25879014c98be287a7e3e22904c,layers=meta-chromium
 meta-qt5,https://github.com/meta-qt5/meta-qt5.git,scarthgap,HEAD,layers=
configs/arago-scarthgap-wip-config.txt +1 -0
index 2dd8209..b93f76f 100644
@@ -2,6 +2,7 @@
 # repo name,repo uri,repo branch,repo commit[,layers=layer1:layer2...:layern]
 
 bitbake,https://git.openembedded.org/bitbake,2.8,HEAD
+meta-selinux,https://git.yoctoproject.org/meta-selinux,scarthgap,3aff015697fa056b4af83b1c9ba44eca346a8a37
 meta-arago,https://git.yoctoproject.org/meta-arago,scarthgap-wip,HEAD,layers=meta-arago-distro:meta-arago-extras:meta-arago-demos:meta-arago-test
 #meta-browser,https://github.com/OSSystems/meta-browser.git,master,1ed2254d72a4c25879014c98be287a7e3e22904c,layers=meta-chromium
 meta-qt5,https://github.com/meta-qt5/meta-qt5.git,scarthgap,HEAD,layers=
Signature · 1 line
2.34.1
#2 lore raw

Re: [oe-layersetup][master][PATCH v1 1/1] oe-layersetup: Bringing meta-selinux into Yocto builds

NAK.

There is a new system for maintaining the configs in oe-layersetup. You can view the README for more info.

Basically, you need to modify the XML source files, then run make to generate all of the various configs. We do not edit the configs directly anymore.

Also, if you are going to add something like then, then you need to make sure you are including ALL of the configs that we do, otherwise I have go through and copy these changes to the other configs as well.

You are missing:
arago-scarthgap-chromium-config

and the master configs:
arago-master-chromium-config
arago-master-config
arago-master-next-config
arago-master-wip-config

Quoted 45 lines · Aashvij Shenai

This patch downloads the meta-selinux layer for the scarthgap branch

---
  configs/arago-scarthgap-config.txt      | 1 +
  configs/arago-scarthgap-next-config.txt | 1 +
  configs/arago-scarthgap-wip-config.txt  | 1 +
  3 files changed, 3 insertions(+)
configs/arago-scarthgap-config.txt +1 -0
index f95056d..1fd092b 100644
@@ -2,6 +2,7 @@
  # repo name,repo uri,repo branch,repo commit[,layers=layer1:layer2...:layern]
 
  bitbake,https://git.openembedded.org/bitbake,2.8,HEAD
+meta-selinux,https://git.yoctoproject.org/meta-selinux,scarthgap,3aff015697fa056b4af83b1c9ba44eca346a8a37
  meta-arago,https://git.yoctoproject.org/meta-arago,scarthgap,HEAD,layers=meta-arago-distro:meta-arago-extras:meta-arago-demos:meta-arago-test
  #meta-browser,https://github.com/OSSystems/meta-browser.git,master,1ed2254d72a4c25879014c98be287a7e3e22904c,layers=meta-chromium
  meta-qt5,https://github.com/meta-qt5/meta-qt5.git,scarthgap,HEAD,layers=
configs/arago-scarthgap-next-config.txt +1 -0
index cd69c01..dbdec3a 100644
@@ -10,6 +10,7 @@ MOTD: NOTE: to point the recipe to the appropriate cicd/next branch for that rec
  MOTD: NOTE:
 
  bitbake,https://git.openembedded.org/bitbake,2.8,HEAD
+meta-selinux,https://git.yoctoproject.org/meta-selinux,scarthgap,3aff015697fa056b4af83b1c9ba44eca346a8a37
  meta-arago,https://git.yoctoproject.org/meta-arago,scarthgap-next,HEAD,layers=meta-arago-distro:meta-arago-extras:meta-arago-demos:meta-arago-test
  #meta-browser,https://github.com/OSSystems/meta-browser.git,master,1ed2254d72a4c25879014c98be287a7e3e22904c,layers=meta-chromium
  meta-qt5,https://github.com/meta-qt5/meta-qt5.git,scarthgap,HEAD,layers=
configs/arago-scarthgap-wip-config.txt +1 -0
index 2dd8209..b93f76f 100644
@@ -2,6 +2,7 @@
  # repo name,repo uri,repo branch,repo commit[,layers=layer1:layer2...:layern]
 
  bitbake,https://git.openembedded.org/bitbake,2.8,HEAD
+meta-selinux,https://git.yoctoproject.org/meta-selinux,scarthgap,3aff015697fa056b4af83b1c9ba44eca346a8a37
  meta-arago,https://git.yoctoproject.org/meta-arago,scarthgap-wip,HEAD,layers=meta-arago-distro:meta-arago-extras:meta-arago-demos:meta-arago-test
  #meta-browser,https://github.com/OSSystems/meta-browser.git,master,1ed2254d72a4c25879014c98be287a7e3e22904c,layers=meta-chromium
  meta-qt5,https://github.com/meta-qt5/meta-qt5.git,scarthgap,HEAD,layers=
Signature · 3 lines
Ryan Eatmon                [email protected]
-----------------------------------------
Texas Instruments, Inc.  -  LCPD  -  MGTS
#3 lore raw

Re: [oe-layersetup][master][PATCH v1 1/1] oe-layersetup: Bringing meta-selinux into Yocto builds

Hi,

Quoted 11 lines · Ryan Eatmon

NAK.

There is a new system for maintaining the configs in oe-layersetup.  You can view the README for more info.

Basically, you need to modify the XML source files, then run make to generate all of the various configs.  We do not edit the configs directly anymore.

Also, if you are going to add something like then, then you need to make sure you are including ALL of the configs that we do, otherwise I have go through and copy these changes to the other configs as well.

You are missing:
arago-scarthgap-chromium-config

Before adding it in chromium configs we need to ensure that meta-browser:meta-chromium & meta-selinux go well together

I believe Aashvij's entire selinux bringup on Arago distribution was with scarthgap config which has meta-browser disabled by default

--
Chirag

Quoted 56 lines

and the master configs:
arago-master-chromium-config
arago-master-config
arago-master-next-config
arago-master-wip-config

Quoted 46 lines · Aashvij Shenai

This patch downloads the meta-selinux layer for the scarthgap branch

---
  configs/arago-scarthgap-config.txt      | 1 +
  configs/arago-scarthgap-next-config.txt | 1 +
  configs/arago-scarthgap-wip-config.txt  | 1 +

  3 files changed, 3 insertions(+)
configs/arago-scarthgap-config.txt +0 -0
index f95056d..1fd092b 100644
@@ -2,6 +2,7 @@
   # repo name,repo uri,repo branch,repo commit[,layers=layer1:layer2...:layern]

    bitbake,https://git.openembedded.org/bitbake,2.8,HEAD +meta-selinux,https://git.yoctoproject.org/meta-selinux,scarthgap,3aff015697fa056b4af83b1c9ba44eca346a8a37

meta-arago,https://git.yoctoproject.org/meta-arago,scarthgap,HEAD,layers=meta-arago-distro:meta-arago-extras:meta-arago-demos:meta-arago-test #meta-browser,https://github.com/OSSystems/meta-browser.git,master,1ed2254d72a4c25879014c98be287a7e3e22904c,layers=meta-chromium meta-qt5,https://github.com/meta-qt5/meta-qt5.git,scarthgap,HEAD,layers=

configs/arago-scarthgap-next-config.txt +0 -0
index cd69c01..dbdec3a 100644
@@ -10,6 +10,7 @@ MOTD: NOTE: to point the recipe to the appropriate 

cicd/next branch for that rec
  MOTD: NOTE:
    bitbake,https://git.openembedded.org/bitbake,2.8,HEAD +meta-selinux,https://git.yoctoproject.org/meta-selinux,scarthgap,3aff015697fa056b4af83b1c9ba44eca346a8a37

meta-arago,https://git.yoctoproject.org/meta-arago,scarthgap-next,HEAD,layers=meta-arago-distro:meta-arago-extras:meta-arago-demos:meta-arago-test #meta-browser,https://github.com/OSSystems/meta-browser.git,master,1ed2254d72a4c25879014c98be287a7e3e22904c,layers=meta-chromium meta-qt5,https://github.com/meta-qt5/meta-qt5.git,scarthgap,HEAD,layers=

configs/arago-scarthgap-wip-config.txt +0 -0
index 2dd8209..b93f76f 100644
@@ -2,6 +2,7 @@
   # repo name,repo uri,repo branch,repo commit[,layers=layer1:layer2...:layern]

    bitbake,https://git.openembedded.org/bitbake,2.8,HEAD +meta-selinux,https://git.yoctoproject.org/meta-selinux,scarthgap,3aff015697fa056b4af83b1c9ba44eca346a8a37

meta-arago,https://git.yoctoproject.org/meta-arago,scarthgap-wip,HEAD,layers=meta-arago-distro:meta-arago-extras:meta-arago-demos:meta-arago-test #meta-browser,https://github.com/OSSystems/meta-browser.git,master,1ed2254d72a4c25879014c98be287a7e3e22904c,layers=meta-chromium meta-qt5,https://github.com/meta-qt5/meta-qt5.git,scarthgap,HEAD,layers=