Skip to content

fix(selinux): Allow creation of icons for PWAs including folders#697

Open
PhysicsIsAwesome wants to merge 2 commits intosecureblue:livefrom
PhysicsIsAwesome:selinux-pwa-icon-fix
Open

fix(selinux): Allow creation of icons for PWAs including folders#697
PhysicsIsAwesome wants to merge 2 commits intosecureblue:livefrom
PhysicsIsAwesome:selinux-pwa-icon-fix

Conversation

@PhysicsIsAwesome
Copy link
Copy Markdown
Contributor

Trivalent needs to be able to create icons under subfolders of $HOME/.local/share/icons/..., including missing folders in that path.

I decided against simply allowing write access to type data_home_t, because some executables are of this type, to not introduce WX.

Thus I introduced a new type trivalent_data_home_t for files in data_home_t dirs, including the necessary filetrans. It also allows creation of directories of type data_home_t, in case they don't already exist.

I tested installing and uninstalling a PWA.

It also contains a small fix, with missing trivalent_home_cdm_lib_t missing in a gen_require block.

…lders

Signed-off-by: PhysicsIsAwesome <69597878+PhysicsIsAwesome@users.noreply.github.com>
@codacy-production
Copy link
Copy Markdown

codacy-production bot commented Apr 18, 2026

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

TIP This summary will be updated as you push new changes. Give us feedback

…r needed

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