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

Fix line split in secure mount and notify #84

Merged
merged 1 commit into from
Oct 30, 2019
Merged

Fix line split in secure mount and notify #84

merged 1 commit into from
Oct 30, 2019

Conversation

lukehinds
Copy link
Member

Currently the code splits the mount command line returns
incorrectly. This results in a non match which means a new
mount is created everytime, instead of using an existing mount.

This results in many mounts being present on the system, every
time the agent is restarted.

This is due to the split element being a back slash \ whereas
it should be a whitespace ' '

There is also no feedback provided to the user when an existing
mount is used. This information should be provided to the user.

Resolves: #83

@lukehinds
Copy link
Member Author

lukehinds commented Oct 30, 2019

Apologies, there is an additional change I omitted to mention which is making the function public. I can reverse this change or put into a new patch, but this is required so that we can actually call the function, so I am happy to have it in this patch if this does not bother others.

@lukehinds lukehinds closed this Oct 30, 2019
@lukehinds lukehinds reopened this Oct 30, 2019
Currently the code splits the mount command line returns
incorrectly. This results in a non match which means a new
mount is created everytime, instead of using an existing mount.

This results in many mounts being present on the system, every
time the agent is restarted.

This is due to the split element being a back slash `\` whereas
it should be a whitespace `' '`

There is also no feedback provided to the user when an existing
mount is used. This information should be provided to the user.

Resolves: #83
@frozencemetery
Copy link
Contributor

How does this interact with #82, given that's moving the code around? Seems like we should wait until that's merged to do this, right?

@lukehinds
Copy link
Member Author

How does this interact with #82, given that's moving the code around? Seems like we should wait until that's merged to do this, right?

Sorry, yes I should have marked this as depending on the other patch landing first.

@lukehinds
Copy link
Member Author

@frozencemetery we are good to merge this one now.

Next I will work on landing the tpm2 patch and then we start to call the various functions and connect the code together. I think first we will get the TPM operations working, and then look at the request handlers and post interface in the agent.

@lukehinds lukehinds merged commit 1194c9a into keylime:master Oct 30, 2019
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.

Secure Mount fails to find existing mount to do incorrect token from string split
2 participants