Skip to contentSkip to conversation

Changes to ftp policy

DISCUSSION Christopher J. PeBenito 1 participant 1 message Feb 28, 2007 1 message not in the archive SELinux security module

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 46 lines · On Mon, 2007-02-26 at 12:16 -0500, [email protected] 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===

policy/modules/services/ftp.te +10 -1
@@ -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)
 	')
Quoted 1 line

============================================================

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.

Signature · 9 lines
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 [email protected] with
the words "unsubscribe selinux" without quotes as the message.