Skip to content

Implement Link operation#7

Merged
jsipprell merged 3 commits intojsipprell:masterfrom
DocLambda:link
Oct 11, 2021
Merged

Implement Link operation#7
jsipprell merged 3 commits intojsipprell:masterfrom
DocLambda:link

Conversation

@DocLambda
Copy link
Copy Markdown
Contributor

This PR implements the Link() operation and its underlying syscall to be able to link keys and keyrings to other keyrings. This is necessary if you want to e.g. link a key to multiple keyrings or for moving keys and keyrings between keyrings.

See the [keyctl manpage}(https://man7.org/linux/man-pages/man3/keyctl_link.3.html) for details.

I the course, we now have the means to solve the permission denied problem in #6 which is cased by non-modifiable standard permissions when dealing with the user-session keyring (details in issue #6).
Furthermore, the PR fixes the wrong argument order for Unlink() leading to ENODIR errors.

resolves #6

Copy link
Copy Markdown
Owner

@jsipprell jsipprell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feature looks good. Thanks!

@jsipprell jsipprell merged commit 3d409df into jsipprell:master Oct 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Permission denied when extracting key data in UserSessionKeyring

2 participants