<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>suima8</author_name>
  <author_url>https://blog.hatena.ne.jp/suima8/</author_url>
  <blog_title>suima8のメモ</blog_title>
  <blog_url>https://suima8.hatenablog.com/</blog_url>
  <categories>
    <anon>Linux</anon>
    <anon>ethernet</anon>
    <anon>capability</anon>
  </categories>
  <description>rawsocket を使ったアプリを作成した際に、動作に sudo を使っていた。 ナンセンスなので capability を使う。 rawsocket の capability sudo setcap cap_net_raw=ep ./hoge p : permitted スレッドの継承可能ケーパビリティに関わらず、そのスレッドに自動的に 認められるケーパビリティ e : effective このビットがセットされていると、 execve(2) 実行中に、そのスレッドの新しい許可ケーパビリティが全て 実効ケーパビリティ集合においてもセットされる。 このビットがセットされていない場合、 exe…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsuima8.hatenablog.com%2Fentry%2F2020%2F12%2F21%2F104219&quot; title=&quot;capability で権限を与える - suima8のメモ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-12-21 10:42:19</published>
  <title>capability で権限を与える</title>
  <type>rich</type>
  <url>https://suima8.hatenablog.com/entry/2020/12/21/104219</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
