Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
totemknet: retry knet_handle_new if it fails
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> Reviewed-by: Jan Friesse <jfriesse@redhat.com>
- Loading branch information
Showing
4 changed files
with
39 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters