All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: Changes to ftp policy
       [not found] <200702261716.l1QHGrqw030567@localhost.localdomain>
@ 2007-02-28 15:57 ` Christopher J. PeBenito
  0 siblings, 0 replies; only message in thread
From: Christopher J. PeBenito @ 2007-02-28 15:57 UTC (permalink / raw)
  To: dwalsh; +Cc: selinux

On Mon, 2007-02-26 at 12:16 -0500, dwalsh@localhost.localdomain wrote:
> kerberized ftp needs to read keytab file
> 
> Needs to be able to rw_faillog,
> 
> If you allow ftp to login to homedirs, you would expect to be able to ftp off the entire the system.  Perhaps this should be a boolean or only targeted policy.
> 
> 
> ===File /tmp/patches/done/nsaserefpolicy_policy_modules_services_ftp.patch===
> --- nsaserefpolicy/policy/modules/services/ftp.te	2007-02-19 11:32:53.000000000 -0500
> +++ serefpolicy-2.5.5/policy/modules/services/ftp.te	2007-02-26 11:02:34.000000000 -0500
> @@ -125,7 +125,7 @@
>  auth_append_login_records(ftpd_t)
>  #kerberized ftp requires the following
>  auth_write_login_records(ftpd_t)
> -auth_append_faillog(ftpd_t)
> +auth_rw_faillog(ftpd_t)
>  
>  init_use_fds(ftpd_t)
>  init_use_script_ptys(ftpd_t)
> @@ -190,10 +190,15 @@
>  	userdom_manage_all_users_home_content_dirs(ftpd_t)
>  	userdom_manage_all_users_home_content_files(ftpd_t)
>  	userdom_manage_all_users_home_content_symlinks(ftpd_t)
> +	auth_manage_all_files_except_shadow(ftpd_t)
>  
>  	ifdef(`targeted_policy',`
>  		userdom_generic_user_home_dir_filetrans_generic_user_home_content(ftpd_t,{ dir file lnk_file sock_file fifo_file })
> +		files_manage_generic_tmp_files(ftpd_t)
>  	')
> +	auth_read_all_dirs_except_shadow(ftpd_t)
> +	auth_read_all_files_except_shadow(ftpd_t)
> +	auth_read_all_symlinks_except_shadow(ftpd_t)
>  ')
>  
>  tunable_policy(`ftp_home_dir && use_nfs_home_dirs',`
> @@ -214,6 +219,10 @@
>  ')
>  
>  optional_policy(`
> +	kerberos_read_keytab(ftpd_t)
> +')
> +
> +optional_policy(`
>  	tunable_policy(`ftp_home_dir',`
>  		apache_search_sys_content(ftpd_t)
>  	')
> ============================================================

Merged the first and last hunks (last one moved down).  I don't
understand the logic behind logging into a home dir as implying access
to other files on the system.

-- 
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-02-28 15:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <200702261716.l1QHGrqw030567@localhost.localdomain>
2007-02-28 15:57 ` Changes to ftp policy Christopher J. PeBenito

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.