No description
MTP transfers write files to the home folder of the user. If no GID and UID are specified, uMTP-responder will use the GID/UID under which it is running at the time of the file transfer. This causes users to not be able to access the files on the device after transfering. This patch adds a systemd generator that: 1) reads /etc/default_user, and appends config to /etc/umtprd/umtprd.conf to set the MTP default user/group. If this file doesn't exist, 10000:10000 is the fallback uid:gid. 2) installs this config to /run/umtprd/umptrd.conf 3) adds a unit override to /run for umtprd.service that runs the daemon with this modified config The generator is used instead of hardcoding a uid and gid in umtprd.conf so that this can support immutable installs or situations where the default UID/GID is not 10000. Co-authored-by: Dylan Van Assche <dylan@postmarketos.org> Signed-off-by: Clayton Craft <craftyguy@postmarketos.org> Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7658> |
||
|---|---|---|
| .ci | ||
| .githooks | ||
| .gitlab/issue_templates | ||
| .well-known | ||
| cross | ||
| device | ||
| docs | ||
| extra-repos/systemd | ||
| main | ||
| modem | ||
| temp | ||
| .clang-format | ||
| .ecrc | ||
| .editorconfig | ||
| .gitignore | ||
| .gitlab-ci.yml | ||
| .mailmap | ||
| channels.cfg | ||
| COMMITSTYLE.md | ||
| kconfigcheck.toml | ||
| LICENSE | ||
| pmaports.cfg | ||
| README.md | ||
postmarketOS aports repository
This repository contains the APKBUILD files for postmarketOS-specific packages, along with the required patches and scripts, if any.
There are many more packages defined in the Alpine Linux aports on which these packages depend.
Helpful resources:
- How to create a package
- APKBUILD reference
- pmaports commit style
- Review and merging guidelines
- Alpine Linux aports
- Alpine Linux package search
- postmarketOS package search
Git Hooks
You can find some useful git hooks in the .githooks directory.
To use them, run the following command after cloning this repository:
git config --local core.hooksPath .githooks