Skip to contentSkip to conversation

safec: Initial recipe for safe C library

PATCH Superseded Ankit Navik 2 participants 5 messages May 27, 2019 – May 29, 2019

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 safec: Initial recipe for safe C library

Add generic recipe for safe C library.
This library implements the secure C11 Annex K functions on top of most libc implementations, which are missing from them.

---
 meta-oe/recipes-core/safec/safec_3.4.bb | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 meta-oe/recipes-core/safec/safec_3.4.bb
meta-oe/recipes-core/safec/safec_3.4.bb new file +15 -0
new file mode 100644
index 000000000..ad3c4ba74
@@ -0,0 +1,15 @@
+SUMMARY  = "Safe C Library"
+
+LICENSE  = "safec"
+LIC_FILES_CHKSUM = "file://COPYING;md5=6d0eb7dfc57806a006fcbc4e389cf164"
+SECTION = "lib"
+
+inherit autotools pkgconfig
+
+S = "${WORKDIR}/git"
+SRCREV = "62e6b2df55084316d027165d286e46beb40513dc"
+SRC_URI = "git://github.com/rurban/safeclib.git"
+
+COMPATIBLE_HOST = '(x86_64|i.86|arm|aarch64).*-linux'
+
+RDEPENDS_${PN} = "perl"
Signature · 1 line
2.20.1
#1 lore raw
Quoted 20 lines · Ankit Navik

Add generic recipe for safe C library.
This library implements the secure C11 Annex K functions on top of most libc implementations, which are missing from them.

---
 meta-oe/recipes-core/safec/safec_3.4.bb | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 meta-oe/recipes-core/safec/safec_3.4.bb
meta-oe/recipes-core/safec/safec_3.4.bb new file +3 -0
new file mode 100644
index 000000000..ad3c4ba74
@@ -0,0 +1,15 @@
+SUMMARY  = "Safe C Library"
+
+LICENSE  = "safec"

meta-oe/recipes-core/safec/safec_3.4.bb line 13

Quoted 10 lines
meta-oe/recipes-core/safec/safec_3.4.bb new file +10 -0
+LIC_FILES_CHKSUM = "file://COPYING;md5=6d0eb7dfc57806a006fcbc4e389cf164"
+SECTION = "lib"
+
+inherit autotools pkgconfig
+
+S = "${WORKDIR}/git"
+SRCREV = "62e6b2df55084316d027165d286e46beb40513dc"
+SRC_URI = "git://github.com/rurban/safeclib.git"
+
+COMPATIBLE_HOST = '(x86_64|i.86|arm|aarch64).*-linux'

is it limited to these architectures ?

Quoted 10 lines
meta-oe/recipes-core/safec/safec_3.4.bb new file +2 -1
+
+RDEPENDS_${PN} = "perl"
--

2.20.1

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#2 lore raw

Hi Raj,

Quoted 27 lines · On Mon 27 May, 2019, 21:10 Khem Raj, <[email protected]> wrote:
Quoted 3 lines · Ankit Navik

Add generic recipe for safe C library.
This library implements the secure C11 Annex K functions on top of most

libc

Review

Quoted 9 lines

implementations, which are missing from them.

---
 meta-oe/recipes-core/safec/safec_3.4.bb | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 meta-oe/recipes-core/safec/safec_3.4.bb
(quoted diff) +0 -0

b/meta-oe/recipes-core/safec/safec_3.4.bb

Quoted 12 lines

new file mode 100644
index 000000000..ad3c4ba74

meta-oe/recipes-core/safec/safec_3.4.bb new file +7 -0
@@ -0,0 +1,15 @@
+SUMMARY  = "Safe C Library"
+
+LICENSE  = "safec"
+LIC_FILES_CHKSUM = "file://COPYING;md5=6d0eb7dfc57806a006fcbc4e389cf164"
+SECTION = "lib"
+
+inherit autotools pkgconfig
Quoted 9 lines

meta-oe/recipes-core/safec/safec_3.4.bb line 13

Quoted 6 lines
meta-oe/recipes-core/safec/safec_3.4.bb new file +6 -0
+
+S = "${WORKDIR}/git"
+SRCREV = "62e6b2df55084316d027165d286e46beb40513dc"
+SRC_URI = "git://github.com/rurban/safeclib.git"
+
+COMPATIBLE_HOST = '(x86_64|i.86|arm|aarch64).*-linux'

is it limited to these architectures ?

I have not verified for mips. Since I didn't have target to verify. But let me check, whether it is feasible for mips or not.

I'll keep you posted

Regards, Ankit

Quoted 12 lines
Quoted 11 lines
meta-oe/recipes-core/safec/safec_3.4.bb new file +2 -1
+
+RDEPENDS_${PN} = "perl"
--

2.20.1

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#3 lore raw
Quoted 40 lines · Ankit Navik

Hi Raj,

Quoted 26 lines · On Mon 27 May, 2019, 21:10 Khem Raj, <[email protected]> wrote:
Quoted 24 lines · Ankit Navik

Add generic recipe for safe C library.
This library implements the secure C11 Annex K functions on top of most libc implementations, which are missing from them.

---
 meta-oe/recipes-core/safec/safec_3.4.bb | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 meta-oe/recipes-core/safec/safec_3.4.bb
meta-oe/recipes-core/safec/safec_3.4.bb new file +7 -0
new file mode 100644
index 000000000..ad3c4ba74
@@ -0,0 +1,15 @@
+SUMMARY  = "Safe C Library"
+
+LICENSE  = "safec"
+LIC_FILES_CHKSUM = "file://COPYING;md5=6d0eb7dfc57806a006fcbc4e389cf164"
+SECTION = "lib"
+
+inherit autotools pkgconfig
Quoted 8 lines

meta-oe/recipes-core/safec/safec_3.4.bb line 13

Quoted 6 lines
meta-oe/recipes-core/safec/safec_3.4.bb new file +6 -0
+
+S = "${WORKDIR}/git"
+SRCREV = "62e6b2df55084316d027165d286e46beb40513dc"
+SRC_URI = "git://github.com/rurban/safeclib.git"
+
+COMPATIBLE_HOST = '(x86_64|i.86|arm|aarch64).*-linux'

is it limited to these architectures ?

Quoted 2 lines

I have not verified for mips. Since I didn't have target to verify. But let me check, whether it is feasible for mips or not.

Sure, qemumips would be a good target.

Quoted 16 lines

I'll keep you posted

Regards, Ankit

Quoted 12 lines
Quoted 12 lines
meta-oe/recipes-core/safec/safec_3.4.bb new file +2 -1
+
+RDEPENDS_${PN} = "perl"
--

2.20.1

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#4 lore raw

Hi Raj,

Quoted 45 lines · Khem Raj
Quoted 6 lines · Ankit Navik

Hi Raj,

Quoted 2 lines · On Mon 27 May, 2019, 21:10 Khem Raj, <[email protected]> wrote:

On Mon, May 27, 2019 at 3:06 AM Ankit Navik <[email protected]>

Quoted 3 lines · wrote:
Quoted 3 lines
Quoted 3 lines

Add generic recipe for safe C library.
This library implements the secure C11 Annex K functions on top of

most libc

Quoted 9 lines
Quoted 9 lines

Review

Quoted 9 lines

implementations, which are missing from them.

---
 meta-oe/recipes-core/safec/safec_3.4.bb | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 meta-oe/recipes-core/safec/safec_3.4.bb
(quoted diff) +0 -0

b/meta-oe/recipes-core/safec/safec_3.4.bb

Quoted 9 lines
Quoted 9 lines

meta-oe/recipes-core/safec/safec_3.4.bb line 4

Quoted 9 lines

new file mode 100644
index 000000000..ad3c4ba74

meta-oe/recipes-core/safec/safec_3.4.bb new file +4 -0
@@ -0,0 +1,15 @@
+SUMMARY  = "Safe C Library"
+
+LICENSE  = "safec"
+LIC_FILES_CHKSUM =

"file://COPYING;md5=6d0eb7dfc57806a006fcbc4e389cf164"

Quoted 13 lines
Quoted 11 lines

meta-oe/recipes-core/safec/safec_3.4.bb line 13

Quoted 9 lines
meta-oe/recipes-core/safec/safec_3.4.bb new file +9 -0
+SECTION = "lib"
+
+inherit autotools pkgconfig
+
+S = "${WORKDIR}/git"
+SRCREV = "62e6b2df55084316d027165d286e46beb40513dc"
+SRC_URI = "git://github.com/rurban/safeclib.git"
+
+COMPATIBLE_HOST = '(x86_64|i.86|arm|aarch64).*-linux'

is it limited to these architectures ?

Quoted 5 lines
Quoted 2 lines

I have not verified for mips. Since I didn't have target to verify. But let me check, whether it is feasible for mips or not.

Sure, qemumips would be a good target.

Looks like, It is not able to recognize opcode for mips target. Other target works fine including powerpc. I will submit v3 including powerpc in COMPATIBLE_HOST.

Regards,
Ankit

Quoted 18 lines
Quoted 17 lines

I'll keep you posted

Regards, Ankit

Quoted 12 lines
Quoted 12 lines
meta-oe/recipes-core/safec/safec_3.4.bb new file +2 -1
+
+RDEPENDS_${PN} = "perl"
--

2.20.1

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel