Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: vsftpd with selinux on FC3: msg#00133

Subject: Re: vsftpd with selinux on FC3
James Z. Li wrote:

Thanks a lot for your help.

I installed FC4T3 to learn from its ftpd policy. However its policy seems not working well. After 'service vsftpd start', I cannot make ftp connection to it. Error messages are:
...
331 Please specify the password.
Password:
Error sending status request (Operation not permitted)
Login failed.
ftp> ls
230 Login successful.
Passive mode address scan failure. Shouldn't happen!
ftp> bye
215 UNIX Type: L8

I go through the targeted policy for ftpd and write my own policy for vsftpd
on FC3.

vsftpd.te
#################################
#
# Rules for the vsftpd_t domain.
#
daemon_domain(vsftpd, `, auth_chkpwd')
etc_domain(vsftpd)
can_network(vsftpd_t)

vsftpd.fc #################################
/usr/sbin/vsftpd                --      system_u:object_r:vsftpd_exec_t
/var/run/vsftpd.pid             --      system_u:object_r:vsftpd_var_run_t
/etc/vsftpd/vsftpd.conf         --      system_u:object_r:vsftpd_etc_t

I know they are lots of scenarios missing here, like actions related to nfs and samba. I plan to keep adding more rules into these two files based on parsing avc error messages. Currently, the above policy works well on my home pc for both anonymous and non-anonymous ftp services without generating even one AVC error message. Interesting ?!

James
Yes we have made some modifications to ftpd.te this past week to fix this problem.

Could you grab the latest policy off of

ftp://people.redhat.com/dwalsh/SELinux/Fedora

Which should make it into FC4/Final.

--




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
qnx.openqnx.dev...    gcc.libstdc++.c...    solaris.opensol...    information-ret...    misc.misterhous...    web.catalyst.ge...    apache.webservi...    redhat.release....    hardware.lirc/2...    kernel.autofs/2...    technology.sust...    linux.vdr/2003-...    editors.lyx.gen...    org.user-groups...    netbsd.devel.pk...    xdg.devel/2004-...    version-control...    jakarta.slide.d...    debian.packages...    creativecommons...    ports.ppc.embed...    bug-tracking.bu...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe