mirror of
https://github.com/theupriser/steamify-cachyos-dev.git
synced 2026-10-05 12:45:56 +02:00
fix: hw block 50: the private cache folder is readable like /var/cache/steamify (mktemp's 700 hid it from the user)
This commit is contained in:
1 parent
e6119ca194
commit
8df2e23314
1 file changed
+1
-1
@@ -4,7 +4,7 @@
|
|||||||
# limit can't fail this block. Needs the host cache (vmsuite.sh binds ~/vms/pkg-cache/steamify).
|
# limit can't fail this block. Needs the host cache (vmsuite.sh binds ~/vms/pkg-cache/steamify).
|
||||||
real="/var/cache/steamify/cros-ec-cec-${CEC_DRIVER_SHA256:0:12}.c"
|
real="/var/cache/steamify/cros-ec-cec-${CEC_DRIVER_SHA256:0:12}.c"
|
||||||
[[ -f "$real" ]] || { skip "R1.7 cache: no cached CEC driver on the host (~/vms/pkg-cache/steamify)"; exit 0; }
|
[[ -f "$real" ]] || { skip "R1.7 cache: no cached CEC driver on the host (~/vms/pkg-cache/steamify)"; exit 0; }
|
||||||
dir=$(mktemp -d); sudo chown root: "$dir"
|
dir=$(mktemp -d); sudo chown root: "$dir"; sudo chmod 755 "$dir" # like /var/cache/steamify: the user checks the cache
|
||||||
export CEC_DRIVER_URL="file://$real" CEC_DRIVER_CACHE="$dir/cros-ec-cec-${CEC_DRIVER_SHA256:0:12}.c"
|
export CEC_DRIVER_URL="file://$real" CEC_DRIVER_CACHE="$dir/cros-ec-cec-${CEC_DRIVER_SHA256:0:12}.c"
|
||||||
run() { cec_driver_enable 2>&1 | sed 's/\x1b\[[0-9;]*m//g'; }
|
run() { cec_driver_enable 2>&1 | sed 's/\x1b\[[0-9;]*m//g'; }
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user