Add test for sock path length
Ensure this test is run as root
Merge pull request #12971 from terminalmage/issue12172

Add test for #12172