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

SELinux support via SO_PEERSEC #8585

Closed
WavyEbuilder opened this issue Feb 21, 2025 · 2 comments
Closed

SELinux support via SO_PEERSEC #8585

WavyEbuilder opened this issue Feb 21, 2025 · 2 comments
Labels
enhancement New feature or incremental improvement

Comments

@WavyEbuilder
Copy link

WavyEbuilder commented Feb 21, 2025

I've been wanting to implement a feature in sway but it's quite niche so I thought I'd ask before I starting any work on it. I wanted to add some restrictions to sway's privileged protocols by using SO_PEERSEC to obtain the security context of a client on the other end of a socket and then asking SELinux if an action for a set of defined privileged protocols is to be authorised or denied.

Overall it'll probably introduce a new selinux.c file along with a few changes in the socket code and some of the protocol code, but they'll all be behind feature guards for SELinux so shouldn't really leak into the rest of the codebase.

Could I ask for thoughts on the possibility of upstreaming or if there is anything you'd like me to consider early on?

Thanks!

@WavyEbuilder WavyEbuilder added the enhancement New feature or incremental improvement label Feb 21, 2025
@emersion
Copy link
Member

Sorry, but I don't think I'd like to maintain any SELinux-specific code.

@WavyEbuilder
Copy link
Author

WavyEbuilder commented Feb 22, 2025

All good, appreciate the response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or incremental improvement
Development

No branches or pull requests

2 participants