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

Put MoM file somewhere readable to non-root user #1496

Open
lebensterben opened this issue Apr 22, 2020 · 4 comments
Open

Put MoM file somewhere readable to non-root user #1496

lebensterben opened this issue Apr 22, 2020 · 4 comments

Comments

@lebensterben
Copy link
Contributor

lebensterben commented Apr 22, 2020

Currently, the system caches the MoM file of official repo at /var/tmp/swupd/Manifest.MoM, which is readable to all users.
If it doesn't exist, there's another in /var/lib/swupd/VERSION/Manifest.MoM. But this one, is only readable to root user. Because its /var/lib/swupd is only readable to root user.

For 3rd-party repos, I cannot find a MoM file under readable directory. I do find them at /var/lib/swupd/3rd-party/REPO_NAME/VERSION/Manifest.MoM. But that's no readable.

The main drawback for this is it's difficult to write shell completion for 3rd-party repos. Although this is possible, but I prefer not to ask for root privilege for running a shell completion script.

Please consider to put MoM file for each 3rd-party repo at somewhere like /var/tmp/swupd/3rd-party/REPO_NAME/Manifest.MoM.

@lebensterben
Copy link
Contributor Author

relevant issue: #490

@otaviobp
Copy link
Contributor

Yes, this is indeed a problem. We need to improve how we handle permissions in /var/lib/swupd/

@castulo
Copy link
Contributor

castulo commented Jun 10, 2020

@lebensterben we just merged a change that changes the location where we download the manifests, and this location is world readable (8d54e6c). Would this solve your problem?

BTW, these changes have not been released yet, they will be in the next swupd release.

@lebensterben
Copy link
Contributor Author

@castulo Thanks for notifying me. I will update the scripts after this is released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants