Bug 826842 - SELinux is preventing vpnc from 'open' accesses on the file US_HQ_Employee_Primary.conf.
SELinux is preventing vpnc from 'open' accesses on the file US_HQ_Employee_Pr...
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
16
i686 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Miroslav Grepl
Fedora Extras Quality Assurance
abrt_hash:9f66d2bf58982c77e98a9543c96...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-05-31 02:34 EDT by kumar kushal
Modified: 2012-05-31 13:38 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-05-31 02:37:22 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description kumar kushal 2012-05-31 02:34:07 EDT
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 02:37:22 EDT
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 02:52:41 EDT
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 13:38:27 EDT
Then you can add local policy for this or modify its label to etc_t.

Note You need to log in before you can comment on or make changes to this bug.