Merge "Add sudo into instack's semanage call."

This commit is contained in:
Zuul 2018-04-30 13:44:11 +00:00 committed by Gerrit Code Review
commit 3d466eaa36
1 changed files with 1 additions and 1 deletions

View File

@ -1662,7 +1662,7 @@ def _ensure_ssh_selinux_permission():
wrong_perm = True
break
if wrong_perm:
cmd = ['semanage',
cmd = ['sudo', 'semanage',
'fcontext', '-a', '-t', 'ssh_home_t',
"{}(/.*)?".format(ssh_path)]
_run_command(cmd)