Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upInconsistency between policies and VMs #3380
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
unman
Dec 9, 2017
Member
It's not the disposable VM that has left a lasting effect on the system. It's your decision to click "Yes to All" for a disposable VM, which seems a bad idea to me, and perhaps should not be allowed without a warning or at all.
Given the recycling of dispX names, it's a subset of your "related note".
I can see two solutions:
- Throw advisory message on renaming of qube, suggesting user reviews policies.
- Automatically parse the policy files renaming entries to match the rename.
and perhaps
3. When qube is removed, automatically remove all relevant entries from the policy files.
|
It's not the disposable VM that has left a lasting effect on the system. It's your decision to click "Yes to All" for a disposable VM, which seems a bad idea to me, and perhaps should not be allowed without a warning or at all.
and perhaps |
andrewdavidwong
added
the
C: core
label
Dec 9, 2017
andrewdavidwong
added this to the Release 3.2 updates milestone
Dec 9, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
andrewdavidwong
Dec 9, 2017
Member
I think this sort of thing is exactly why the devs chose to make VM names immutable in 4.0. I'm not sure whether there's anything actionable in this issue, since this has already been addressed in 4.0. Leaving it up to @marmarek to decide.
|
I think this sort of thing is exactly why the devs chose to make VM names immutable in 4.0. I'm not sure whether there's anything actionable in this issue, since this has already been addressed in 4.0. Leaving it up to @marmarek to decide. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
unman
Dec 9, 2017
Member
I dont think it should be too hard to implement any of the options I proposed, and since it's an issue in the stable release I think it should be fixed.
I'd favour 2 and 3 rather than just producing a warning.
|
I dont think it should be too hard to implement any of the options I proposed, and since it's an issue in the stable release I think it should be fixed. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
unman
Dec 9, 2017
Member
On the other hand, it would ease transition to 4.0 if we removed the ability to rename in 3.2.
That would then leave 3 to handle qube removal (including end of disposableVM).
|
On the other hand, it would ease transition to 4.0 if we removed the ability to rename in 3.2. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
unman
Dec 10, 2017
Member
scratch my last comment because 4.0 does have qvm-rename, and will (I think) be open to the same issue, which suggests 2 and 3 as the solution.
|
scratch my last comment because 4.0 does have qvm-rename, and will (I think) be open to the same issue, which suggests 2 and 3 as the solution. |
svenssonaxel commentedDec 9, 2017
Qubes OS version: R3.2
Steps to reproduce the behavior:
Expected behavior:
Actual behavior:
General notes:
This behavior might not seem very strange to those who understand the implementation of policies, and it is understandable that policies reside in their own folder, seeing that they do not belong to any one VM and cannot easily be located inside a VM directory.
However, the behavior should fulfill the expectation that disposable VMs do not leave a lasting effect on the system.
In particular, this creates an unexpected security-critical relationship that affects a completely unrelated machine, i.e. the dispVM "disp1" after restart.
On a related note, something similar can be achieved by renaming VMs:
Expected:
Actual:
Again, the current behavior might be expected for those who understands the implementation, but it runs counter to the concepts involved.
Related issues: