Skip to main content

Code to handle symbolic permissions like GNU chmod does ('a=rx,u+w')

Project description

SymbolicMode -- Code to handle symbolic file permissions

This python library parses symbolic file permission modes as used by GNU chmod, part of the coreutils package. For example:

>>> from symbolicmode import *
>>> oct(symbolic_to_numeric_permissions('a=rx,u+w'))
'0o755'   

Status

This library is fully compatible with GNU Coreutils 8.32-4.1ubuntu1, the version on my system which I have extensively tested using fuzz testing, with the following exceptions:

  • It does not yet implement the "ugo" permissions (when a "ugo" appears on the right hand side of the operator, for example "go=u").

Fuzz Testing

In the "fuzzchmod" directory is a set of programs for fuzz testing SymbolicMode against the system "chmod" to try to ensure correctness for even unusual inputs.

License

CC0 1.0 Universal, see LICENSE file for more information.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

symbolicmode-0.4.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

symbolicmode-0.4-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file symbolicmode-0.4.tar.gz.

File metadata

  • Download URL: symbolicmode-0.4.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.2

File hashes

Hashes for symbolicmode-0.4.tar.gz
Algorithm Hash digest
SHA256 65a5865afadfc6e78e5a1c0a0fa2ac43bfcec8e623a09b0804161c5537872df5
MD5 c4497a3c38dada0c9b5c96a5ec2aa59d
BLAKE2b-256 f44fe15f0edeefaee8c69775612c5ff62dec491acd61e16c99676cbb50adc010

See more details on using hashes here.

File details

Details for the file symbolicmode-0.4-py3-none-any.whl.

File metadata

  • Download URL: symbolicmode-0.4-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.2

File hashes

Hashes for symbolicmode-0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 10970d12e8f43a6747a967336233a6f504eb293e4edb6db635c3ae308064dca1
MD5 6205e2fd143b22f728ed2cc591f3fe86
BLAKE2b-256 172bd0dd10dd7909e6be2ec7801d5330288441f13697c9578d09f2b285dd4639

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page