ssh: fix for debian wrapper script
debian ships a wrapper script that moves the ssh-agent socket to /run/user/$UID/openssh_agent Signed-off-by: bauen1 <j2468h@gmail.com>
This commit is contained in:
parent
466b59f447
commit
5124a48bf5
|
@ -22,3 +22,7 @@ HOME_DIR/\.ssh(/.*)? gen_context(system_u:object_r:ssh_home_t,s0)
|
|||
/run/sshd(/.*)? gen_context(system_u:object_r:sshd_runtime_t,s0)
|
||||
/run/sshd\.init\.pid -- gen_context(system_u:object_r:sshd_runtime_t,s0)
|
||||
/run/sshd\.pid -- gen_context(system_u:object_r:sshd_runtime_t,s0)
|
||||
|
||||
ifdef(`distro_debian',`
|
||||
/run/user/%{USERID}/openssh_agent -s gen_context(system_u:object_r:ssh_agent_tmp_t,s0)
|
||||
')
|
||||
|
|
|
@ -408,6 +408,10 @@ template(`ssh_role_template',`
|
|||
allow $3 $1_ssh_agent_t:fifo_file rw_inherited_fifo_file_perms;
|
||||
allow $3 $1_ssh_agent_t:process sigchld;
|
||||
|
||||
ifdef(`distro_debian', `
|
||||
userdom_user_runtime_filetrans($1_ssh_agent_t, ssh_agent_tmp_t, sock_file)
|
||||
')
|
||||
|
||||
tunable_policy(`use_nfs_home_dirs',`
|
||||
fs_manage_nfs_files($1_ssh_agent_t)
|
||||
|
||||
|
|
Loading…
Reference in New Issue