Skip to content

profiles: split commands that increase/reduce access #6687

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 3 commits into from
Mar 30, 2025

Conversation

kmk3
Copy link
Collaborator

@kmk3 kmk3 commented Mar 23, 2025

This should clarify which commands do what (increase/reduce access) and
also make etc/templates/profile.template more consistent with
etc/profile-m-z/noprofile.profile.

Command used to search for the relevant profiles:

git grep -El 'allow-debuggers|allusers|keep-|writable-' -- etc

This is a follow-up to #6660.

See also the discussion at [1].

[1] #6660 (comment)

@kmk3 kmk3 requested a review from rusty-snake March 23, 2025 17:16
@github-project-automation github-project-automation bot moved this to In progress in Release 0.9.74 Mar 23, 2025
@kmk3 kmk3 force-pushed the template-split-res-sections branch from 8e4c0ce to 21ec6f6 Compare March 26, 2025 19:18
kmk3 added 3 commits March 26, 2025 16:23
This should clarify which commands do what (increase/reduce access) and
also make etc/templates/profile.template more consistent with
etc/profile-m-z/noprofile.profile.

This is a follow-up to netblue30#6660.

See also the discussion at [1].

[1] netblue30#6660 (comment)
Command used to search for the relevant profiles:

    git grep -El 'allow-debuggers|allusers|keep-|writable-' -- etc
@kmk3 kmk3 force-pushed the template-split-res-sections branch from 21ec6f6 to fe64b62 Compare March 26, 2025 19:26
@kmk3
Copy link
Collaborator Author

kmk3 commented Mar 30, 2025

@rusty-snake

Thoughts on merging this?

@rusty-snake
Copy link
Collaborator

Looks fine to me.

@kmk3 kmk3 moved this from In progress to 0.9.76 in Release 0.9.74 Mar 30, 2025
@kmk3 kmk3 merged commit 7b1c5de into netblue30:master Mar 30, 2025
3 checks passed
@kmk3 kmk3 deleted the template-split-res-sections branch March 30, 2025 08:39
kmk3 added a commit that referenced this pull request Mar 31, 2025
kmk3 added a commit to kmk3/firejail that referenced this pull request Apr 1, 2025
Instead of having a `notpm` command and potentially adding it to almost
all profiles (as few programs should need direct access to TPM devices),
add a `keep-dev-tpm` command and use it only in profiles that need
access to TPM devices.

Changes:

* Turn `notpm` command into `keep-dev-tpm` command
* Warn and ignore if `notpm` is used
* Block `/dev/tpm*` devices by default
* Allow `/dev/tpm*` devices with `keep-dev-tpm` (even if `private-dev`
  is used)

Added on commit 0013202 ("feature: add notpm command & keep tpm
devices in private-dev (netblue30#6390)", 2024-07-09).

See also commit ee1c264 ("feature: block /dev/ntsync & add
keep-dev-ntsync command (netblue30#6660)", 2025-03-06) and the discussion at
PR netblue30#6660.

This is a follow-up to netblue30#6687.
kmk3 added a commit to kmk3/firejail that referenced this pull request Apr 1, 2025
Instead of having a `notpm` command and potentially adding it to almost
all profiles (as few programs should need direct access to TPM devices),
add a `keep-dev-tpm` command and use it only in profiles that need
access to TPM devices.

Changes:

* Turn `notpm` command into `keep-dev-tpm` command
* Warn and ignore if `notpm` is used
* Block `/dev/tpm*` devices by default
* Allow `/dev/tpm*` devices with `keep-dev-tpm` (even if `private-dev`
  is used)

Added on commit 0013202 ("feature: add notpm command & keep tpm
devices in private-dev (netblue30#6390)", 2024-07-09).

See also commit ee1c264 ("feature: block /dev/ntsync & add
keep-dev-ntsync command (netblue30#6660)", 2025-03-06) and the discussion at
PR netblue30#6660.

This is a follow-up to netblue30#6687.
kmk3 added a commit to kmk3/firejail that referenced this pull request Apr 4, 2025
Instead of having a `notpm` command and potentially adding it to almost
all profiles (as few programs should need direct access to TPM devices),
add a `keep-dev-tpm` command and use it only in profiles that need
access to TPM devices.

Changes:

* Turn `notpm` command into `keep-dev-tpm` command
* Warn and ignore if `notpm` is used
* Block `/dev/tpm*` devices by default
* Allow `/dev/tpm*` devices with `keep-dev-tpm` (even if `private-dev`
  is used)

Added on commit 0013202 ("feature: add notpm command & keep tpm
devices in private-dev (netblue30#6390)", 2024-07-09).

See also commit ee1c264 ("feature: block /dev/ntsync & add
keep-dev-ntsync command (netblue30#6660)", 2025-03-06) and the discussion at
PR netblue30#6660.

This is a follow-up to netblue30#6687.
kmk3 added a commit to kmk3/firejail that referenced this pull request Apr 5, 2025
Instead of having a `notpm` command and potentially adding it to almost
all profiles (as few programs should need direct access to TPM devices),
add a `keep-dev-tpm` command and use it only in profiles that need
access to TPM devices.

Changes:

* Turn `notpm` command into `keep-dev-tpm` command
* Warn and ignore if `notpm` is used
* Block `/dev/tpm*` devices by default
* Allow `/dev/tpm*` devices with `keep-dev-tpm` (even if `private-dev`
  is used)

Added on commit 0013202 ("feature: add notpm command & keep tpm
devices in private-dev (netblue30#6390)", 2024-07-09).

See also commit ee1c264 ("feature: block /dev/ntsync & add
keep-dev-ntsync command (netblue30#6660)", 2025-03-06) and the discussion at
PR netblue30#6660.

This is a follow-up to netblue30#6687.
kmk3 added a commit to kmk3/firejail that referenced this pull request Apr 5, 2025
Instead of having a `notpm` command and potentially adding it to almost
all profiles (as few programs should need direct access to TPM devices),
add a `keep-dev-tpm` command and use it only in profiles that need
access to TPM devices.

Changes:

* Turn `notpm` command into `keep-dev-tpm` command
* Warn and ignore if `notpm` is used
* Block `/dev/tpm*` devices by default
* Allow `/dev/tpm*` devices with `keep-dev-tpm` (even if `private-dev`
  is used)

Added on commit 0013202 ("feature: add notpm command & keep tpm
devices in private-dev (netblue30#6390)", 2024-07-09).

See also commit ee1c264 ("feature: block /dev/ntsync & add
keep-dev-ntsync command (netblue30#6660)", 2025-03-06) and the discussion at
PR netblue30#6660.

This is a follow-up to netblue30#6687.
@kmk3 kmk3 removed this from Release 0.9.74 Apr 9, 2025
@kmk3 kmk3 moved this to Done (on RELNOTES) in Release 0.9.76 Apr 9, 2025
@kmk3 kmk3 moved this from Done to Done (on RELNOTES) in Release 0.9.76 Apr 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done (on RELNOTES)
Development

Successfully merging this pull request may close these issues.

2 participants