[PR #3762] [MERGED] reimplement --private-cache using --tmpfs #4873

Closed
opened 2026-05-05 10:28:09 -06:00 by gitea-mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netblue30/firejail/pull/3762
Author: @smitsohu
Created: 11/20/2020
Status: Merged
Merged: 11/22/2020
Merged by: @netblue30

Base: masterHead: smitsohu-private-cache


📝 Commits (1)

  • da53c4e reimplement --private-cache using --tmpfs

📊 Changes

3 files changed (+17 additions, -58 deletions)

View changed files

📝 src/firejail/fs.c (+6 -30)
📝 src/firejail/sandbox.c (+3 -6)
📝 test/fs/private-cache.exp (+8 -22)

📄 Description

Use new --tmpfs functionality to implement --private-cache. This has the added advantage that Firejail can now deal with symlinked ~/.cache directories, at least as long as the symlink's target lives in user home.

The new --private-cache is less verbose and now behaves like --blacklist, --read-only and so on, which is why the test had to be adapted.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netblue30/firejail/pull/3762 **Author:** [@smitsohu](https://github.com/smitsohu) **Created:** 11/20/2020 **Status:** ✅ Merged **Merged:** 11/22/2020 **Merged by:** [@netblue30](https://github.com/netblue30) **Base:** `master` ← **Head:** `smitsohu-private-cache` --- ### 📝 Commits (1) - [`da53c4e`](https://github.com/netblue30/firejail/commit/da53c4ebf0b7f5c6d07cb14dd7ec3ff3910fe180) reimplement --private-cache using --tmpfs ### 📊 Changes **3 files changed** (+17 additions, -58 deletions) <details> <summary>View changed files</summary> 📝 `src/firejail/fs.c` (+6 -30) 📝 `src/firejail/sandbox.c` (+3 -6) 📝 `test/fs/private-cache.exp` (+8 -22) </details> ### 📄 Description Use new `--tmpfs` functionality to implement `--private-cache`. This has the added advantage that Firejail can now deal with symlinked ~/.cache directories, at least as long as the symlink's target lives in user home. The new `--private-cache` is less verbose and now behaves like `--blacklist`, `--read-only` and so on, which is why the test had to be adapted. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-05-05 10:28:09 -06:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#4873
No description provided.