<?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 Re:SGX driver works only with sudo in Intel® Software Guard Extensions (Intel® SGX)</title>
    <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SGX-driver-works-only-with-sudo/m-p/1541683#M5997</link>
    <description>&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;Hi Kai Chi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;Thanks for reaching out to us.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;Did you build the project with sudo command? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;Could you please run &lt;/SPAN&gt;&lt;SPAN style="font-family: courier; font-size: 16px;"&gt;make clean&lt;/SPAN&gt;&lt;SPAN style="font-size: 16px;"&gt; command in the terminal and build the application again without sudo?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;​&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;​&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;Wan&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 08 Nov 2023 02:09:15 GMT</pubDate>
    <dc:creator>Wan_Intel</dc:creator>
    <dc:date>2023-11-08T02:09:15Z</dc:date>
    <item>
      <title>SGX driver works only with sudo</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SGX-driver-works-only-with-sudo/m-p/1541399#M5995</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;My problem is that SGX applications run only when ran with sudo access. Without it seems that it doesn't detect the driver. I am running the SampleEnclave application on a machine with Xeon Gold 6330 CPU, Ubuntu 22.04, kernel 5.15.0-87-generic, SGX SDK 2.22.&lt;/P&gt;&lt;P&gt;When I run sudo ./app I get a typical output:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Checksum(0x0x7ffe61adc650, 100) = 0xfffd4143
Info: executing thread synchronization, please wait...  
Info: SampleEnclave successfully returned.
Enter a character before exit ...&lt;/LI-CODE&gt;&lt;P&gt;When I run just ./app:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[get_driver_type edmm_utility.cpp:116] Failed to open Intel SGX device.
[open_se_device edmm_utility.cpp:178] Failed to open Intel SGX device.
[get_driver_type /home/sgx/jenkins/ubuntuServer2204-release-build-trunk-222/build_target/PROD/label/Builder-UbuntuSrv2204/label_exp/ubuntu64/linux-trunk-opensource/psw/urts/linux/edmm_utility.cpp:116] Failed to open Intel SGX device.
Info: Please make sure SGX module is enabled in the BIOS, and install SGX driver afterwards.
Error: Invalid SGX device.
Enter a character before exit ...&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Any idea what is going on?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 14:22:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SGX-driver-works-only-with-sudo/m-p/1541399#M5995</guid>
      <dc:creator>kai__chi</dc:creator>
      <dc:date>2023-11-07T14:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: SGX driver works only with sudo</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SGX-driver-works-only-with-sudo/m-p/1541401#M5996</link>
      <description>&lt;P&gt;On Ubuntu 22.04, you need to add your user to the "sgx" user group to be able to use the SGX device:&lt;/P&gt;&lt;P&gt;sudo usermod -aG sgx $USER&lt;/P&gt;&lt;P&gt;Make sure you log out and back in for the group add to take effect.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 14:27:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SGX-driver-works-only-with-sudo/m-p/1541401#M5996</guid>
      <dc:creator>Scott_R_Intel</dc:creator>
      <dc:date>2023-11-07T14:27:00Z</dc:date>
    </item>
    <item>
      <title>Re:SGX driver works only with sudo</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SGX-driver-works-only-with-sudo/m-p/1541683#M5997</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;Hi Kai Chi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;Thanks for reaching out to us.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;Did you build the project with sudo command? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;Could you please run &lt;/SPAN&gt;&lt;SPAN style="font-family: courier; font-size: 16px;"&gt;make clean&lt;/SPAN&gt;&lt;SPAN style="font-size: 16px;"&gt; command in the terminal and build the application again without sudo?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;​&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;​&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;Wan&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Nov 2023 02:09:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SGX-driver-works-only-with-sudo/m-p/1541683#M5997</guid>
      <dc:creator>Wan_Intel</dc:creator>
      <dc:date>2023-11-08T02:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: SGX driver works only with sudo</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SGX-driver-works-only-with-sudo/m-p/1543133#M6004</link>
      <description>&lt;P&gt;Thanks! Adding user to group sgx solved the problem. I overlooked it in the new installation guide.&lt;/P&gt;</description>
      <pubDate>Sun, 12 Nov 2023 18:36:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SGX-driver-works-only-with-sudo/m-p/1543133#M6004</guid>
      <dc:creator>kai__chi</dc:creator>
      <dc:date>2023-11-12T18:36:17Z</dc:date>
    </item>
    <item>
      <title>Re:SGX driver works only with sudo</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SGX-driver-works-only-with-sudo/m-p/1543165#M6005</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;Hi Scott_R_Intel,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;Thanks for sharing the solution in the Intel® SGX community.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;Hi Kai__chi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;Glad to know that your issue has been resolved. We'll close this case now. Please open a new question if additional information is needed and we'll be happy to help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;Wan&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 13 Nov 2023 02:05:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SGX-driver-works-only-with-sudo/m-p/1543165#M6005</guid>
      <dc:creator>Wan_Intel</dc:creator>
      <dc:date>2023-11-13T02:05:29Z</dc:date>
    </item>
  </channel>
</rss>

