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

Ensure qvm-remove and qvm-create do not run as root #200

Closed
marmarek opened this Issue Mar 8, 2015 · 7 comments

Comments

Projects
None yet
2 participants
@marmarek
Member

marmarek commented Mar 8, 2015

Reported by joanna on 6 Apr 2011 12:34 UTC
None

Migrated-From: https://wiki.qubes-os.org/ticket/200

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Mar 8, 2015

Member

Modified by joanna on 6 Apr 2011 12:51 UTC

Member

marmarek commented Mar 8, 2015

Modified by joanna on 6 Apr 2011 12:51 UTC

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Mar 8, 2015

Member

Modified by marmarek on 6 Apr 2011 13:00 UTC

Member

marmarek commented Mar 8, 2015

Modified by marmarek on 6 Apr 2011 13:00 UTC

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Mar 8, 2015

Member

Comment by marmarek on 6 Apr 2011 13:30 UTC
I cannot reproduce the issue...
How to reproduce this?

Member

marmarek commented Mar 8, 2015

Comment by marmarek on 6 Apr 2011 13:30 UTC
I cannot reproduce the issue...
How to reproduce this?

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Mar 8, 2015

Member

Comment by joanna on 6 Apr 2011 13:32 UTC
Hmm... let me build a new ISO, install a new system and test then. Changing this to minor in the meanwile...

Member

marmarek commented Mar 8, 2015

Comment by joanna on 6 Apr 2011 13:32 UTC
Hmm... let me build a new ISO, install a new system and test then. Changing this to minor in the meanwile...

@marmarek marmarek added P: minor and removed P: major labels Mar 8, 2015

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Mar 8, 2015

Member

Comment by joanna on 6 Apr 2011 17:19 UTC
Ok, the problem occurs when the user runs qvm-remove as root instead of as user. Then xdg-desktop* uses incorrect patch (global ones instead of ~/.local). Similarly things break (even more) when user runs qvm-create as root.

We should add checking code at the beginning of those two tools (qvm-create and qvm-remove) and exit when run as root (and display a message), similarly as we do with qvm-backup-restore.

Member

marmarek commented Mar 8, 2015

Comment by joanna on 6 Apr 2011 17:19 UTC
Ok, the problem occurs when the user runs qvm-remove as root instead of as user. Then xdg-desktop* uses incorrect patch (global ones instead of ~/.local). Similarly things break (even more) when user runs qvm-create as root.

We should add checking code at the beginning of those two tools (qvm-create and qvm-remove) and exit when run as root (and display a message), similarly as we do with qvm-backup-restore.

@marmarek marmarek added P: major and removed P: minor labels Mar 8, 2015

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Mar 8, 2015

Member

Modified by joanna on 6 Apr 2011 17:20 UTC

Member

marmarek commented Mar 8, 2015

Modified by joanna on 6 Apr 2011 17:20 UTC

@marmarek marmarek changed the title from qvm-remove doesn't remove appmenus to Ensure qvm-remove and qvm-create do not run as root Mar 8, 2015

@marmarek

This comment has been minimized.

Show comment
Hide comment

@marmarek marmarek closed this Mar 8, 2015

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