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

Add label and interfaces for kernel PSI files #623

Merged
merged 1 commit into from
Jul 6, 2023

Conversation

fajs
Copy link
Contributor

@fajs fajs commented Jun 29, 2023

The pressure stall information (PSI) special files in /proc/pressure currently don't have a separate file context, and so default to proc_t. Since users need read/write permissions to those files to use PSI, and handing out blanket permissions to proc_t is strongly discouraged, introduce a new proc_psi_t label, as well as interfaces for it.

policy/modules/kernel/kernel.if Outdated Show resolved Hide resolved
policy/modules/kernel/kernel.te Outdated Show resolved Hide resolved
The pressure stall information (PSI) special files in /proc/pressure
currently don't have a separate file context, and so default to proc_t.
Since users need read/write permissions to those files to use PSI, and
handing out blanket permissions to proc_t is strongly discouraged,
introduce a new proc_psi_t label, as well as interfaces for it.

Signed-off-by: Florian Schmidt <[email protected]>
@fajs
Copy link
Contributor Author

fajs commented Jul 5, 2023

Thanks for the review! Addressed your comments.

@fajs fajs requested a review from pebenito July 5, 2023 16:39
@pebenito pebenito merged commit c6424be into SELinuxProject:main Jul 6, 2023
56 checks passed
@pebenito
Copy link
Member

pebenito commented Jul 6, 2023

Thanks!

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.

None yet

2 participants