【问题标题】:What is the usage of open_by_handle_at(2)?open_by_handle_at(2) 的用途是什么?
【发布时间】:2021-09-13 09:28:36
【问题描述】:

我使用 CAP_DAC_READ_SEARCH 从 docker breakout tech 学习了这个系统调用。

我想知道这个系统调用最初是为了什么而设计的?或者它还有其他典型和常见的用法吗?因为经过一段时间的搜索,我发现open_by_handle_at(2)最显着的用法就是从容器中突围……

【问题讨论】:

    标签: linux linux-kernel system-calls


    【解决方案1】:

    来自man open_by_handle

       These system calls are designed for use by user-space file
       servers.  For example, a user-space NFS server might generate a
       file handle and pass it to an NFS client.  Later, when the client
       wants to open the file, it could pass the handle back to the
       server.  This sort of functionality allows a user-space file
       server to operate in a stateless fashion with respect to the
       files it serves.
    

    【讨论】:

      猜你喜欢
      • 2011-11-26
      • 2021-03-18
      • 2012-06-03
      • 1970-01-01
      • 1970-01-01
      • 2016-06-25
      • 2010-09-27
      • 2011-12-17
      • 2010-11-21
      相关资源
      最近更新 更多