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 <behrmann@physik.fu-berlin.de>
|
I left out the changelog entry and the Debian changelog entry so far, because I was unsure what version to add to the latter. |
reivilibre
left a comment
There was a problem hiding this comment.
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. |
I test the build on a Debian machine, but my dev machine is not one and I don't have |
This PR explicit system group for the system user, as currently the files owned by the
matrix-synapseuser will belong to thenobodygroup, which is not ideal, since that group will regularly be used for unrelated things, so having data owned bymatrix-synapsemay 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
EventStoretoEventWorkerStore.".code blocks.(run the linters)