-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Debian packaging: explicitly allocate a group for the system user #13593
Conversation
Otherwise the files of the synapse user are readable by the nobody user, which is unsafe. Signed-off-by: Jörg Behrmann <[email protected]>
I left out the changelog entry and the Debian changelog entry so far, because I was unsure what version to add to the latter. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems reasonable to me — postgres and mysql both have their own groups.
While trying to answer the above question I noticed that |
I think you're looking for https://github.com/matrix-org/package-synapse-debian/blame/debian/0.33.9-1matrix1/debian/postinst? I don't think that helps though. |
It doesn't matter - just follow the instructions in the contributing docs. It will add a temporary version which will be fixed up at release time. Since this only affects the debian build, there is no need for a changelog in the |
suggest a separate PR. I think there might be existing issues open around this. |
905faa9
to
9b33ce1
Compare
I test the build on a Debian machine, but my dev machine is not one and I don't have |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
This PR explicit system group for the system user, as currently the files owned by the
matrix-synapse
user will belong to thenobody
group, which is not ideal, since that group will regularly be used for unrelated things, so having data owned bymatrix-synapse
may end up readable by other system users by accident. I don't know if there is some reasoning behind this, since the original repo containing Debian packaging doesn't seem to be available anymore, so I couldn't readily find it.This is spun out off #13582.
Pull Request Checklist
EventStore
toEventWorkerStore
.".code blocks
.(run the linters)