diff --git a/crates/tor-error/src/lib.rs b/crates/tor-error/src/lib.rs index bbd371741354467da6867f46676a50aec3b86e12..0731d12fd660164d9d1549b7ee18305623d3a794 100644 --- a/crates/tor-error/src/lib.rs +++ b/crates/tor-error/src/lib.rs @@ -158,6 +158,15 @@ pub enum ErrorKind { #[display(fmt = "could not read/write persistent state")] PersistentStateAccessFailed, + /// We encountered a problem with filesystem permissions. + /// + /// This is likeliest to be caused by permissions on a file or directory + /// being too permissive; the next likeliest cause is that we were unable to + /// check the permissions on the file or directory, or on one of its + /// ancestors. + #[display(fmt = "problem with filesystem permissions")] + FsPermissions, + /// Tor client's persistent state has been corrupted /// /// This could be because of a bug in the Tor code, or because something