Bug 826842

Summary: SELinux is preventing vpnc from 'open' accesses on the file US_HQ_Employee_Primary.conf.
Product: [Fedora] Fedora Reporter: kumar kushal <kmr.kushal>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
Whiteboard: abrt_hash:9f66d2bf58982c77e98a9543c9627a87257fce5bdafc0eac9608a792d6ce66aa
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-05-31 06:37:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description kumar kushal 2012-05-31 06:34:07 UTC
libreport version: 2.0.8
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.3.5-2.fc16.i686
reason:         SELinux is preventing vpnc from 'open' accesses on the file US_HQ_Employee_Primary.conf.
time:           Thu 31 May 2012 01:33:48 AM CDT

description:
:SELinux is preventing vpnc from 'open' accesses on the file US_HQ_Employee_Primary.conf.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that vpnc should be allowed open access on the US_HQ_Employee_Primary.conf 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 vpnc /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                unconfined_u:unconfined_r:vpnc_t:s0-s0:c0.c1023
:Target Context                unconfined_u:object_r:user_home_t:s0
:Target Objects                US_HQ_Employee_Primary.conf [ file ]
:Source                        vpnc
:Source Path                   vpnc
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-86.fc16.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Permissive
:Host Name                     (removed)
:Platform                      Linux (removed) 3.3.5-2.fc16.i686 #1 SMP Tue May 8
:                              12:04:02 UTC 2012 i686 i686
:Alert Count                   4
:First Seen                    Thu 31 May 2012 01:15:46 AM CDT
:Last Seen                     Thu 31 May 2012 01:26:14 AM CDT
:Local ID                      f7f9037c-a458-4ec1-9d08-2ef3f4cb7b6d
:
:Raw Audit Messages
:type=AVC msg=audit(1338445574.523:107): avc:  denied  { open } for  pid=2863 comm="vpnc" name="US_HQ_Employee_Primary.conf" dev="dm-1" ino=269060 scontext=unconfined_u:unconfined_r:vpnc_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file
:
:
:Hash: vpnc,vpnc_t,user_home_t,file,open
:
:audit2allow
:
:#============= vpnc_t ==============
:#!!!! This avc is allowed in the current policy
:
:allow vpnc_t user_home_t:file open;
:
:audit2allow -R
:
:#============= vpnc_t ==============
:#!!!! This avc is allowed in the current policy
:
:allow vpnc_t user_home_t:file open;
:

Comment 1 Miroslav Grepl 2012-05-31 06:37:22 UTC
Where is the US_HQ_Employee_Primary.conf file located?

I think you will need to run the restorecon on this file


# restorecon -R -v PATHO/US_HQ_Employee_Primary.con

Comment 2 kumar kushal 2012-05-31 06:52:41 UTC
The file is located in my /home/ folder.
But it is linked using ln -s to default.conf in /etc/vpnc/

Will try using resotrecon and give you the results
(In reply to comment #1)
> Where is the US_HQ_Employee_Primary.conf file located?
> 
> I think you will need to run the restorecon on this file
> 
> 
> # restorecon -R -v PATHO/US_HQ_Employee_Primary.con

Comment 3 Daniel Walsh 2012-05-31 17:38:27 UTC
Then you can add local policy for this or modify its label to etc_t.