Skip to content

Commit

Permalink
Add qubes.UnsafeFileCopy service
Browse files Browse the repository at this point in the history
This is mostly identical to qubes.Filecopy, but it skips character set
checking.

In the future, this might be replaced by arguments to the qubes.Filecopy
service, but for now, the explicit "Unsafe" in the service name is
easier for users to understand.
  • Loading branch information
DemiMarie committed May 21, 2024
1 parent 40ebf91 commit a95d3e9
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions debian/qubes-core-agent.install
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ etc/qubes-rpc/qubes.ShowInTerminal
etc/qubes-rpc/qubes.Backup
etc/qubes-rpc/qubes.DetachPciDevice
etc/qubes-rpc/qubes.Filecopy
etc/qubes-rpc/qubes.UnsafeFileCopy
etc/qubes-rpc/qubes.GetAppmenus
etc/qubes-rpc/qubes.GetImageRGBA
etc/qubes-rpc/qubes.InstallUpdatesGUI
Expand Down
3 changes: 2 additions & 1 deletion qubes-rpc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ install:
install -t $(DESTDIR)$(BINDIR) -m 4755 qfile-unpacker
install -d $(DESTDIR)$(QUBESRPCCMDDIR)
install -t $(DESTDIR)$(QUBESRPCCMDDIR) \
qubes.Filecopy qubes.OpenInVM qubes.VMShell \
qubes.Filecopy qubes.UnsafeFileCopy \
qubes.OpenInVM qubes.VMShell \
qubes.VMRootShell \
qubes.VMExec \
qubes.OpenURL \
Expand Down
6 changes: 6 additions & 0 deletions qubes-rpc/qubes.UnsafeFileCopy
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh
if [ -f /usr/lib/qubes/qvm_nautilus_bookmark.sh ]
then
/usr/lib/qubes/qvm_nautilus_bookmark.sh >/dev/null 2>&1 </dev/null
fi
exec /usr/lib/qubes/qfile-unpacker --allow-unsafe-characters
1 change: 1 addition & 0 deletions rpm_spec/core-agent.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -882,6 +882,7 @@ rm -f %{name}-%{version}
%dir /etc/qubes-rpc
%config(noreplace) /etc/qubes-rpc/qubes.ShowInTerminal
%config(noreplace) /etc/qubes-rpc/qubes.Filecopy
%config(noreplace) /etc/qubes-rpc/qubes.UnsafeFileCopy
%config(noreplace) /etc/qubes-rpc/qubes.OpenInVM
%config(noreplace) /etc/qubes-rpc/qubes.OpenURL
%config(noreplace) /etc/qubes-rpc/qubes.GetAppmenus
Expand Down

0 comments on commit a95d3e9

Please sign in to comment.