aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-03-05 14:46:57 +0100
committerEgor Tensin <Egor.Tensin@gmail.com>2023-03-05 14:46:57 +0100
commit7289373d2e2e2230f4bf3e0098b37db0d7712390 (patch)
treef7d19d5c483b5305ccff0b44ee5379d89833cd67
parentadd bad_attrs.py (diff)
downloadaudit-scripts-7289373d2e2e2230f4bf3e0098b37db0d7712390.tar.gz
audit-scripts-7289373d2e2e2230f4bf3e0098b37db0d7712390.zip
bad_attrs: add a comment
-rwxr-xr-xbad_attrs.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bad_attrs.py b/bad_attrs.py
index fc1f4d8..4683540 100755
--- a/bad_attrs.py
+++ b/bad_attrs.py
@@ -98,6 +98,8 @@ def path_has_bad_flags(path):
# Either one of:
# Inappropriate ioctl for device
# Permission denied
+ # It's relied upon that fcntl throws OSError instead of
+ # PermissionError.
logging.warning('%s: %s', path, e)
return False
raise