# safemount
We have to jump through multiple hoops in shell scripts to ensure that our scripts handle special characters such as space, hyphen etc. properly. A number of security vulnerabilities exist because of mishandling of these characters.
However, these special characters, while important for GUI are not a necessity for command line. The idea of this library is to provide a FUSE filesystem that mounts a given directory under a mount point such that all the special characters are URL encoded. We include - in the list of characters that are encoded. Further, we also remove . and .. from the directory listing.
With this, the shell scripts can assume that none of the directory or file names contain special characters.
The usage is as follows:
` python3 -m pip install fusepy python3 -m safemount ./mydir ./mntpoint `
See also: 1. https://dwheeler.com/essays/filenames-in-shell.html 2. https://dwheeler.com/essays/fixing-unix-linux-filenames.html 3. https://lwn.net/Articles/325304/ 4. https://lwn.net/Articles/686789/
Metadata
Release files for safemount 0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| safemount-0.6.tar.gz | 3.5 kB | Without provenance | Details |
Release files / safemount-0.6.tar.gz
| Download URL | safemount-0.6.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
32255b9252f65ce0abf609f7cc7b6cf61b214fde490f2f59ca8d0ccffe6ef450
|
|
BLAKE2b-256 checksum How to use checksums |
49d4b365ff17a769006fc14c0c791dde3526cf5dde0dd8726769716d4f233576
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.6.8
|
Security for safemount 0.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.