<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Secure version of BSD Library</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/50166/secure-version-of-bsd-library</link><description>Is there a version of the bsd library that was compiled and can run in a secure mode ?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 30 Jul 2019 14:21:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/50166/secure-version-of-bsd-library" /><item><title>RE: Secure version of BSD Library</title><link>https://devzone.nordicsemi.com/thread/201307?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2019 14:21:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:796baccf-ffd6-4e75-a17c-e6b7e6a3b40c</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The modem is&amp;nbsp;always&amp;nbsp;a NS domain and can thus only operate in NS context. That means the BSD sockets have to run from NS context as well.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf9160%2Fspu.html&amp;amp;cp=2_0_0_5_14_6&amp;amp;anchor=external_domain_access_control"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf9160%2Fspu.html&amp;amp;cp=2_0_0_5_14_6&amp;amp;anchor=external_domain_access_control&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure version of BSD Library</title><link>https://devzone.nordicsemi.com/thread/200825?ContentTypeID=1</link><pubDate>Fri, 26 Jul 2019 20:48:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:554ec942-de00-4586-af3d-61f7dea2e9c8</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I am sorry for the delay, a huge portion of the support team are currently on vacation, and you may experience delayed answers.&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;talked to somebody in the office, who said this is not possible, but I am not able to give you an explanation why. I will try to get to the bottom of it in the start of the next week.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure version of BSD Library</title><link>https://devzone.nordicsemi.com/thread/200824?ContentTypeID=1</link><pubDate>Fri, 26 Jul 2019 20:39:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22464b26-16cc-4b87-9cb0-a4533da46932</guid><dc:creator>mcGyver</dc:creator><description>&lt;p&gt;Any update on this request?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure version of BSD Library</title><link>https://devzone.nordicsemi.com/thread/200355?ContentTypeID=1</link><pubDate>Wed, 24 Jul 2019 20:29:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cfb362af-e982-4fc5-8f27-cc618cb33382</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I&amp;#39;ll ask some of the developers, which has more knowledge about it. Will report back to you as soon as I have gotten an answer.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure version of BSD Library</title><link>https://devzone.nordicsemi.com/thread/200353?ContentTypeID=1</link><pubDate>Wed, 24 Jul 2019 19:55:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3298937d-a540-46ee-b01f-d6ba5ac834a8</guid><dc:creator>mcGyver</dc:creator><description>&lt;p&gt;I understand that the distributed version of the BSD Socket Library must run on a non-secure application domain. What I am asking is, if there is a version or can we ask of a version&amp;nbsp;that could run on a secure mode.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The intention was to locate it in the secure mode so that application can be abstracted / restricted from using it.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure version of BSD Library</title><link>https://devzone.nordicsemi.com/thread/200350?ContentTypeID=1</link><pubDate>Wed, 24 Jul 2019 19:40:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9a4f025-9555-42cb-8f2e-8604908080c8</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;It does not seem like this is possible. As stated in the &lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_nrf9160.html"&gt;NCS documentation&lt;/a&gt;, the BSD library must be a part of the application. (&amp;quot;&lt;em&gt;The&amp;nbsp;&lt;strong&gt;BSD Socket&lt;/strong&gt;&amp;nbsp;library must be embedded in the application because BSD sockets are the primary interface to the LTE modem.&amp;quot;&lt;/em&gt;).&lt;/p&gt;
&lt;p&gt;Also, one of the developers said the following: &lt;em&gt;&amp;quot;the BSD Lib architecture requires a static and fixed area to operate on. And this area needs to be Non-Secure, because the BSD lib runs in the non-secure (application) domain.&amp;quot;&amp;nbsp;&amp;nbsp;&lt;/em&gt;(&lt;a href="https://devzone.nordicsemi.com/support-private/support/226760"&gt;Link&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;Since the BSD library has to be a part of the application, it must run in the same domain, which is the non-secure. If you try to build any of the nrf9160 example as secure, you will get an error.&lt;/p&gt;
&lt;p&gt;If you look at the CONFIG_BSD_LIBRARY definition, you can see that the inclusion of the BSD library depends on the definition TRUSTED_EXECUTION_NONSECURE.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;config BSD_LIBRARY
	bool
	prompt &amp;quot;Use BSD Socket library for IP/TLS/DTLS&amp;quot;
	select FLOAT
	select FP_SHARING
	select NET_OFFLOAD
	select NET_SOCKETS_OFFLOAD
	depends on TRUSTED_EXECUTION_NONSECURE
	help
	  Use Nordic BSD Socket library.

if BSD_LIBRARY&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I am not sure why this is, but I can look into it if you would like to.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>