Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
samba.setup: Run cephfs.vfs integration with SELinux booleans
Upon investigation following are the only AVCs from audit logs blocking us from running CephFS VFS integration. . . . type=AVC msg=audit(1706499792.666:8328): avc: denied { name_connect } for pid=75570 comm="msgr-worker-1" dest=3300 scontext=system_u:system_r:smbd_t:s0 tcontext=system_u:object_r:unreserved_port_t:s0 tclass=tcp_socket permissive=1 . . . Even though its misleading 'samba_load_libgfapi' seems to be the only SELinux boolean that we require to run integration using VFS module for Ceph in Samba under Enforcing mode. This is clear from the allow rules defined for the boolean as follows: $ sesearch -b samba_load_libgfapi -A allow smbd_t packet_type:packet recv; [ samba_load_libgfapi ]:True allow smbd_t packet_type:packet send; [ samba_load_libgfapi ]:True allow smbd_t port_type:tcp_socket name_bind; [ samba_load_libgfapi ]:True allow smbd_t port_type:tcp_socket name_connect; [ samba_load_libgfapi ]:True Signed-off-by: Anoop C S <[email protected]>
- Loading branch information