Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

totemknet: retry knet_handle_new without privileged operations if it … #623

Closed
wants to merge 1 commit into from
Closed

totemknet: retry knet_handle_new without privileged operations if it … #623

wants to merge 1 commit into from

Commits on Mar 15, 2021

  1. totemknet: retry knet_handle_new without privileged operations if it …

    …fails
    
    knet_handle_new can fail with ENAMETOOLONG if its privileged operations
    fail, which can happen if we're running as a user process or in an
    unprivileged container.
    
    This adds a cmap key 'allow_knet_handle_fallback' that defaults to no,
    which is the current behavior of exiting with error if the knet_handle
    can't be created with privileged operations. If the new cmap key is set
    to 'yes' and the knet_handle creation fails, fallback to creating the
    handle using unprivileged operations is tried.
    
    Signed-off-by: Dan Streetman <ddstreet@canonical.com>
    Dan Streetman committed Mar 15, 2021
    Configuration menu
    Copy the full SHA
    0a7f848 View commit details
    Browse the repository at this point in the history