Skip to content

feat(selinux): Get rid of all file WX of Trivalent's Selinux trivalent_domain#666

Open
PhysicsIsAwesome wants to merge 10 commits intosecureblue:livefrom
PhysicsIsAwesome:selinux-wx
Open

feat(selinux): Get rid of all file WX of Trivalent's Selinux trivalent_domain#666
PhysicsIsAwesome wants to merge 10 commits intosecureblue:livefrom
PhysicsIsAwesome:selinux-wx

Conversation

@PhysicsIsAwesome
Copy link

@PhysicsIsAwesome PhysicsIsAwesome commented Mar 22, 2026

This gets rid of all file WX of Trivalent's Selinux trivalent_domain I could find:

  • cache_home_t
  • chrome_sandbox_home_t
  • config_home_t
  • trivalent_home_t
  • trivalent_domain itself

It introduces a new on-by-default tunable trivalent_exec_flatpaks so people can disable execution of Flatpaks. Execution is needed for certain extensions being able to talk to their app counterpart like Keepassxc.

Additionally there is a tunable trivalent_drm which is on by-default. This allows file WX and needs to be turned off by users who want W^X at the expense of not being able to use DRM restricted content.

Testing done:

  • Started Trivalent
  • Visited a few websites including video content (Youtube)
  • Checked AVC logs
  • Deleted trivalent's folder in .config
  • Might need additional testing for edge cases
  • RPM spec file is untested, since it would take a very long time to build Trivalent on my device and I have little experience with spec files. Review and testing is needed.

Basically secureblue/secureblue#2029 plus the tmpfiles.d file

…valent_exec_flatpaks tunable

Signed-off-by: PhysicsIsAwesome <69597878+PhysicsIsAwesome@users.noreply.github.com>
This is used for widevine to mmap execute  files. It is useful to introduce a new type, so more general types like trivalent_home_t don't need execute permission. At the moment trivalent_home_t is WX, so this is a first step get rid of execute for that type.

Signed-off-by: PhysicsIsAwesome <69597878+PhysicsIsAwesome@users.noreply.github.com>
Signed-off-by: PhysicsIsAwesome <69597878+PhysicsIsAwesome@users.noreply.github.com>
Signed-off-by: PhysicsIsAwesome <69597878+PhysicsIsAwesome@users.noreply.github.com>
Signed-off-by: PhysicsIsAwesome <69597878+PhysicsIsAwesome@users.noreply.github.com>
…as a file

Signed-off-by: PhysicsIsAwesome <69597878+PhysicsIsAwesome@users.noreply.github.com>
Signed-off-by: PhysicsIsAwesome <69597878+PhysicsIsAwesome@users.noreply.github.com>
Signed-off-by: PhysicsIsAwesome <69597878+PhysicsIsAwesome@users.noreply.github.com>
…tory

Signed-off-by: PhysicsIsAwesome <69597878+PhysicsIsAwesome@users.noreply.github.com>
…pm spec file

Signed-off-by: PhysicsIsAwesome <69597878+PhysicsIsAwesome@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant