Merge "Add sudo into instack's semanage call."
This commit is contained in:
commit
3d466eaa36
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue