Commit Briefs

ec5e90b332 Omar Polo

fix pledges; ui needs `sendfd'

we need to send a file descriptor to the net process when we use a custom client certificate. Don't know how I missed it...


3c7ed8d83e Omar Polo

sandbox: temporarly disable unveil(2) on OpenBSD

I'd like to use execlp() in the near future, which means that unveil needs to be disabled. It's already virtually disabled, since we can shell out to execute stuff, so it's not a great loss. This will be improved in the future once the "core" process will be split off the UI.


b9a64d45f6 Thomas Adam

wip'n'crude: open downloads with xdg-open


7be09703f7 Omar Polo

sync landlock shim with gmid


485796a930 Omar Polo

drop the no sandbox warning


d35e18b31b Omar Polo

first draft of client certificate support

At the moment telescope loads a mapping host:port/path -> certificate from a file and always uses it, no ways to change it, use a temporary one, generate a new one, etc are provided yet. The format of ~/.telescope/certs/certs is host port path certificate file name where the certificate file name is the name of a file inside ~/.telescope/certs. ~/.telescope/certs/ is ~/.local/share/telescope/ when using XDG.


5edd158f8d Omar Polo

don't include linux/prctl.h

can conflict with sys/prctl.h, spotted while trying to build on alpine linux.


f63b8f7342 Omar Polo

merge the fs into the ui process

The previous separation between the fs and ui process wasn't that good. The idea was to have a `ui' process tightly sandboxed, but it was a lie actually. `ui' was one imsg away from making internet connections and accessing data on the disk, so it wasn't really limited in (almost) any way. Furthermore, having to serialize data to/from the fs proc started to become not really maneagable. As a first step to fix this situation, join the fs and ui process.


4cf6ba137f Omar Polo

remote open: open an url into telescope from outside of it

if telescope is started with an url while there is already another instance of it running and the -S flag is not provided, the link will be automagically opened into the running instance of telescope. Telescope now listens on a UNIX domain socket in ~/.telescope/ctl (or ~/.cache/telescope/ctl if XDG is used) for commands.


35ae81fd7c Omar Polo

fix landlock usage

cf. gmid 1.8.1 and recent changes in game of trees. This doesn't warrant an immediate release since every action is limited to /tmp, ~/Downloads and {config,data,cache}_home.



ed1d237e76 Omar Polo

add comment on why don't landlock the net process


7e76e0efa3 Omar Polo

fmt


fced318dae Omar Polo

missing include


4380c69299 Omar Polo

don't fail if ~/Downloads doesn't exist



a9d11f81b9 Omar Polo

add landlock support on linux

landlock is applied only to the ui process to drop fs access and in the fs process to limit where telescope can read/write files. The network process is more difficult to landlock because while in theory it doesn't need *any* fs access, in practice it needs to read (at least) files inside /etc/ for DNS to work.


fd0beb5314 Omar Polo

improve unveil' error reporting


4b877649af Omar Polo

fix sandbox wrt XDG-style directories


6845bee7f6 Omar Polo

[openbsd] allow creation of files in ~/Downloads


17c10c65d1 Omar Polo

(process) network -> net rename


de2a69bb42 Omar Polo

ask to save a page when it can't be rendered

it's good for thing like images and text with weird encodings.


f4aa8eb5a5 Omar Polo

don't include <err.h>, use the compat layer


754622a247 Omar Polo

fix various warnings, no functional changes

now that we have a bounch of -Wxxx flags during compilation, let's fix everything.