github.com/QubesOS/qubes-core-qrexec
https://github.com/QubesOS/qubes-core-qrexec
c9185638cdd78e4ba0b59546f8182c1ca86dde44 authored over 1 year ago
GCC 14 complains:
qrexec-agent.c: In function ...pam_conv_callback...:
qrexec-agent.c:101:23: e...
171a681681632cd51a88952ff909482f0c9ac20f authored over 1 year ago
This print leaks the whole qrexec policy to the caller of the
policy.RegisterArgument service. D...
9670cb5d9a79968f9bb0e9960bd6432170b46b57 authored over 1 year ago
* origin/pr/131:
rpm: add missing directory ownership
rpm: adjust pyinotify pkg name for ope...
* origin/pr/132:
Add dedicated PAM file for Gentoo
cd63c7d31759fd9691dd181df4ecffe3215dfd1e authored over 1 year ago
When --full-output is given, include also which specific arguments are
allowed, not only whether...
The line color is supposed to mean ask/allow actions. With --full-output
it incorrectly used alw...
QubesOS/qubes-issues#8648
f92f2123cd9fa0b785dbc2aefbabadbcbc301a4a authored over 1 year ago
When the tool is called with a specific service argument, consider rules
with wildcard argument ...
For example --target=@default doesn't make sense.
When parsing source/targets already, save pars...
QubesOS/qubes-issues#6567
45e7a589da01e9b210dbc1877062b8b466e2b7c6 authored over 1 year agoQubesOS/qubes-issues#6567
9a9abdc31366c21014621836044c298025593412 authored over 1 year agoQubesOS/qubes-issues#6567
b42d492caa6fbf2df6d22d217c916e2d2ad6f91d authored over 1 year ago
/qubes-rpc/policy.{Ask,Notify} intentionally points to files created at
runtime (in /var/run). o...
7b503d9321137a2d284f46eadfe5bc08e8e7bdc0 authored over 1 year ago
8f6043d1ff657f15d9759898d8d9e96f972faf62 authored over 1 year ago
It's just python-rpm-macros there, not python3-rpm-macros
9c4c3aff95a51c2600ff3438fd1c4226b99d1180 authored over 1 year ago
This way it works on both Fedora and openSUSE.
Use also common "sphinx-build" name, which is a s...
cbb90ba2a03f504c924fc29ace8a1a41daad1f43 authored over 1 year ago
d92f98918e0018582cb6f476ca5ccdda9fa069fc authored over 1 year ago
ec5aa1b776785a0c64b875c44f78672ed6335157 authored over 1 year ago
Consider '@default' target when collecting policy rules, as it might
match different rules than ...
Fixes: https://github.com/QubesOS/qubes-issues/issues/8644
3720ecb4021b5a8a242b7f3a7b8e7339c1445a85 authored almost 2 years ago0c5d8bc05cc3c5e08d692e2e2d857f848cda2085 authored almost 2 years ago
* origin/pr/128:
Don't wait for stdin if there is unsent prefix data
Generate gcov reports in appropriate directories (not just top level) to
match them to the sourc...
Without this change, prefix data is not sent until stdin becomes
readable. With this change, pr...
e1553db46c37c8df6cd8bac3963af80998dfd5cf authored almost 2 years ago
d0cbbfb987f489c70b9474e658b8d0b8f91dcb29 authored almost 2 years ago
654e3e0cd453ffc742c006a28a6ae36c8c05659d authored almost 2 years ago
96dbbf76ec5fdf805a12b7287f213423b0584510 authored almost 2 years ago
* origin/pr/123:
Tests for legacy policy convert tool
Modify qrexec-policy-graph for more fl...
2849c908dcaf2107a99c4c4c0f3f0c63490b7644 authored almost 2 years ago
Enable outputting more information about permissions/actions
Make output more flexible (can be p...
28c1504912fdcdf6b43bbe2b7b2f353ea364bc35 authored almost 2 years ago
51c630938f5ffb635314a8e77ad4233ed1ca9680 authored almost 2 years ago
* origin/pr/109:
Ensure that VLAs do not creep back into the code
Allow specifying a usernam...
fixes QubesOS/qubes-issues#8000
b570f1f7ef8eeb79364d0ceba08f84e2ba102c81 authored almost 2 years agoThey are a bad idea and the Linux kernel has banned them from its code.
0fa8ecc76a1a6600511bc2861c75b5218d24661a authored almost 2 years ago
This also dramatically improves the configuration parser. Configuration
files now use a strict ...
The utils.get_system_info() still returns full system_info dict, not
just "domains" element (thi...
This requires some internal refactoring, which is split off into a
separate commit to ease revie...
This avoids crashes if a buggy qrexec agent sends a malformed message.
It also avoids variable-l...
exit() will double-flush streams, among other problems.
32719f26b1dbad2c51f77e8ab8b5a20751e51671 authored almost 2 years ago
This allows the C compiler to type-check arguments to qrexec_log() and
thus to the logging macros.
5f68a98986352283dc4c851349bc8c9603cd9bf6 authored almost 2 years ago
776f694a745ae803d668e1b6936cf21d212a66ab authored almost 2 years ago
2c060ef7381f15cb285af1a8ffddbdfdd1ee4d8c authored almost 2 years ago
If remote VM fails to establish (already allowed by the policy)
connection, the local side (qrex...
42c8574a1b26436c43d1572d1f92ef56153c5aaa authored almost 2 years ago
79609b132c49af7d4742d1ab46ebcacc93875d6c authored almost 2 years ago
It does exist in dom0 normally, but not necessarily in CI or devel
environment.
9fdf915cbd1de57735713d18fa80c08200df5c9a authored almost 2 years ago
Remove options not existing anymore.
34076183cd8287cfb0c55dfa2cfd2d75daca453c authored almost 2 years agoEnforce file mode and ownership for replaced files.
Signed-off-by: Ben Grande <ben.grande.b@gma...
da87fb174813478b6561bfbe82897fc15434d88e authored almost 2 years agoSigned-off-by: Ben Grande <[email protected]>
2562621d95b9f722345f366693eaec449d043794 authored almost 2 years ago403eaa28cdd46661ae53b181b830c698be4a05e6 authored about 2 years ago
Make it add rules into
/etc/qubes/policy.d/60-registered-arguments.policy, instead of legacy
/et...
10adc8303ff9bf190b7ea448a40b5c8566dadd03 authored about 2 years ago
This corresponds to an service program with an empty name. Such a
program cannot actually exist...
Previously, this would cause the service name to be truncated, which is
not helpful. Also rejec...
* origin/pr/118:
Move variables into MSG_TRIGGER_SERVICE3 block
* origin/pr/114:
Ensure that all external variables are type-checked
Banish old-style functi...
These variables are only used in that block, so declare them in that
block.
Signed-off-by: Ben Grande <[email protected]>
587fa6825e8abdb8c51bd90f94075acedf7749d7 authored about 2 years agoWhen service call is rejected early, release memory before returning.
87ea44e7b3ede3e2a708387da33815b03c580bf2 authored about 2 years agoFix compile error:
../daemon/qrexec-daemon.c:1235:13: error: expected expression
...
This requires that all objects with external linkage are declared in a
header file that is inclu...
They are deprecated in all versions of C and are fundamentally unsafe.
Also ensure that all func...
* origin/pr/112:
Fix header validation by qrexec agent
* origin/pr/110:
Reject requests with invalid request ID
c70709d1e6d9febb1f20ced3617c3f6d14973810 authored about 2 years ago
Debian uses Python 3.9.2 which does not support typing.TypeAlias.
Ensure that typing.TypeAlias i...
Signed-off-by: Ben Grande <[email protected]>
d0f4a16b591098342451bb59bb9365a28da39536 authored about 2 years ago
This avoids a 1-byte out-of-bounds buffer underread in the agent. It
also ensures that an inval...
Apparently it's too soon to use close_range() yet. At least environment
used in oss-fuzz does no...
This is the primary function parsing messages from VM, in dom0. Fuzz
this too. It requires a lit...
249a64cfa9508570f50902589eea8dd28fb6bc38 authored about 2 years ago
'echo -ne' doesn't work with all shell builtin echo implementation.
Force bash.
Make it not-static in fuzzing build and also free memory even when if
normally the process would...
0b8891e2f0312efe9ecfa903b42d20cd708ed279 authored about 2 years ago
Policy editor uses those.
Fixes: 0ab2ac1 "Avoid having qrexec-policy-daemon handle connections"
92071a5d31876a796e2fba647490cd9bed4a8ccf authored about 2 years agob1007c38deeccdf5e6a54d26d5b1b1599030a634 authored about 2 years ago
* py36:
Do not use 'annotation' future extension
The handle_message_from_agent() assumes there is always a space for
terminating NUL character in...
It isn't available in Python 3.6 (CentOS Stream 8), use manual string
annotations where necessar...
Mangling the request ID is not useful: the agent will use the mangled
request ID to look up the ...
69a21b7d2eb2f3f91df9e3994c72f2b1919a68f0 authored about 2 years ago
This makes qrexec-policy-daemon stateless and ensures that restarting it
does not e.g. cause dat...
Using pytest.fixture() no longer works in Python 3.11. This manifests
as test failures when run...
This adds lots of types to Python code, making it easier to understand
and maintain. A mypy.ini...
This will be used by qrexec to clean up disposable VMs.
8df26276e94cb19b2b6e45f92b32d879f0c56bc0 authored over 2 years ago
These functions will be used in qrexec-daemon and qrexec-client to
support communication with qu...
by adding '--' to the rm command line
6a00e92abddf7447ff320cf7b11a2f52364ba502 authored over 2 years agoThis avoids errors from later coverage runs.
93a0b39e08ca9101b3d243079893eb34d97a43a4 authored over 2 years ago
Previously the ln commands would fail because the symlinks already
existed.
No functional change intended.
f84f5785b609573a3c102287ff9fbce13df6236e authored over 2 years ago