7f1be0d933
systemctl: fix sandboxing
2025-01-21 05:51:42 +00:00
9fccd2cf86
programs: gnome-frog: split into own file; hopefully fix dbus sandboxing
2025-01-14 23:31:41 +00:00
3fffc50975
modules/programs: allow access to the ProxyResolver portal
2025-01-11 00:45:27 +00:00
a3ebeb0543
modules/programs: enable org.freedesktop.DBus.Introspectable.Introspect for portal users
2025-01-11 00:45:27 +00:00
4c56ea3e6b
modules/programs: add more portal sandboxing options, and MPRIS option
2025-01-11 00:45:27 +00:00
65da9bd004
fractal: restrict dbus access a bit tighter
2025-01-06 11:25:35 +00:00
2a1d6fff08
programs: refactor whitelistDbus
2025-01-06 10:02:21 +00:00
3fc6571294
programs: don't persist mesaCacheDir by default
...
and explicitly add it to every program that uses mesa.
wow, that's a *lot*
2025-01-02 05:36:19 +00:00
bc15a876ff
programs: place TMPDIR on ephemeral storage for select programs which demand a lot of it
2024-12-17 10:26:34 +00:00
e145a8f003
assorted: remove the mesa cache for apps which aren't using it
2024-12-16 01:30:32 +00:00
cec413720e
programs: change the default mesa persistence directory
2024-12-16 00:08:27 +00:00
08ca65c2a4
programs: persist mesa dirs for every wayland application
...
this is certainly *not* perfect (it incorrectly persists some wayland utils like wtype; it has the wrong name for e.g. grimshot), but it's a good start
2024-12-16 00:06:31 +00:00
a0ade73638
modules/programs: allow using custom mesa cache dirs, when sandboxed
2024-12-15 23:31:50 +00:00
4788170e8a
programs: ensure gnome-keyring is started before the things which need it
...
notably, this seems to ensure dissent reliably logs on at start
2024-12-14 02:06:14 +00:00
fc239cfa34
modules/programs: support mime.priority when handling duplicated env
keys
2024-12-03 02:18:48 +00:00
de182e117d
modules/programs: enable even more /dev/video devices inside the relevant sandboxes
2024-11-29 18:33:35 +00:00
02286a24ba
modules/programs: add more /dev/video devices required by pinephone-pro rear camera
2024-11-29 18:29:35 +00:00
1f84fc4b2b
programs: port a few programs from dconf -> gsettings, tested on desko
2024-11-07 05:06:44 +00:00
3a9e4af6da
modules/programs: introduce a gsettings
config option, which so far routes to dconf but later will stand alone
2024-11-07 03:30:34 +00:00
864e75afce
sanebox: purge
2024-10-29 05:59:01 +00:00
dbc29db5fa
modules/programs: update docs for tryKeepUsers
2024-10-16 00:18:06 +00:00
0744237c13
programs: fix most service invokers (sway, nwg-panel, etc) to use systemd
2024-10-03 03:20:05 +00:00
61df81291b
refactor: optimize eval time
...
lifting `let` bindings up where possible helps reduce the number of thunks nix has to allocate. this patch only does that by 0.3%-ish, though
2024-10-01 03:54:44 +00:00
0c270fe4a3
WIP: sane.fs consumers: avoid wantedBy/wantedBeforeBy
2024-09-30 10:19:39 +00:00
edb665abd0
users: add a systemd
backend for managing services
2024-09-28 03:38:46 +00:00
ea3eaf048e
programs: sandbox with bunpen *by default*; manually opt out or opt to a different sandboxer where required
2024-09-21 23:00:49 +00:00
e9decbbf40
sandboxing: add a global toggle to disable sandboxing
2024-09-16 00:38:02 +00:00
b5f9ba62d0
camera: fix sandboxing for pipewire (so snapshot can open the camera), and share that with megapixels (which opens it directly)
...
N.B. snapshot (pipewire) doesn't work with the current kernel deployment; it requires linux-postmarketos-allwinner and even then only the front camera works (at about 1 fps)
this wasn't always the case: i believe that once, the rear camera worked as well. although now i think about it, i'm not positive of that
2024-09-15 11:14:23 +00:00
6e0c83b4f3
modules/programs: don't install bunpen/sanebox unless some program actually requires it
2024-09-14 23:10:19 +00:00
b43ee23459
firefox: allow webcam access
2024-09-13 00:02:48 +00:00
3ef98a5ab3
modules/programs: support "sandbox.keepIpc = true"
2024-09-07 22:10:11 +00:00
8255e419be
modules/programs: rename "keepUsers" -> "tryKeepUsers"
2024-09-06 06:32:49 +00:00
6e30527688
modules/programs: simplfiy the common combination of keeping pids AND /proc by introducing "keepPidsAndProc"
2024-09-06 04:18:46 +00:00
9340f52df1
modules/programs: rename isolatePids -> keepPids, isolateUsers -> keepUsers
...
this follows my explicit whitelisting elsewhere
2024-09-06 04:06:42 +00:00
6ff35b4366
dbus: place the bus in a subdirectory for better sandboxing
2024-09-04 13:04:20 +00:00
4328a7ddf3
modules/programs: remove unused arguments
2024-09-02 10:26:42 +00:00
3417a9fd3f
sanebox: remove the portal logic, and delegate it to manual handling by those few apps which truly need special casing
...
it's a questionable responsibility to give to the sandbox itself (unless i also have the sandbox do things like dbus proxying, someday). and it will make the bunpen implementation simpler
2024-08-27 11:00:15 +00:00
422e8aeb3f
sanebox: support existingDir{,OrParent}
autodetect option
2024-08-26 14:06:49 +00:00
c86d893a2c
modules/programs: sandbox: allow method = "bunpen"
2024-08-23 16:00:31 +00:00
effec38a99
modules/programs: sandbox: introduce an interface which will allow for sandboxers other than sanebox
2024-08-23 16:00:31 +00:00
e7d5a61014
libcap: split into separate capsh
and captree
programs, and sandbox the latter
2024-08-12 10:13:50 +00:00
f8aea34e96
sanebox: bwrap: make user namespace unsharing more obvious
2024-08-07 21:23:21 +00:00
c706a19836
landlock-sandboxer: rename the binary, so that it can be included on PATH without collisions
2024-08-05 22:59:14 +00:00
8ef5920d84
unl0kr: port to an s6 service
...
this has some drawbacks in its current form and will be tidied
it writes the password also to the consold. it requires 'sudo'.
2024-07-25 18:45:01 +00:00
34e770c5f5
sanebox: fix missing dependency on iptables/iproute2
2024-07-24 03:32:12 +00:00
db292850b0
modules/programs: fix sandbox.net = "vpn"
option
2024-07-19 12:44:09 +00:00
6824080f6b
avahi: fix broken sandboxing
2024-07-06 03:08:36 +00:00
a12aa02655
sane.programs: provide sandbox.net = "vpn.wg-home"
to tunnel through my home ISP
2024-07-05 20:18:34 +00:00
f54f1c57bc
avahi: integrate with nss
...
now i can resolve .local hosts, via glibc, e.g. 'getent hosts <host>.local'
2024-06-27 06:18:48 +00:00
46e9d5f758
programs: fix s6 deps when dbus isnt enabled
2024-06-12 07:11:41 +00:00