From 1546d4463c6d22026e6c3e61bd585286ce802996 Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Mon, 22 Sep 2025 14:43:29 -0400 Subject: [PATCH] mgr/smb: add a new host access enum This will be used in a future change to build up an access control in the share config that translates to 'hosts allow'/'hosts deny' in smb.conf. Signed-off-by: John Mulligan --- src/pybind/mgr/smb/enums.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/pybind/mgr/smb/enums.py b/src/pybind/mgr/smb/enums.py index 645858dbfd5..718f29a32e0 100644 --- a/src/pybind/mgr/smb/enums.py +++ b/src/pybind/mgr/smb/enums.py @@ -105,6 +105,13 @@ class LoginAccess(_StrEnum): return self +class HostAccess(_StrEnum): + """Determines if a host should be allowed or denied access to a share.""" + + ALLOW = 'allow' + DENY = 'deny' + + class SMBClustering(_StrEnum): DEFAULT = 'default' ALWAYS = 'always' -- 2.47.3