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 up4.0rc1 qubesdb-write -c watch doesn't support recursive watching #3063
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Aug 30, 2017
Member
Add trailing slash to watch the whole subtree:
qubesdb-watch /qubes-firewall/
Note that you'll need to check what path was modified, since it will catch also every individual rule modification. See here:
https://github.com/QubesOS/qubes-core-agent-linux/blob/0fabc54aad63512165357cf0b0997d19c84d210c/qubesagent/firewall.py#L133-L152
|
Add trailing slash to watch the whole subtree:
Note that you'll need to check what path was modified, since it will catch also every individual rule modification. See here: |
marmarek
closed this
Aug 30, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
3hhh
Aug 31, 2017
Thanks for the clarification and hint!
Just tested it and yes, you were of course correct!
3hhh
commented
Aug 31, 2017
|
Thanks for the clarification and hint! Just tested it and yes, you were of course correct! |
3hhh commentedAug 30, 2017
Whilst implementing a custom qubes firewall for #3051 I noticed that
qubesdb-write -c watchcannot detect changes to any subnodes of/qubes-firewallinside a proxyVM, but only to single subnodes as described in https://www.qubes-os.org/doc/vm-interface/:This is rather inconvenient as all changes to the firewall in 3.2 could be detected by watching the single
/qubes-iptablesnode.So for now users can stick to the 3.2 solution, but once this is removed from 4.0, they'll have to do some polling of all rules at specific intervals.
Feature Request: Adding an option to watch recursively might solve this once and for all. If this is not considered to have sufficient performance, updating a single key for all firewall changes should also be fine.