diff --git a/README.md b/README.md index 84c6b5c..c9f5c99 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,10 @@ # glyph -*Glyph* is an Authelia user file database manager. Because files are light but unwieldy, and LDAP is convenient but complex. +*Glyph* was an Authelia user file database manager. Because files were light but unwieldy, and LDAP was convenient but complex. + +Now, it's turned into a diabolical FUSE MITM contraption that should have never been built. It pretends to be a one-file filesystem (ඞ) that can be read and written to by Authelia, but it actually stores user and group data in a PostgreSQL database. + +Do not use this under any circumstances. It is not secure, it is not stable, and it is not created in God's image. It is a joke, and an unfunny one at that. ## Development diff --git a/src/fuser.rs b/src/fuser.rs index 09f348d..ea86805 100644 --- a/src/fuser.rs +++ b/src/fuser.rs @@ -21,7 +21,6 @@ use parking_lot::{RwLock, RwLockWriteGuard}; use crate::config::FuseConfig; struct Handle { - ino: u64, flags: i32, cursor: i64, } @@ -311,14 +310,7 @@ impl Filesystem for AutheliaFS { let mut handles = self.handles.write(); let handle = handles.next_handle(); - handles.handles.insert( - handle, - Handle { - ino, - flags, - cursor: 0, - }, - ); + handles.handles.insert(handle, Handle { flags, cursor: 0 }); drop(handles); @@ -556,7 +548,6 @@ impl Filesystem for AutheliaFS { handles.handles.insert( handle, Handle { - ino, flags: O_RDONLY, cursor: 0, }, diff --git a/src/main.rs b/src/main.rs index 8245542..77b7b9b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -12,7 +12,7 @@ use axum::serve; use clap::Parser; use log::info; use log4rs::config::Deserializers; -use std::{error::Error, net::SocketAddr}; +use std::net::SocketAddr; use tokio::net::TcpListener; use config::{Args, Config};