]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/smb: add a new host access enum
authorJohn Mulligan <jmulligan@redhat.com>
Mon, 22 Sep 2025 18:43:29 +0000 (14:43 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Thu, 29 Jan 2026 17:07:04 +0000 (12:07 -0500)
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 <jmulligan@redhat.com>
src/pybind/mgr/smb/enums.py

index 645858dbfd57634201bad8836fbed11ef21b1274..718f29a32e03a26b0589dca0d033ac995a6d8478 100644 (file)
@@ -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'