Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 540056 - portage_fetch_t does not allow connecting to FTP (data port)
Summary: portage_fetch_t does not allow connecting to FTP (data port)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: SELinux (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jason Zaman
URL:
Whiteboard: sec-policy r6
Keywords:
Depends on:
Blocks: 530912
  Show dependency tree
 
Reported: 2015-02-14 13:11 UTC by Sven Vermeulen (RETIRED)
Modified: 2015-07-03 16:23 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Vermeulen (RETIRED) gentoo-dev 2015-02-14 13:11:37 UTC
From #gentoo-hardened:

Hello @all. I set up a new server w/ SELinux enabled and if I try to emerge anything as sysadm_r, I get: avc:  denied  { name_connect } for  pid=5274 comm="wget" dest=26213 ipaddr=XX.XX.XXX. scontext=root:sysadm_r:portage_fetch_t tcontext=system_u:object_r:unreserved_port_t tclass=tcp_socket permissive=0, so wget fails to connect to the ftp data port and thus the download fails. Is this a known problem? And more

Probably need to allow corenet_tcp_connect_all_unreserved_ports(portage_fetch_t) to fix.

Reproducible: Always
Comment 1 Jason Zaman gentoo-dev 2015-02-18 03:52:22 UTC
yes this is a problem with PASV mode in FTP I have previously hit it too.
I assume there is no way other than just allowing all ports? Is the port range for PASV standardized in any meaningful way?
Comment 2 Jason Zaman gentoo-dev 2015-04-13 14:19:38 UTC
should this be a boolean?
im thinking not since it is a fairly specific domain which can already connect to quite a few things and not much runs in it.
Comment 3 Jason Zaman gentoo-dev 2015-05-30 13:08:18 UTC
Added to master. will be in -r6
Comment 4 Jason Zaman gentoo-dev 2015-06-05 16:24:24 UTC
r6 policy is in ~arch
Comment 5 Sven Vermeulen (RETIRED) gentoo-dev 2015-07-03 16:23:39 UTC
Now stable