Add transport layer ipc socket perms test

This commit is contained in:
Daniel A. Wozniak 2024-08-13 20:47:18 -07:00 committed by Daniel Wozniak
parent 9ec04e006e
commit 9a6f5e8f48

View file

@ -5,5 +5,8 @@ import stat
def test_master_event_pub_ipc_perms(salt_master):
pub_path = pathlib.Path(salt_master.config["sock_dir"]) / "master_event_pub.ipc"
assert pub_path.exists()
assert pub_path.stat().st_mode & stat.S_IRUSR
assert pub_path.stat().st_mode & stat.S_IRGRP
status = pub_path.stat()
assert status.st_mode & stat.S_IRUSR
assert status.st_mode & stat.S_IWUSR
assert status.st_mode & stat.S_IRGRP
assert status.st_mode & stat.S_IWGRP