Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/QubesOS/qubes-core-admin

Qubes component: core-admin
https://github.com/QubesOS/qubes-core-admin

Include qubespolicy in coverage report

68f046cd31e3c2a1478b82ab791417b9fd437ca4 authored over 7 years ago
qubespolicy: add $adminvm keyword for specifying dom0 aka AdminVM

Fixes QubesOS/qubes-issues#2872

26ea836f67ad915a84d03958d53b44718d77d3c2 authored over 7 years ago
qubespolicy: allow non-default policy directory

This will allow to evaluate policy extracted from other system.
And also ease tests.

QubesOS/qu...

8afb425271e3b932d9f509787fb3e5c0a857c953 authored over 7 years ago
qubespolicy: allow spaces in action arguments

This is natural to write space after coma.

a937bb173a0d9bb2244855e78cf7dd9cd8e78e47 authored over 7 years ago
api: add missing docstring

291a338e7318ca095610bbc6fb012fe573809572 authored over 7 years ago
Generate policy for Admin API calls based on annotations on actual methods

This ease Admin API administration, and also adds checking if qrexec
policy + scripts matches ac...

3d803acfdea2eb2218c4f582bb6e226ef4f1505c authored over 7 years ago
storage: add API documentation

QubesOS/qubes-issues#2256

82c3f85042dfc057482e9a97392cdafb24089626 authored over 7 years ago
storage: drop functions not being part of the API

commit/recover/reset should really be handled in start/stop. Nothing
stops specific pool impleme...

59718736801ea1b97094649cb94d529dfaa809fa authored over 7 years ago
storage: drop rename support

Since VM name is immutable, rename method can be dropped from storage
API.

QubesOS/qubes-issues...

697eb05c20cc5d4a7f7612c0fc65afe2138d34c0 authored over 7 years ago
storage: make volume snap_on_start/save_on_stop explicit

Always define those properties, always include them in volume config.
Also simplify overriding p...

820539e909a4162bf5493aa2138b0c54f4fae2a3 authored over 7 years ago
vm: drop rename related methods

Since VM name in immutable now, drop rename-related methods.

QubesOS/qubes-issues#2868

dd1e05dc839ae6f52becf71b746b02d78d76a8cf authored over 7 years ago
exc/block: fix attaching block device exposed by dom0

Don't set <backenddomain> element in libvirt XML when device is provided
by dom0.

2dbb51a38d0991120bf3d472c897fa9623ba9e48 authored over 7 years ago
devices: better handle exceptions in device extension

Do not fail app.save() just because listing devices failed, for any
reason.

e5de8f4115d5edc76179282d1a03c7a8706f412e authored over 7 years ago
Add qvm-block symlink

77e84b9ce415017755a24727788e5b43ebf2c155 authored over 7 years ago
Disable SMAP in VMs

Linux kernel bug cause hypercall fails from HVM userspace (see
referenced issue). As a simple wo...

75608795b0036708a949328f442cb8150a53f17c authored over 7 years ago
vm/adminvm: setup libvirt_domain property

Since libvirt do provide object for dom0 too, return it here.
It's much easier than special-casi...

3721ae3e8ba81582d7c206947386a584064ba516 authored over 7 years ago
Merge branch 'core3-firewall2'

3748eb3e2be2755893a9ba00f736f1d021c87106 authored over 7 years ago
Merge branch 'two-stage-clone'

f83c51608213ec6c1322f5d0cd9cd817a49aca5f authored over 7 years ago
qubes/api/admin: annotate API methods

Second attempt: this time use full words for scope, read, write,
execute.

QubesOS/qubes-issues#...

d0663940a7ed1da5eb405fed972afe741ad9adc5 authored over 7 years ago
qubes/admin: Add listing of API methods

3e0d01cfb90fdedfa3a321e40038d29525c2448a authored over 7 years ago
firewall: minor simplification for old firewall.xml loading

Have `default_policy_is_accept` variable of type bool, instead of
`policy`, which is only compar...

2abdbc46284a8fe27358e055bca690c7059a7d90 authored over 7 years ago
firewall: pass untrusted values as keyword arguments

Use keyword arguments to pass untrusted arguments to make sure the
function parameter also have ...

2b963be9c7fff2dfa5ae148163dfa74c0b264df6 authored over 7 years ago
api/admin: split vm.volume.Clone to CloneFrom and CloneTo

The first operation returns a token, which can be passed to the second
one to actually perform c...

26a997443233cd3b2255c46a7878cdf78a08c5e7 authored over 7 years ago
api/admin: remove admin.vm.Clone operation

The same can be achieved with Create+volume.Clone

QubesOS/qubes-issues#2622

3dcd29afeab97a5d3d5111fad71b907bd3dd6306 authored over 7 years ago
storage/lvm: minor fixes

QubesOS/qubes-issues#2256

28f78ed3b851fad56c010af5556e05887f380774 authored over 7 years ago
storage: move remove() to Volume

This is continuation of 0f12870 "storage: use direct object references,
not only identifiers".

...

a748b393f4dcd071ea4d38b32503e9c6bbf8a640 authored over 7 years ago
storage: simplify pool.volumes usage

Add convenient collection wrapper for easier getting selected volume.
Storage pool implementatio...

ae600e24bf7f4ce5138cfbb8dc58a64e6cf31cc1 authored over 7 years ago
storage: volume.import_volume now expect create()d volume

This is much more logical for *import*_volume function.

QubesOS/qubes-issues#2256

fabd8119b49520652de469d71c944adc8008b24b authored over 7 years ago
api/admin: firewall-related methods

In the end firewall is implemented as .Get and .Set rules, with policy
statically set to 'drop'....

0200fdadcb18e38290d2185fa5617a33c4e84fa9 authored over 7 years ago
firewall: always use policy 'drop'

There is a problem with having separate default action ("policy") and
rules because it isn't pos...

842efb577dda9fc3901616b669a847594fb6e994 authored over 7 years ago
qubes: validate if property value consists of ASCII only earlier

Do this for all standard property types - even if other types do
additional validation, do not e...

919841635b8aa0931493f095dec9a18d9a060936 authored over 7 years ago
api/admin: skip firewall in vm.Clone

This operation is going to be removed, so apply a quick fix for tests.

QubesOS/qubes-issues#2622

65d15e604033089250b75d1f7db9cebd277bfa86 authored over 7 years ago
vm/qubesvm: forbid changing VM name

We've decided to make VM name immutable. This is especially important
for Admin API, where some ...

3074a4064ca5b1776826ddf400e2e755217f1d62 authored over 7 years ago
vm/qubesvm: fix handling empty kernel value

Do not fail on empty kernel value - which means "use booloader on
root.img".

Fixes 3ddc052 "vm:...

a6c16d00be3adea4001238431349eaf5cd11019e authored over 7 years ago
Merge remote-tracking branch 'woju/devel-adminext' into core3-devel

26013122a08b0ce26e63aedb3a234f09c1ac1ee9 authored over 7 years ago
rpm_spec: fix

9f57db874983acb128c685a44f6e49d1a74ad7ea authored over 7 years ago
Merge branch 'core3-devel-20170619'

4208a98bd77695f2b6d0a76d051b7cf96881aaf1 authored over 7 years ago
storage: simplify coroutine handling

Suggested by @woju

f976f7ec6cccdfd626c53849d7e5c4826eb7da06 authored over 7 years ago
Merge branch 'core3-qmemman-fix'

57e293eb5436759613c89ac68592b38635fda696 authored over 7 years ago
ext/admin: add explanation to PermissionDenied

8c9ce0587b36c25a1fb5dc66b6d7fbf1b1fd0e6e authored over 7 years ago
qubes: admin extension

for managing tags

2942f8bcacb927d508812e7a7046d1003662878c authored over 7 years ago
tests: adjust TC_00_QubesDaemonProtocol for reorganized api module

c1f4c219f9016b8a395d33364551a7d01578d988 authored over 7 years ago
qmemman: fix units on meminfo parsing

meminfo (written by VM) is expected report KiB, but qmemman internally
use bytes. Convert units....

588ff04f0d2d6e6e7ed41df7b549bfeaf4cb04f2 authored over 7 years ago
tests: improve tests for qrexe exit code handling

Check if exit code retrieved from dom0 is really the one expected.

Fix typo in test_065_qrexec_...

ea0cbe3a56b3a4a6c49e9f782e47e78214a8f04b authored over 7 years ago
tests: wait for session in tests requiring running GUI

Since tests expose qubesd socket, qvm-start-gui should handle starting
GUI daemons (so, GUI sess...

a73dcf601627d056ee9103c9222a3d30f519fe6e authored over 7 years ago
tests: fix vm.run_for_stdio in some more places

When test expect to wait for remote process, use vm.run_for_stdio.
Additionally, when the call f...

376ac4b32d87807b9092eb771be1a86c4be22936 authored over 7 years ago
tests: fix checking exit code

Since run_for_stdio raise an exception for non-zero exit code, it isn't
ignored anymore. So, che...

a0f616f14e7190718dd0489e33bdffcde95c1855 authored over 7 years ago
tests: fix QrexecPolicyContext

Flush new policy file to the disk, otherwise it will stay only in write
buffer.

a469c565f4a6b5a6febe0e6ccbbe8a5e20ff03c5 authored over 7 years ago
vm: move kernel presence validation to event handler

Setter is called also on qubes.xml load, so missing kernel breaks
qubes.xml parsing - for exampl...

3ddc052af361b401981fc1fe8c7b8e4f05860a44 authored over 7 years ago
tests: fix vm_qrexec_gui/TC_10_Generic/test_000_anyvm_deny_dom0

When method (as expected) raise an exception, service output would not be
assigned. Extract it f...

72240c13b65579488e1106e5bdc1acdc6129e234 authored over 7 years ago
tests: fix tests cleanup

4241b39b94ef887a71a07f82b91403a4842c066a authored over 7 years ago
vm: raise CalledProcessError on failed service/command call

60443259d0fe8e61588f815242311b3957729f3a authored over 7 years ago
tests: do not reload qubes.xml

In core3 this isn't needed anymore (and unit tests already check if
that's really true).

51a17ba749d0837ef748488f724e5ea3b6261999 authored over 7 years ago
tests: fix removing test VMs

Do it before shutting down qubesd socket - some things may require it
for VM removal/shutdown.

ea5ca79133832c9cc6a31783dfc67d965d9eadfe authored over 7 years ago
tests: use copy of qubes.xml, instead of empty one

eee6ab0c01c29e9c4575bad7fcbe9e2dea993511 authored over 7 years ago
tests: move create_*_file to SystemTestsMixin

984a070f3e0ab080a0f57d4833ff8d3b64ad73ad authored over 7 years ago
tests/integ/vm_qrexec_gui: skip test_051_qrexec_simple_eof_reverse

QubesOS/qubes-issues#2851

f56f7d13fb747cb1983da8a142ee21f98ebaf63a authored over 7 years ago
qubes/tests/integ/vm_qrexec_gui: some fixes

139f18fa1d298d8f72923a128900a33de00b71e1 authored over 7 years ago
qubes/tests/integ/vm_qrexec_gui: change time.sleep to asyncio.sleep

0c0b0ea6ef28f3f2c36856935abba97eea725749 authored over 7 years ago
qubes/api: refactor creating multiple qubesd sockets

Now there is a single function to do this, shared with tests.

96a66ac6bd7f5490fa8599c67521eb36f29907b0 authored over 7 years ago
qubes/tests/run: refuse to run tests if qubesd is running

Test suite creates some VMs and needs to pass the knowledge about them
to qrexec policy checker....

4b8e5c37046a1e912ff8f31c4949f1f98bbfdc17 authored over 7 years ago
qubes/tests: start qrexec policy responder for system tests

bec58fc861a6e58f8fb7a8ee0a63e357b1a5be4f authored over 7 years ago
qubes/tools/qubesd: properly unlink UNIX sockets at shutdown

71a4390fdb047638cf4a5413f412f891075fb7b2 authored over 7 years ago
qubes: reorganise API protocols

Now instantiating API servers is handled by common function. This is,
among other reasons, for c...

858e547525d52e2246d0bb5bae5651599222df0e authored over 7 years ago
admin.vm.Create: add commend about 'created-by-' tag

8196b2d5bfe7780018b07c0b4e7e62179f908291 authored over 7 years ago
admin.vm.Create: add 'created-by-' tag

c13cf44e5e98b5e90f17498226e1e7e1a3fb4d34 authored over 7 years ago
Force maxmem=memory for HVM with PCI devices

Xen do not support other cases at all ("PCI device assignment for HVM
guest failed due to PoD en...

5f187bd2bfb268838a22c9092c41cfc8123313c2 authored over 7 years ago
app: fix registering libvirt event handler

register_event_handlers is called early, when libvirt connection may not
be yet established - es...

083108e99578e163f13a8d105f00061fb9a8cd60 authored over 7 years ago
vm/adminvm: make AdminVM sortable

One more thing gone during changing AdminVM base class.

e4d285d479316a0e3585776a46b2bf1dde252650 authored over 7 years ago
admin: implement admin.vm.tag.*

QubesOS/qubes-issues#2622

9242202db2c11b8c7d8e7f9fdb9dcbf2123295d4 authored over 7 years ago
exc: fix QubesNoTemplateError

4a1a5fc24b74b7c781d092bc1b674d228eb21283 authored over 7 years ago
admin: add admin.vm.volume.Clone

QubesOS/qubes-issues#2622

aadbe223c3af6322d57d7f97bea1ff6d6e4b3218 authored over 7 years ago
storage: extract single volume clone into clone_volume

This will be useful for admin.vm.volume.Clone implementation.

QubesOS/qubes-issues#2256

f48b1be669b5935b3663809abd6b34610b7296b9 authored over 7 years ago
vm: init vm.storage and vm.volumes in BaseVM

This way also AdminVM will have (empty) properties there. It is much
cleaner than adding `if has...

5209bc370de7c2f0cb5d66ec2728dbc22499d187 authored over 7 years ago
qubes.NotifyTools: ignore '/qubes-tools/version' completely

It isn't used for anything, so simply ignore it for good.

https://github.com/QubesOS/qubes-core...

86a935e77924be3875693a4502a25d7716a3c4a1 authored over 7 years ago
api/misc: fix retrieving requested features from QubesDB

qdb.list return list of bytes().

55669c350c0d93d004f1a5b344f37b6408ff79be authored over 7 years ago
vm: improve sending events for tags and features

1. Send the event after setting tag/feature
2. Provide old value for feature
3. Rename 'key' kwa...

160ab964bc0c5bfbd7a9eba327e54d30e28b8ea8 authored over 7 years ago
app: fix listing VMs based on given template

8ba60cd7e9b93635446467658b55d356afda15c2 authored over 7 years ago
Merge remote-tracking branch 'qubesos/pr/111'

* qubesos/pr/111:
vm: drop 'internal' property
qmemman: make sure to release lock
qmemman:...

93ccb8bbdaab30a79a79c77142227621fc90af31 authored over 7 years ago
Merge remote-tracking branch 'qubesos/pr/110'

* qubesos/pr/110:
storage: use direct object references, not only identifiers
vm: fix volume...

ba4da5cbe05b2a1721097084cd694fc572a54ff5 authored over 7 years ago
vm: change vm.updates_available to a 'updates-available' feature

37245acdcf7443f2f86b8f05e65dd974057644f1 authored over 7 years ago
vm/qubesvm: simplify 'None' kernel handling

caa03a927921cc9ebb17dc3fb1c22a0afca336ee authored over 7 years ago
api/misc: integrate qubes.NotifyTools logic with qubes.FeaturesRequest

Make qubes.NotifyTools reuse logic of qubes.FeaturesRequest, then move
actual request processing...

ee442c754f9ddbdee8b3c40c195714904df506d8 authored over 7 years ago
vm/adminvm: fix str(AdminVM) after changing its base

BaseVM have no (useful) __str__ method.

e8c303977b2de1437915ad5e2d2dce57f3f5e895 authored over 7 years ago
vm: drop 'internal' property

It isn't used anywhere in the code right now. And when it will be
needed, it should be a "featur...

9d99232515642de5f67c937d7c36236abc78654a authored over 7 years ago
qmemman: make sure to release lock

Even when handling updated meminfo or domain list something goes wrong,
make sure to release the...

206b7c02d53133c2aa2dbf7a4462ae13ca8cf590 authored over 7 years ago
qmemman: fix meminfo parsing for python 3

One more place not converted to python 3.

9015414119defa30b87b8dd7b785dd11e803449a authored over 7 years ago
devices: drop 'data' and 'frontend_domain' fields, rename 'devclass' to 'bus'

Drop DeviceInfo.data - device extension should provide a subclass with
proper individual fields....

3564250298240c176d6a9c6b4c865aab6b0d683a authored over 7 years ago
storage: use direct object references, not only identifiers

Reference objects, not their IDs - this way when object is modified, it
is visible everywhere wh...

0f1287080305f5bbc60faea2c58c10c59abb5e51 authored over 7 years ago
vm: fix volume_config

- kernel volume shouldn't have snap_on_start, it's read-only volume
anyway
- root volume of Ap...

80b459b6d5bc930fe2f01b09c50b8d7b83a3ecbb authored over 7 years ago
storage/lvm: prefix VM LVM volumes with 'vm-'

This will allow filtering them out in udev rules - to not parse any of
it.

QubesOS/qubes-issues...

fd5386cd472ea59f66a5cb7f319b9406dfa7deb6 authored over 7 years ago
storage: fix VM rename

When VM is renamed only volume.vid get updated, but not other attributes
calculated from it. Con...

fd3f19d4a667c06f741e3d72b676703ff0281bcc authored over 7 years ago
vm/mix/net: remove cleanup_vifs

With libvirt in place, this isn't enough - libvirt also keep VM
configuration in its memory and ...

26f25aeecdb4950089a208471617bae3d8c020cb authored over 7 years ago
vm/adminvm: don't base AdminVM on QubesVM

dom0 isn't real VM and most properties doesn't apply to it. Lets make it
more explicit.

fa1da422d1a6b6a06282932869559fa58ca14941 authored over 7 years ago
tests: basic tests for AppVM

Specifically, check if root volume is updated after template switch.

67fcda2cdecf349dffac8d3b0b013441dc987040 authored over 7 years ago
vm: make vm.get_power_state() return 'Halted' in offline_mode

Again, if libvirt or even Xen isn't running, we can safely assume VM
isn't too.

89e025ca3b62e1d5fbafb88ee509c7c0d89565d6 authored over 7 years ago
tests: remove obsolete tests, formatting

313d7422e7d5c05f062b1849b5d37279f8b836c2 authored over 7 years ago
vm: adjust VM's root volume when changing its template

Re-init volume config of all 'snap_on_start' volumes at template
chanage. For this, save origina...

04fd2ff34a28c073102f5a24afacdb87805066ba authored over 7 years ago
vm: reduce code duplication

Move inheriting volume from template to a helper function.

No functional change.

QubesOS/qubes...

63c23c835b02f869a02a3aafb3fa0b79e7d191c7 authored over 7 years ago
Migrate qubes.NotifyTools, qubes.FeaturesRequest, qubes.NotifyUpdates

Make them call into qubesd. Create separate socket for "misc" calls - VM
accessible, but not par...

28737d16ce795028b6b81cfefc546234ce2d76fd authored over 7 years ago