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

Give group write perms to socket. #110

Merged
merged 1 commit into from
Dec 7, 2017

Conversation

mrichar1
Copy link
Contributor

I've been looking at the issues with running xrdp as a non-root user, and comparing #16, neutrinolabs/xrdp#464 and the debian packaging patches (https://anonscm.debian.org/cgit/pkg-remote/xrdp.git/tree/debian/patches/fix_perms.diff).

I'm contemplating running xrdp as a non-root user on other distros (e.g. redhat) who don't take the step of patching the package, and was hoping this might be fixable upstream?

I appreciate that the project is reluctant to change the permissions/bits on the whole socketdir directory, but was wondering if just this simple change to the socket itself would be acceptable?

Since the code that creates the socketdir does nothing if the socket already exists, it's easy to make the directory with appropriate permissions before starting the daemon. However there's no way to modify the socket perms without patching, or something a bit more hacky (inotify script, ld_preload library) etc.

I'm fairly sure this change is 'safe' as it should have no effect unless the directory changes have also been made.

Thanks for considering this request!

@metalefty
Copy link
Member

metalefty commented Nov 29, 2017

Hi, at least I'm welcome with merging such downstream patches if they're worth enough, generic, portable and plausible description provided. I'll check the patch to merge.

Maybe we're not reluctant to change that. Just nobody tells us to change the permission.

@metalefty
Copy link
Member

@jsorg71 I'd like to merge this. What do you think?

@jsorg71
Copy link
Contributor

jsorg71 commented Dec 7, 2017

LGTM

@metalefty metalefty merged commit 5ca1b8c into neutrinolabs:devel Dec 7, 2017
metalefty added a commit to metalefty/xorgxrdp that referenced this pull request Dec 18, 2020
metalefty added a commit to metalefty/xorgxrdp that referenced this pull request Dec 18, 2020
metalefty added a commit to metalefty/xorgxrdp that referenced this pull request Dec 18, 2020
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.

3 participants