-
Notifications
You must be signed in to change notification settings - Fork 61
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
Comments
relevant issue: #490 |
Yes, this is indeed a problem. We need to improve how we handle permissions in /var/lib/swupd/ |
@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. |
@castulo Thanks for notifying me. I will update the scripts after this is released. |
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
.The text was updated successfully, but these errors were encountered: