mxc 0.4.0-x86_64-linux → 0.4.1-x86_64-linux
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/lib/mxc/3.2/mxc.so +0 -0
- data/lib/mxc/3.3/mxc.so +0 -0
- data/lib/mxc/3.4/mxc.so +0 -0
- data/lib/mxc/4.0/mxc.so +0 -0
- data/lib/mxc/sandbox.rb +6 -3
- data/lib/mxc/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e823dba4eda34547c8d9f69f757159853a4a7dcfbe4c812977d017aeffab9bad
|
|
4
|
+
data.tar.gz: '0249efbddc710c8633c134eb7ae6efb82f91855a52c7e55b5f784282d49e15a8'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7f070db2714abec61e97ac6f88787c0a07f5bb2add5bd6596dcbe6e44a7b77502f849fdaeb9dab2ec253069a3b5877b3e48e73df6935ef61b6369c923f64a355
|
|
7
|
+
data.tar.gz: 622128cab7fced35b66d24348b5d8036b7e175859c984e1147662f2fd42d8293c390a9e683ff2faee5acefd5d4f1e0efc954e1622db7744786d20525c223adf4
|
data/README.md
CHANGED
|
@@ -128,6 +128,8 @@ MXC.backends # => [#<MXC::Backend name=:bubblewrap ...>]
|
|
|
128
128
|
|
|
129
129
|
On Windows, a single String runs through `cmd.exe` instead of `sh`. See [Running Commands](https://crmne.github.io/mxc/running-commands/#windows) and [Policies](https://crmne.github.io/mxc/policies/#windows) for what else differs.
|
|
130
130
|
|
|
131
|
+
A sandbox controls files, network, and resources. It does not always hide other processes: on some backends a command can read their command lines, and on macOS the environment your application started with. [Policies](https://crmne.github.io/mxc/policies/#what-the-command-can-see-of-other-processes) lists what each backend shows.
|
|
132
|
+
|
|
131
133
|
Docker blocks the namespaces Bubblewrap needs by default, so a default container runs sandboxes on Landlock. [Running in Docker](https://crmne.github.io/mxc/running-in-docker/) shows what that gives up, and the smallest set of changes that makes Bubblewrap work, with a seccomp profile and a Kamal configuration for a job role.
|
|
132
134
|
|
|
133
135
|
## Documentation
|
data/lib/mxc/3.2/mxc.so
CHANGED
|
Binary file
|
data/lib/mxc/3.3/mxc.so
CHANGED
|
Binary file
|
data/lib/mxc/3.4/mxc.so
CHANGED
|
Binary file
|
data/lib/mxc/4.0/mxc.so
CHANGED
|
Binary file
|
data/lib/mxc/sandbox.rb
CHANGED
|
@@ -177,7 +177,8 @@ module MXC
|
|
|
177
177
|
add_paths(:readable, paths)
|
|
178
178
|
end
|
|
179
179
|
|
|
180
|
-
# Adds paths the command can read and write.
|
|
180
|
+
# Adds paths the command can read and write. A path that is also #readable is writable,
|
|
181
|
+
# whichever was added first. A readable path inside a writable one stays read-only.
|
|
181
182
|
def with_writable(*paths)
|
|
182
183
|
add_paths(:writable, paths)
|
|
183
184
|
end
|
|
@@ -470,9 +471,11 @@ module MXC
|
|
|
470
471
|
|
|
471
472
|
def request(arguments)
|
|
472
473
|
Preflight.check!(network:, denied:, resources:, backend:)
|
|
474
|
+
readwrite = expand(writable)
|
|
473
475
|
{
|
|
474
|
-
|
|
475
|
-
|
|
476
|
+
# MXC resolves a path in both lists to read-only.
|
|
477
|
+
readonly: (expand(readable) | library_files(arguments)) - readwrite,
|
|
478
|
+
readwrite:,
|
|
476
479
|
denied: expand(denied) | hidden_resolver_sockets,
|
|
477
480
|
environment:,
|
|
478
481
|
working_directory:,
|
data/lib/mxc/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mxc
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.1
|
|
5
5
|
platform: x86_64-linux
|
|
6
6
|
authors:
|
|
7
7
|
- Carmine Paolino
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-11-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: An unofficial Ruby binding to Microsoft's MXC. Run commands in Bubblewrap,
|
|
14
14
|
Seatbelt or Windows ProcessContainer sandboxes with filesystem, network, environment
|