Fedora Account System
Red Hat Associate
Red Hat Customer
Description of problem: I just connected to company network via AT&T client Additional info: libreport version: 2.0.18 kernel: 3.6.5-1.fc17.x86_64 description: :SELinux is preventing /usr/sbin/ifconfig from 'write' accesses on the fifo_file /var/agns/fifo/agnLogd. : :***** Plugin leaks (86.2 confidence) suggests ****************************** : :If you want to ignore ifconfig trying to write access the agnLogd fifo_file, because you believe it should not need this access. :Then you should report this as a bug. :You can generate a local policy module to dontaudit this access. :Do :# grep /usr/sbin/ifconfig /var/log/audit/audit.log | audit2allow -D -M mypol :# semodule -i mypol.pp : :***** Plugin catchall (14.7 confidence) suggests *************************** : :If you believe that ifconfig should be allowed write access on the agnLogd fifo_file by default. :Then you should report this as a bug. :You can generate a local policy module to allow this access. :Do :allow this access for now by executing: :# grep ifconfig /var/log/audit/audit.log | audit2allow -M mypol :# semodule -i mypol.pp : :Additional Information: :Source Context system_u:system_r:ifconfig_t:s0 :Target Context system_u:object_r:var_t:s0 :Target Objects /var/agns/fifo/agnLogd [ fifo_file ] :Source ifconfig :Source Path /usr/sbin/ifconfig :Port <Unknown> :Host (removed) :Source RPM Packages net-tools-1.60-138.20120702git.fc17.x86_64 :Target RPM Packages agnclient-1.0-2.0.1.3003i.fc17.i386 :Policy RPM selinux-policy-3.10.0-156.fc17.noarch :Selinux Enabled True :Policy Type targeted :Enforcing Mode Enforcing :Host Name (removed) :Platform Linux (removed) 3.6.5-1.fc17.x86_64 #1 SMP Wed Oct : 31 19:37:18 UTC 2012 x86_64 x86_64 :Alert Count 2 :First Seen 2012-11-02 15:19:39 CET :Last Seen 2012-11-08 08:14:36 CET :Local ID f0c34a81-be52-4bae-9a74-b69d3e366714 : :Raw Audit Messages :type=AVC msg=audit(1352358876.253:109): avc: denied { write } for pid=2341 comm="ifconfig" path="/var/agns/fifo/agnLogd" dev="dm-2" ino=393373 scontext=system_u:system_r:ifconfig_t:s0 tcontext=system_u:object_r:var_t:s0 tclass=fifo_file : : :type=AVC msg=audit(1352358876.253:109): avc: denied { write } for pid=2341 comm="ifconfig" path="/tmp/ConfigAGN.connect.sh.txt" dev="dm-2" ino=1582294 scontext=system_u:system_r:ifconfig_t:s0 tcontext=system_u:object_r:initrc_tmp_t:s0 tclass=file : : :type=AVC msg=audit(1352358876.253:109): avc: denied { write } for pid=2341 comm="ifconfig" path="/tmp/ConfigAGN.connect.sh.txt" dev="dm-2" ino=1582294 scontext=system_u:system_r:ifconfig_t:s0 tcontext=system_u:object_r:initrc_tmp_t:s0 tclass=file : : :type=AVC msg=audit(1352358876.253:109): avc: denied { read write } for pid=2341 comm="ifconfig" path="/tmp/NetVPN.txt" dev="dm-2" ino=1582301 scontext=system_u:system_r:ifconfig_t:s0 tcontext=system_u:object_r:initrc_tmp_t:s0 tclass=file : : :type=SYSCALL msg=audit(1352358876.253:109): arch=x86_64 syscall=execve success=yes exit=0 a0=1bcbd10 a1=1ba6320 a2=1bb2120 a3=60 items=0 ppid=2340 pid=2341 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=ifconfig exe=/usr/sbin/ifconfig subj=system_u:system_r:ifconfig_t:s0 key=(null) : :Hash: ifconfig,ifconfig_t,var_t,fifo_file,write : :audit2allow : :#============= ifconfig_t ============== :allow ifconfig_t initrc_tmp_t:file { write read }; :allow ifconfig_t var_t:fifo_file write; : :audit2allow -R : :#============= ifconfig_t ============== :allow ifconfig_t initrc_tmp_t:file { write read }; :allow ifconfig_t var_t:fifo_file write; :
Created attachment 640603 [details] File: type
Created attachment 640604 [details] File: hashmarkername
What is your output of # ps -eZ |grep initrc
This is a leaked file descriptor from the application /tmp/ConfigAGN.connect.sh.txt and /var/agns/fifo/agnLogd Most likely agns. or agn.
(In reply to comment #3) > What is your output of > > # ps -eZ |grep initrc [kissi@ibm-kissi ~]$ ps -eZ |grep initrc system_u:system_r:initrc_t:s0 968 ? 00:01:26 agnclientd system_u:system_r:initrc_t:s0 988 ? 00:00:00 cups-ipm-confid system_u:system_r:initrc_t:s0 989 ? 00:00:01 agnLogd system_u:system_r:initrc_t:s0 1093 ? 00:00:14 symcfgd system_u:system_r:initrc_t:s0 1298 ? 00:00:00 ciscod system_u:system_r:initrc_t:s0 1595 ? 00:00:00 vpnagentd system_u:system_r:initrc_t:s0 1623 ? 00:00:56 rtvscand
added fixes for this in selinux-policy-3.11.1-55.fc18.noarch d6b242a4433693353a0fd6eb95939796ec16e062 e06fd8c42ff437fd0a84ab0e6d7e78e4c26a610d I think we should just start allowing all domains started by init to use initrc_tmp_t files that are leaked to them. Secondly we should don't audit var_t leaked fifo_files, the patch I attached dontaudits all fifo_file leaks to ifconfig. kissi7, Probably neither of these breaks anything. But we should fix them. Looks like one of your services is leaking open file descriptors to applications that it forks/execs. You may want to open a bug report with the provider of this software to close the sockets on /var/agns/fifo/agnLogd when it is execed. fcntl(fd, FD_SETFD, FD_CLOEXEC)
Added. commit a89614dd624d1222962dfda0888e7e57b66e66d3 Author: Miroslav Grepl <mgrepl> Date: Mon Nov 19 14:04:26 2012 +0100 Allow all daemons and systemprocesses to use inherited initrc_tmp_t files commit bc92de266e2da84ffd0714250d9c12423b7c05b7 Author: Dan Walsh <dwalsh> Date: Sat Nov 17 07:18:20 2012 -0500 dontaudit ifconfig_t looking at fifo_files that are leaked to it, allow it to use initrc_tmp_t, which is leaked.
selinux-policy-3.10.0-161.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-161.fc17
Package selinux-policy-3.10.0-161.fc17: * should fix your issue, * was pushed to the Fedora 17 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing selinux-policy-3.10.0-161.fc17' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-18787/selinux-policy-3.10.0-161.fc17 then log in and leave karma (feedback).
selinux-policy-3.10.0-161.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report.