Re: [PATCH v2 1/2] ssh: Add ssh_exec_keygen interface

Dominick Grift <[email protected]>
Newsgroups org.kernel.vger.selinux-refpolicy
Message-ID <[email protected]>
On Thu, Jun 20, 2019 at 05:41:37PM +0300, Alexander Miroshnichenko wrote:
> Signed-off-by: Alexander Miroshnichenko <[email protected]>
> ---
>  policy/modules/services/ssh.if | 19 +++++++++++++++++++
>  1 file changed, 19 insertions(+)
> 
> diff --git a/policy/modules/services/ssh.if b/policy/modules/services/ssh.if
> index b5bd2762ef96..0941f133711e 100644
> --- a/policy/modules/services/ssh.if
> +++ b/policy/modules/services/ssh.if
> @@ -701,6 +701,25 @@ interface(`ssh_read_user_home_files',`
>  	userdom_search_user_home_dirs($1)
>  ')
>  
> +########################################
> +## <summary>
> +##      Execute the ssh key generator in the caller domain.
> +## </summary>
> +## <param name="domain">
> +##      <summary>
> +##      Domain allowed to transition.

"Domain allowed access." Its not a transition. I suppose you have a use for this interface?

> +##      </summary>
> +## </param>
> +#
> +interface(`ssh_exec_keygen',`
> +        gen_require(`
> +                type ssh_keygen_exec_t;
> +        ')
> +
> +	corecmd_search_bin($1)
> +	can_exec($1, ssh_keygen_exec_t)
> +')
> +
>  ########################################
>  ## <summary>
>  ##	Execute the ssh key generator in the ssh keygen domain.
> -- 
> 2.21.0
> 

-- 
Key fingerprint = 5F4D 3CDB D3F8 3652 FBD8 02D5 3B6C 5F1D 2C7B 6B02
https://sks-keyservers.net/pks/lookup?op=get&search=0x3B6C5F1D2C7B6B02
Dominick Grift
signature.asc (application/pgp-signature, 659 B)
-----BEGIN PGP SIGNATURE-----

iQGzBAEBCAAdFiEEujmXliIBLFTc2Y4AJXSOVTf5R2kFAl0LnEoACgkQJXSOVTf5
R2lgBgv+NK4ZoVZaPTPMcMpF8Ri65Dxu7fQgvvfkWAPZiK3Reik15+8IGyUSdmZ2
oOlaZg0yMxZUu6B4anKOH4MZvaYRnaGqCXGNbGYHkko4e187uYjsgMi+5xt02ivf
k1kaelBdRSOObzzY8dFLCXyFY305iX6C7YtNem72qRUaiYSwqvb/YssXKB7spQel
2nGQT/e1b36uCjSGHHZ3c6AOMjBEl5w67Z0wrQHu7jTVaCGtwBw8rl5DhcbHIO7A
e6750G5OyhX8ofP3YbVEwAt4PmNqcv0T8mbiWvc53bHCgmcTzRpzxuFogJChN8YD
ARmKbiOjEkYBnB7LC0bh6vojABbbxGoZB14WAXar/2cAM5/v9RNolqdAPL1Xf+VI
5cXVsz15OQpFFfo/ekABfLsXoAxuTpmoEKm6lcZgaAdhZb5d3BLAlqscRtR/iRsW
4CC7cJOCv7xaSnpjbZqAvRVo8fxYD7NFx4atP5ZerdQgFilp0skzTtKt81wopWOL
1SGUYBPC
=afpu
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.