<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Question about Protected File System Library in Intel® Software Guard Extensions (Intel® SGX)</title>
    <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Question-about-Protected-File-System-Library/m-p/1069738#M273</link>
    <description>&lt;P&gt;I have some questions to make it clear about how protected file system library works.&lt;/P&gt;

&lt;P&gt;Sadly, right now, SGX SDK for Linux does not support protected file system library, hence I cannot see the internal implementation of trusted file system library. so here I ask some details about the library.&lt;/P&gt;

&lt;P&gt;Questions are as follow:&lt;BR /&gt;
	1. After creating a SGX_FILE pointer via sgx_fopen(), we write or read data through the pointer. PDF in &lt;A href="https://software.intel.com/en-us/articles/overview-of-intel-protected-file-system-library-using-software-guard-extensions"&gt;[here]&lt;/A&gt;&amp;nbsp;explains that there exists an OCALL for sgx_fopen(), but no mentions about sgx_fwrite() or sgx_fread(). Do they also have OCALLs for secure file operation? If not, how does it work?&lt;BR /&gt;
	2. Linux has virtual files, like /dev/mem or /dev/shm. I want to make a shared memory region between two enclaves (not belongs to the same process) via sgx_fopen("/dev/shm") with the session key created by DHKE library. Is it possible to open a virtual file with sgx_fopen()?&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Wed, 29 Mar 2017 04:59:25 GMT</pubDate>
    <dc:creator>Insu_J_</dc:creator>
    <dc:date>2017-03-29T04:59:25Z</dc:date>
    <item>
      <title>Question about Protected File System Library</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Question-about-Protected-File-System-Library/m-p/1069738#M273</link>
      <description>&lt;P&gt;I have some questions to make it clear about how protected file system library works.&lt;/P&gt;

&lt;P&gt;Sadly, right now, SGX SDK for Linux does not support protected file system library, hence I cannot see the internal implementation of trusted file system library. so here I ask some details about the library.&lt;/P&gt;

&lt;P&gt;Questions are as follow:&lt;BR /&gt;
	1. After creating a SGX_FILE pointer via sgx_fopen(), we write or read data through the pointer. PDF in &lt;A href="https://software.intel.com/en-us/articles/overview-of-intel-protected-file-system-library-using-software-guard-extensions"&gt;[here]&lt;/A&gt;&amp;nbsp;explains that there exists an OCALL for sgx_fopen(), but no mentions about sgx_fwrite() or sgx_fread(). Do they also have OCALLs for secure file operation? If not, how does it work?&lt;BR /&gt;
	2. Linux has virtual files, like /dev/mem or /dev/shm. I want to make a shared memory region between two enclaves (not belongs to the same process) via sgx_fopen("/dev/shm") with the session key created by DHKE library. Is it possible to open a virtual file with sgx_fopen()?&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2017 04:59:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Question-about-Protected-File-System-Library/m-p/1069738#M273</guid>
      <dc:creator>Insu_J_</dc:creator>
      <dc:date>2017-03-29T04:59:25Z</dc:date>
    </item>
    <item>
      <title>Hi Insu.j</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Question-about-Protected-File-System-Library/m-p/1069739#M274</link>
      <description>&lt;P&gt;Hi Insu.j&lt;/P&gt;

&lt;P&gt;As of now Protected file system library is available for Windows SGX Applications only.&lt;/P&gt;

&lt;P&gt;1) Yes there is an OCALL for sgx_fopen() from the Protected FS trusted Library to the the Protected FS untrusted Library which is Linked to the hard disk containing the files as shown in the figure of the &lt;A href="https://community.intel.com/legacyfs/online/drupal_files/managed/76/8f/OverviewOfIntelProtectedFileSystemLibrary.pdf"&gt;document &lt;/A&gt;. &amp;nbsp;We can find these OCALL's in the edl file (INTELSGXSDK\include\sgx_tprotected_fs.edl) of the protected FS library. Yes there exists an &amp;nbsp;OCALL for the sgx_fread and sgx_fwrite in the edl file. Please check the edl file for more reference.&lt;/P&gt;

&lt;P&gt;Anusha.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 10:22:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Question-about-Protected-File-System-Library/m-p/1069739#M274</guid>
      <dc:creator>Anusha_K_Intel</dc:creator>
      <dc:date>2017-03-31T10:22:58Z</dc:date>
    </item>
    <item>
      <title>Regarding your second</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Question-about-Protected-File-System-Library/m-p/1069740#M275</link>
      <description>&lt;P&gt;Regarding your second question, the answer is no.&lt;/P&gt;

&lt;P&gt;The protected FS is designed to work with real files. it includes meta-data so it can only be accessed by one process at a time if opened for writing (one writer or many readers).&lt;/P&gt;

&lt;P&gt;Protected FS is designed for saving enclave persistent data, not as a comunication channel between enclaves.&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Apr 2017 12:49:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Question-about-Protected-File-System-Library/m-p/1069740#M275</guid>
      <dc:creator>Ishai_N_Intel</dc:creator>
      <dc:date>2017-04-02T12:49:49Z</dc:date>
    </item>
    <item>
      <title>Thank you for clarifying my</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Question-about-Protected-File-System-Library/m-p/1069741#M276</link>
      <description>&lt;P&gt;Thank you for clarifying my knowledge, Kandavalli, Nadler. It is really helpful for me. Thank you :D&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2017 00:37:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Question-about-Protected-File-System-Library/m-p/1069741#M276</guid>
      <dc:creator>Insu_J_</dc:creator>
      <dc:date>2017-04-03T00:37:02Z</dc:date>
    </item>
    <item>
      <title>Are the two enclaves you are</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Question-about-Protected-File-System-Library/m-p/1069742#M277</link>
      <description>&lt;P&gt;Are the two enclaves you are talking about hosted by the same untrusted app?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 16:35:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Question-about-Protected-File-System-Library/m-p/1069742#M277</guid>
      <dc:creator>AArya2</dc:creator>
      <dc:date>2017-04-07T16:35:00Z</dc:date>
    </item>
    <item>
      <title>Quote:Arya Pourtabatabaie</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Question-about-Protected-File-System-Library/m-p/1069743#M278</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Arya Pourtabatabaie wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Are the two enclaves you are talking about hosted by the same untrusted app?&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;No. The example of local attestation already provides how to communicate between two enclaves hosted by the same untrusted app. The two enclaves that I said belong to different untrusted apps.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Apr 2017 06:51:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Question-about-Protected-File-System-Library/m-p/1069743#M278</guid>
      <dc:creator>Insu_J_</dc:creator>
      <dc:date>2017-04-08T06:51:21Z</dc:date>
    </item>
    <item>
      <title>Can you perhaps pipe data</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Question-about-Protected-File-System-Library/m-p/1069744#M279</link>
      <description>&lt;P&gt;Can you perhaps pipe data between the two processes?&lt;/P&gt;

&lt;P&gt;If so, you can simply use some variation of AES in counter mode and then communicate the data through the untrusted host apps.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2017 12:34:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Question-about-Protected-File-System-Library/m-p/1069744#M279</guid>
      <dc:creator>AArya2</dc:creator>
      <dc:date>2017-04-10T12:34:05Z</dc:date>
    </item>
  </channel>
</rss>

