mirror of
https://github.com/certbot/certbot.git
synced 2026-06-05 23:04:39 -04:00
Fixes #7212 This PR forbid os.stat and os.fstat, and fix or provide alternatives to avoid its usage in certbot outside of certbot.compat.filesystem. * Reimplement private key mode propagation * Remove other os.stat * Remove last call of os.stat in certbot package * Forbid stat and fstat * Implement mode comparison checks * Add unit tests * Update certbot/compat/filesystem.py Co-Authored-By: Brad Warren <bmw@users.noreply.github.com> * Update certbot/compat/filesystem.py Co-Authored-By: Brad Warren <bmw@users.noreply.github.com> * Handle case where multiple ace concerns a given SID in has_min_permissions * Add a new test scenario * Add a simple test for has_same_ownership * Fix name function * Add a comment explaining an ACE structure * Move a test in its dedicated class * Improve a message error * Calculate has_min_permission result using effective permission rights to be more generic. * Change an exception message * Add comments, avoid to skip a test. * Update certbot/compat/filesystem.py Co-Authored-By: Brad Warren <bmw@users.noreply.github.com>
18 lines
482 B
YAML
18 lines
482 B
YAML
coverage:
|
|
status:
|
|
project:
|
|
default: off
|
|
linux:
|
|
flags: linux
|
|
# Fixed target instead of auto set by #7173, can
|
|
# be removed when flags in Codecov are added back.
|
|
target: 97.4
|
|
threshold: 0.1
|
|
base: auto
|
|
windows:
|
|
flags: windows
|
|
# Fixed target instead of auto set by #7173, can
|
|
# be removed when flags in Codecov are added back.
|
|
target: 97.7
|
|
threshold: 0.1
|
|
base: auto
|