Skip to content
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

Label /run/user/.../pulse/ as pulseaudio_home_t #197

Open
wants to merge 3 commits into
base: rawhide
Choose a base branch
from

Conversation

secureworkstation
Copy link
Contributor

No description provided.

Mostly, session systemd (running in user context) would create this directory.
Most importantly, allow filetrans of pulse/ to session systemd process. Add interfaces so that systemd-logind will be able to remove this directory.
')

manage_files_pattern($1, pulseaudio_home_t, pulseaudio_home_t)
allow $1 pulseaudio_home_t:sock_file { create unlink };
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these permissions sufficient? Domains like systemd_logind_t have some generic permissions which may not be true for other domains.

@zpytela
Copy link
Contributor

zpytela commented Mar 12, 2020

@secureworkstation, i suggest changing '' to '+' to match non-empty string only:
/var/run/user/([^/]
)/pulse(/.*)?

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.

2 participants