Skip to content

feat(Network.Gopher): remove cRunUserName from GopherConfig - #45

Merged
sternenseemann merged 1 commit into
masterfrom
refactor-dropprivileges
Mar 15, 2021
Merged

sternenseemann merged 1 commit into
masterfrom
refactor-dropprivileges

Conversation

@sternenseemann

Copy link
Copy Markdown
Owner

It is not necessary to implement privilege dropping as part of the main
Network.Gopher API anymore since it can easily be done in the ready
action passed to runGopherManual.

To ease transition we expose an exception-throwing version of the
formerly internal function dropPrivileges via Network.Gopher.Util
which can be plugged into the ready action of runGopherManual if
desired.

feat(server): exit if dropPrivileges fails

We don't catch the exception of dropPrivileges anymore, exiting on
a failure related to it instead (user doesn't exist, insufficient
privileges).

BREAKING CHANGES:

  • cRunUserName has been removed from GopherConfig. This breaks all library
    usage which relied on this feature.
  • The spacecookie server daemon now exits if changing user fails instead
    of just logging an error like before.

It is not necessary to implement privilege dropping as part of the main
Network.Gopher API anymore since it can easily be done in the ready
action passed to runGopherManual.

To ease transition we expose an exception-throwing version of the
formerly internal function dropPrivileges via Network.Gopher.Util
which can be plugged into the ready action of runGopherManual if
desired.

feat(server): exit if dropPrivileges fails

We don't catch the exception of dropPrivileges anymore, exiting on
a failure related to it instead (user doesn't exist, insufficient
privileges).

BREAKING CHANGES:

* cRunUserName has been removed from GopherConfig. This breaks all library
  usage which relied on this feature.
* The spacecookie server daemon now exits if changing user fails instead
  of just logging an error like before.
@sternenseemann
sternenseemann force-pushed the refactor-dropprivileges branch from 8ab66d4 to d71e675 Compare March 15, 2021 13:23
@sternenseemann
sternenseemann merged commit 58973d3 into master Mar 15, 2021
@sternenseemann
sternenseemann deleted the refactor-dropprivileges branch March 15, 2021 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant