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

github.com/QubesOS/qubes-core-qrexec


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

Merge branch 'qrexec-agent-restart'

* qrexec-agent-restart:
dom0: when qrexec-agent disconnects, try to reconnect

ac8b046b69798abcd1c820ba7bf2b9588a7b0b96 authored about 6 years ago
agent,daemon: allocate data buffers on the heap

Since max chunk size was increased to 64k, lets not do that on stack
anymore.

Suggested-by: Sim...

630709bcb2063ba822d2367ede39432dd2c79ea9 authored about 6 years ago
Bump protocol version to 3

QubesOS/qubes-issues#4909

5ae77f4d976e0e5df4e385fb590a023d8893cfc3 authored about 6 years ago
Allow longer qrexec service names and arguments

Model new MSG_TRIGGER_SERVICE (vm->dom0) on MSG_EXEC_CMDLINE - put
service name at the end and m...

93960fb3723afb7b5de4caba8e069574b392ba7f authored about 6 years ago
agent,daemon: increase data chunk size to 64k in protocol 3

Vchan can hold (in current configuration) up to 64k of data in one go.
Do not force context swit...

cc4ddf58b2824a1b9b74ad0176134f2ab33dc71b authored about 6 years ago
dom0: when qrexec-agent disconnects, try to reconnect

Do not exit when qrexec-agent disconnects, instead try to reconnect.
This allows to restart qrex...

65d48e69a7a145abcbbb08a6e30e6f357625785f authored about 6 years ago
libqrexec: wrap includes in #ifndef

Don't break when including them multiple times.

588efaa13642a3c00d9c6d7cbd69cbf272e55a16 authored about 6 years ago
daemon: use 1-byte buffer for EOF checking

d1f4a7aa32fc4f6ca88a8b802e2ca3b89649347d authored about 6 years ago
libqrexec: remove arbitrary chunk size limit in flush_client_data

There is no reason to split writes to child process into arbitrary chunk
sizes. The FD has O_NON...

7ca22dc52bda1d132440864eea9f17fc61187bb8 authored about 6 years ago
agent: fix size_t handling

Suggested-by: Simon Gaiser <[email protected]>

556f7e4e4cc305f442e0d6dcf2630cf240775a01 authored about 6 years ago
daemon: save negotiated protocol version

- allow agent to be older than daemon
- save negotiated version for further use

QubesOS/qubes-i...

e1241783100f97b65f5bb57c9720dab880d2194e authored about 6 years ago
Add protocol version enum, with protocol changelog

QubesOS/qubes-issues#4909

19b01423156e83ee841a5f422b56a6ced8710ec9 authored about 6 years ago
makefile: fix building from git checkout

Do not assume libqrexec-utils installed in the system.

b4d3f029890a8239c51e99ba71a103714df8c621 authored about 6 years ago
qrexec-policy: use default_target in policy prompt

c70c213a4f3dbc8c9778bf2e17aabbd0b2b639cb authored over 6 years ago
dom0: qrexec-client: recognise @adminvm as dom0

8a3fc6431d451e958759e59a9c85564d9b8b1e0b authored over 6 years ago
travis: set default python version to 3.5

Since we use virtualenv with system packages, it must match what is
shipped in xenial.

f9e638d9d88fd2e92c8e50e46d3149ba247c6240 authored over 6 years ago
Revert to the old parameter order for qrexec-policy-exec

There is absolutely no point in changing parameters order, just for the
sake of change.
Bring ba...

f86c34f0b43693ec33fadb96c9b08ba9a3d98d04 authored over 6 years ago
qubespolicy: fix default target if it's a keyword

Compare "api name", not "display name" when selecting default target in
confirmation dialog.
And...

08ed600f754348d029b70c4ced406913aef40d87 authored over 6 years ago
qubespolicy: forbid qrexec loopback connections at policy level

libxenvchan currently can't handle loopback connections. Since error
reporting on vchan connecti...

e70b5079d5fc6181b0da7e7fba1fe884c0801e89 authored over 6 years ago
Make pylint happy

Besides pylint being picky, it detected few real bugs:
- RPCNAME_ALLOWED_CHARS -> RPCNAME_ALLOW...

8e7dc317d25571ba443e19023b420ee55e7884a5 authored over 6 years ago
Fix compat parser - missing collect_targets_for_ask

734146c77587bfa73fe15a4f3bfc5629d2e4b535 authored over 6 years ago
tests: skip not migrated tests

753fe48b3750a524432110330413302fb5a61bdc authored over 6 years ago
tests: mock qrexec.call when running outside of qubes

Make it possible to import this test in travis.

4bbc9971e048f76c8e885896304df3a2300963e4 authored over 6 years ago
debian: add new tools to package

22c804fbc96326e1b584985cd770d9cbaac35be7 authored over 6 years ago
travis: add tests, pylint, codecov and centos7

4da13667e77a9e019f3618f4a247e5d2a17e739e authored over 6 years ago
rpm: adjust python3 package name for CentOS compat

94d51515c435e66283cb9dd0e71c4ac78e33937f authored over 6 years ago
Merge remote-tracking branch 'origin/pr/2'

* origin/pr/2: (31 commits)
qrexec: test for implicit deny rule in !compat-4.0 and bugfix
A ...

6dc5e2c901e2ead9933f74585d3a69dc69d5322e authored over 6 years ago
Fix issues pointed by -Wunused-result

QubesOS/qubes-issues#

2c9f3ad3d8a5f2d91015a7d50ce02e65ae3f40cc authored over 6 years ago
Fix GCC8 warning

QubesOS/qubes-issues#4225

c2b93a98dd0390b5ffa53e9681693f204b5f9633 authored over 6 years ago
Include documentation for things moved from core-admin

For now just put files in the repository. Package them later

QubesOS/qubes-issues#4955

06b66f9df029e582d9617cb9103880fc910bc6f1 authored over 6 years ago
Adjust python code to renamed module qubespolicy -> qrexec

QubesOS/qubes-issues#4955

9dbca2c888e39dd829b303b4129d588aee2f67fa authored over 6 years ago
Add qrexec policy agent startup files

Desktop file starting the agent + dbus policy.
Moved from core-admin at 56ec271606659977d5f58666...

7294f5294097a41ac225c3736c0186c5a1235007 authored over 6 years ago
rpm: add BR: pandoc

Required for documentation build

e91a93da8e39edae9f04ec6b01be611f3b9d2ea2 authored over 6 years ago
Fix makefiles to work outside of rpm build too

Set defaults for variables, make it link with locally build library.

eb50cef8e81934ea88afb29a9e6da1b440844b93 authored over 6 years ago
Remove unused makefile fragment

QubesOS/qubes-issues#4955

0f1536c5a514ea2d50f6780b55546fd56110c188 authored over 6 years ago
Add /etc/qubes/rpc-config/README

Move from core-agent-linux package, as it belongs to qrexec agent.

af864470d4adb0d75e24148976613454191325c7 authored over 6 years ago
rpm: rework packaging

Rename base rpm to match repository name - less confusion
Drop debug package hack - not really n...

5be8a141b86833a21492fdaf9798fb2163598a82 authored over 6 years ago
qrexec: add version negotiation

Use lower version from (local, remote).

QubesOS/qubes-issues#4909

de34d98d287ab15bbe4bc6c475d057afd4581750 authored over 6 years ago
debian: add packaging

e5aa33ba60b099e52886c26d10578e66e5447a4f authored over 6 years ago
rpm: fix source directory name

For all three spec files, tarball (and dir name inside) is named
qubes-core-qrexec-(version). Pa...

9257c21d2ea771dce44e982b81411b312be2d53a authored over 6 years ago
travis: initial version

9b4626594fa665914486964657f8257ed323c196 authored over 6 years ago
qrexec: add startup notification

Avoid race conditions with services ordered shortly after qrexec start.
Make systemd know when q...

14289a9e29fa2aa13f99f65b179dd25c478b55b2 authored over 6 years ago
qrexec: add version negotiation

Use lower version from (local, remote).

QubesOS/qubes-issues#4909

1c0b9584e76d7e5f824a2e131cb52fec25a26270 authored over 6 years ago
Install debian version of qrexec pam in Ubuntu templates

6e185d8ae0845444e5e753fde549997d43ea82ed authored over 6 years ago
rpm: use build flags provided by the distribution

Among other things, this enable various hardening options.

QubesOS/qubes-issues#2259

7d8555145b52dce7f70616302a277e96cb1b8b4b authored over 6 years ago
qrexec: fix handling remote domain death

Periodically (every 10s) check if connection is still alive, otherwise
killing remote domain (as...

d01b857558159dcb7edce092b7b3abd3e5ab3d4a authored over 6 years ago
qrexec: test for implicit deny rule in !compat-4.0 and bugfix

b74dd844d6a00321306e803d33fe8a8c6469c9d6 authored over 6 years ago
A simple test for !compat-4.0 statement

This really only tests loading, but should be enough for the current
code state. But by no means...

4da62c78fd2c3f0eb911afc3a0943f8c576c5f3f authored over 6 years ago
Update documentation

aea65e90749e2a9b9ed857650fdc05e27351526c authored over 6 years ago
qrexec/tests: fix tests

4133575a51e67e1b8520367020f9dffbd54d42ac authored over 6 years ago
qrexec: misc and lint fixes

Some are from @marmarek's review. Thanks!

f000fc2d2b649b1a7022193aca014cfc7b685bed authored over 6 years ago
qrexec/policy/parser_compat: fix $include

13f43da0b72b3902bb4fd46de5e78395f9239eda authored over 6 years ago
Documentation: fix filenames in spec

The suffix ".policy" is mandatory.

d7628a812b39135b86ce57019a77ff576afef41c authored over 6 years ago
Allow @adminvm in SOURCE

Rationale: qubes.ClipboardPaste

08e84340e3e47a04ce895109ade342444a92e031 authored over 6 years ago
qrexec/policy/parser: fix compat

- change !compat-4 to !compat-4.0 per @marmarek
- fix $include: inside compat files
- install 35...

2e38cf567d210c2b4da6dbeb95f03aa16fc4d563 authored over 6 years ago
policy: Require .policy filename suffix

3e59873e745f45635dd9106688bbe29a4ffce525 authored over 6 years ago
vim syntax

Currently not packaged

b346aa280abcbfb616bd9cbb6f6b51d916631f29 authored over 6 years ago
misc fixes

c7444f9749780616c88470fa717b24cdbb3a5415 authored over 6 years ago
!compat-4 statement

This is work in progress. Currently, $include: in old files is broken.

b6d5d632128edf021bbee828870b3669fc06f72f authored over 6 years ago
tools: qubes-policy is the tool for policy management

Probably currently is broken.

3e22a16a41ffc4cf286fea2fa0fbaa1dfe6ead8a authored over 6 years ago
The new policy format, stub directories

b65abcdc59b1a08f50530e26dd39cdceddb64359 authored over 6 years ago
Documentation: fix policy → policy.d and numbers

Those are various consistency fixes.

a2f9cc188b27ad0455783a3c755a460d328b6a87 authored over 6 years ago
qrexec/policy/parser: Add comment about closing file

From @marmarek's review.

04fc56ffe1b5d2148fa1048222c8a732275fac6b authored over 6 years ago
Fix calling qrexec-policy-exec from external procs

Qrexec daemon is hereby fixed, but there are other processes, like
qubesadmin tools, which may s...

554f0a9d1b2ce89c3b6195e3c971f40b13b1b6ef authored over 6 years ago
add qrexe-client-vm man page source

Import from core-agent-linux 6799aad15ed58454fc70c8341cd891f89bf4c15

1733ab8ec3261255c4b3d2cd50ef946abd6ba493 authored over 6 years ago
qrexec: fixes from marmarek's review

b7ff2da75a80d31fd2e6b369cf7a4f52b818de90 authored over 6 years ago
qrexec: assorted documentation and CI fixes

7b2419e38d91eab36fdf9d16bfaac12f9aa069d2 authored over 6 years ago
qrexec/policy/parser: rework path normalisation

71d3160ee6da0f8631c1a3c8828d78c60f0a8d83 authored over 6 years ago
test fixes pt. 2, and other fixes

- much of higher-level tests fixed, still more to go
- AllowResolution.actual_target renamed .ta...

7199cd2999451841ce3957efa3fc6ef8eb6b795f authored over 6 years ago
Test suite rewrite pt. 1

For now, run it as python -m unittest qrexec/tests/policy_parser.py -v

3acfae48fd263e643f3824024bfaa5ebd0de13aa authored over 6 years ago
sphinx documentation

471d6493cc5269828eb1adda717660c1d4dfcdcc authored over 6 years ago
specification: clarity about comments and more rationale

Specification of comments amended per @marmarek's review.

fe938d97842a04813767836cd039ed80cb92af08 authored over 6 years ago
rewrite policy parser for new Qrexec policy format

New format is in Documentation. At the time of this writing, it is still
not finished.

10aadc695e8f331da9f849ffd0d8f65c4bf1694c authored over 6 years ago
qrexec.call() and friends

qrexec.call() is meant to be universal Python API to call qrexec
services. It is detected whethe...

2b1271ec1abc51533de9b889049709b0c835bec5 authored over 6 years ago
agent: manpage and misc packaging fixes

fbfbbc07793979eed75dc1b5130e821be95865f8 authored over 6 years ago
drop POLICY_DIR, use pathlib

903cdc4d5987ab4e20e4b214a80313078381e4de authored over 6 years ago
merge policy API

9ba7258cb41ffbcff7aa6a9cb6c57fe587fa5dd4 authored over 6 years ago
reorganize python package

9eb2f5081f4f38c39b510b1a45378de86b7b9b0c authored over 6 years ago
Add specification for multifile policy

Draft for final review.

3233b21710ba791e92d557af402b0d674b5f6b74 authored almost 7 years ago
Initial commit

This is code imported from:
- core-agent-linux a850e3aaee93b40fc613a7d5276988f30d12a179
- core-...

64b46be5beba5257ae7d25d037cb518bdc74d5bd authored about 7 years ago