Skip to content

modif: keep tcm/tcmrm devices if keep-dev-tpm is used #6724

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/firejail/fs_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ static DevEntry dev[] = {
{"/dev/video[0-9]*", RUN_DEV_DIR "/video[0-9]*", DEV_VIDEO}, // video camera devices
{"/dev/dvb", RUN_DEV_DIR "/dvb", DEV_TV}, // DVB (Digital Video Broadcasting) - TV device
{"/dev/sr[0-9]*", RUN_DEV_DIR "/sr[0-9]*", DEV_DVD}, // for DVD and audio CD players
{"/dev/tcm[0-9]*", RUN_DEV_DIR "/tcm[0-9]*", DEV_TPM}, // TCM (Trusted Cryptography Module) devices
{"/dev/tcmrm[0-9]*", RUN_DEV_DIR "/tcmrm[0-9]*", DEV_TPM},
{"/dev/tpm[0-9]*", RUN_DEV_DIR "/tpm[0-9]*", DEV_TPM}, // TPM (Trusted Platform Module) devices
{"/dev/tpmrm[0-9]*", RUN_DEV_DIR "/tpmrm[0-9]*", DEV_TPM},
{"/dev/hidraw[0-9]*", RUN_DEV_DIR "/hidraw[0-9]*", DEV_U2F},
Expand Down
2 changes: 1 addition & 1 deletion src/man/firejail-profile.5.in
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ running certain programs through Wine.
/dev/shm directory is untouched (even with private-dev).
.TP
\fBkeep-dev-tpm
Allow access to the /dev/tpm[0-9]* and /dev/tpmrm[0-9]* Trusted Platform Module
Allow access to Trusted Cryptography Module (TCM) and Trusted Platform Module
(TPM) devices (even with \fBprivate-dev\fR), which are blocked by default.
.TP
\fBkeep-shell-rc
Expand Down
14 changes: 13 additions & 1 deletion src/man/firejail.1.in
Original file line number Diff line number Diff line change
Expand Up @@ -1255,10 +1255,22 @@ $ firejail --keep-dev-shm --private-dev

.TP
\fB\-\-keep-dev-tpm
Allow access to the /dev/tpm[0-9]* and /dev/tpmrm[0-9]* Trusted Platform Module
Allow access to Trusted Cryptography Module (TCM) and Trusted Platform Module
(TPM) devices (even with \fB\-\-private-dev\fR), which are blocked by default.
.br

.br
Paths:
.br
/dev/tcm[0-9]*
.br
/dev/tcmrm[0-9]*
.br
/dev/tpm[0-9]*
.br
/dev/tpmrm[0-9]*
.br

.br
Example:
.br
Expand Down