Skip to content

Conversation

@TechCiel
Copy link
Contributor

Fixes #1466

Add a cli option --socket-permission, and set file mode accordingly when listening a socket.

@TechCiel TechCiel requested a review from a team February 28, 2022 14:07
@jsjoeio jsjoeio self-assigned this Feb 28, 2022
Copy link
Contributor

@jsjoeio jsjoeio left a comment

Choose a reason for hiding this comment

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

Very clean PR 👏 Thank you for adding tests as well!

I'm less familiar with socket-permissions so I'll defer review to @code-asher

@jsjoeio jsjoeio added the feature New user visible feature label Mar 1, 2022
@codecov
Copy link

codecov bot commented Mar 1, 2022

Codecov Report

Merging #4923 (c1abea9) into main (78658f1) will increase coverage by 0.00%.
The diff coverage is 66.66%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #4923   +/-   ##
=======================================
  Coverage   70.29%   70.30%           
=======================================
  Files          29       29           
  Lines        1670     1677    +7     
  Branches      369      371    +2     
=======================================
+ Hits         1174     1179    +5     
- Misses        422      424    +2     
  Partials       74       74           
Impacted Files Coverage Δ
src/node/app.ts 94.82% <62.50%> (-3.25%) ⬇️
src/node/cli.ts 84.35% <100.00%> (+0.05%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 78658f1...c1abea9. Read the comment docs.

@jsjoeio jsjoeio assigned code-asher and unassigned jsjoeio Mar 1, 2022
Copy link
Member

@code-asher code-asher left a comment

Choose a reason for hiding this comment

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

Thank you for the contribution! This has been a long-standing one.

@jsjoeio jsjoeio added this to the 4.0.3 milestone Mar 3, 2022
@jsjoeio jsjoeio merged commit c4d8758 into coder:main Mar 3, 2022
TinLe pushed a commit to TinLe/code-server that referenced this pull request Apr 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New user visible feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add option to set unix socket permissions

3 participants