Skip to content

Install MTProxy readable and executable by its service user. - #2

Open
tral wants to merge 1 commit into
telegramdesktop:masterfrom
tral:fix-mtproxy-install-permissions
Open

Install MTProxy readable and executable by its service user.#2
tral wants to merge 1 commit into
telegramdesktop:masterfrom
tral:fix-mtproxy-install-permissions

Conversation

@tral

@tral tral commented Aug 22, 2026

Copy link
Copy Markdown

install.sh sets umask 077 and install-mtproxy.sh inherits it, so make created objs/ and objs/bin/ as 0700 and the built binary as 0700. After the tree is chowned to root, the unprivileged mtproxy user that mtproxy.service runs as can neither traverse the directories nor execute the binary, and the unit fails with status=203/EXEC on every clean build.

Apply a+rX to the installed tree. This runs outside the build guard so it also repairs a tree left behind by an earlier run, which the pinned-commit check would otherwise skip.

install.sh sets umask 077 and install-mtproxy.sh inherits it, so make
created objs/ and objs/bin/ as 0700 and the built binary as 0700. After
the tree is chowned to root, the unprivileged mtproxy user that
mtproxy.service runs as can neither traverse the directories nor execute
the binary, and the unit fails with status=203/EXEC on every clean build.

Apply a+rX to the installed tree. This runs outside the build guard so it
also repairs a tree left behind by an earlier run, which the pinned-commit
check would otherwise skip.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
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.

2 participants