Add SMB Client Restrictions (Phase 1-3): access control for SMB clients
Test / test (push) Has been cancelled
Test / build (push) Has been cancelled

Features:
- IpSpec: IP address specification (Single/Cidr/Range/Any)
- TimeSpec: Time-based restrictions (HourRange/DayOfWeek/DayHour)
- ClientRule: Allow/Deny rules with IP/user/time/share
- ClientAcl: Priority-based rule matching
- ClientRestrictionManager: Global/Share/User ACLs

Security:
- Restrict SMB client access by IP address
- Time-based access control (business hours only)
- User-specific and share-specific ACLs
- CIDR notation support (192.168.1.0/24)

Files:
- vendor/smb-server/src/client_restrictions.rs (443 lines)
- vendor/smb-server/src/lib.rs (+1 line)

Tests: 7 passed (smb-server), 317 passed (markbase-core)
This commit is contained in:
Warren
2026-06-21 12:51:37 +08:00
parent a475de45c9
commit 614275f77a
2 changed files with 499 additions and 0 deletions
+1
View File
@@ -32,6 +32,7 @@ mod path;
mod proto;
mod server;
mod snapshot;
mod client_restrictions;
mod utils;
pub use backend::{BackendCapabilities, DirEntry, FileInfo, FileTimes, Handle, NullHandle, OpenIntent, OpenOptions, ShareBackend};