diff options
author | John Turner <jturner.usa@gmail.com> | 2025-08-26 23:25:59 -0400 |
---|---|---|
committer | John Turner <jturner.usa@gmail.com> | 2025-08-26 23:25:59 -0400 |
commit | 91f347af531a074328d837a4eac3a23322881b3d (patch) | |
tree | 0b83fab65df7a1c4821c8da4f03cd8f506530b24 | |
parent | 7ef7cd17072d9d6db7e172b3a59848cbcc27da23 (diff) | |
download | website-91f347af531a074328d837a4eac3a23322881b3d.tar.gz |
processes need access to /etc/ld.so.cache not /etc/ld.so
Also we bind in the loader cache in the bwrap examples.
-rw-r--r-- | blog/access-control.org | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/blog/access-control.org b/blog/access-control.org index 3eace82..cd84a34 100644 --- a/blog/access-control.org +++ b/blog/access-control.org @@ -18,7 +18,7 @@ Here are the directories/files it needs write access to: It also needs read-only access to some system files such as (assuming a merged-usr system): #+BEGIN_SRC - /etc/ld.so # the dynamic loader + /etc/ld.so.cache # dynamic loader cache /usr/lib{,32,64} /usr/bin/weechat # weechat executable itself /usr/share @@ -48,12 +48,13 @@ Let's see an example of how we actually do this: --tmpfs /run --tmpfs /var --tmpfs /mnt/sandbox + --ro-bind /etc/ld.so.cache /etc/ld.so.cache --ro-bind /usr /usr --ro-bind /bin /bin --ro-bind /sbin/ /sbin --ro-bind /lib /lib ) - + # handle lib32 and lib64 for some systems [[ -e /lib32 ]] && args+=(--ro-bind /lib32 /lib32) [[ -e /lib64 ]] && args+=(--ro-bind /lib64 /lib64) @@ -80,6 +81,7 @@ This isn't super useful but it shows a simple example. Now lets adapt this to ru --tmpfs /run --tmpfs /var --tmpfs /mnt/sandbox + --ro-bind /etc/ld.so.cache /etc/ld.so.cache --ro-bind /usr /usr --ro-bind /bin /bin --ro-bind /sbin/ /sbin |