Bug 470214 - SELinux prevents vpnc to read /proc/sys/crypto/fips_enabled and makes vpnc crash
Summary: SELinux prevents vpnc to read /proc/sys/crypto/fips_enabled and makes vpnc crash
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: vpnc
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Tomas Mraz
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-11-06 10:05 UTC by Matěj Cepl
Modified: 2018-04-11 13:42 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-11-06 13:56:21 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
/var/log/audit/audit.log (215 bytes, text/plain)
2008-11-06 10:05 UTC, Matěj Cepl
no flags Details

Description Matěj Cepl 2008-11-06 10:05:33 UTC
Created attachment 322684 [details]
/var/log/audit/audit.log

Description of problem:
[root@hubmaier ~]# vpnc
FATAL: error reading `/proc/sys/crypto/fips_enabled' in libgcrypt: Permission denied
Neoprávněný přístup do paměti (SIGSEGV)
[root@hubmaier ~]# ls -lZ /proc/sys/crypto/
-r--r--r--  root root ?                                fips_enabled
[root@hubmaier ~]# ausearch -m AVC -ts today |grep vpnc|audit2allow
module vpncFips 1.0;

require {
	type vpnc_t;
	type sysctl_t;
	type user_home_dir_t;
	class process signal;
	class file read;
	class dir write;
}

#============= vpnc_t ==============
allow vpnc_t self:process signal;
allow vpnc_t sysctl_t:file read;
allow vpnc_t user_home_dir_t:dir write;
[root@hubmaier ~]#

Version-Release number of selected component (if applicable):
selinux-policy-targeted-3.5.13-11.fc10.noarch
vpnc-0.5.1-6.fc10.x86_64

How reproducible:
100%

Steps to Reproduce:
1.see above
2.
3.
  
Actual results:
crash (which is another problem which will be filed separately) because SELinux makes problems.

Expected results:
vpnc connected

Additional info:

Comment 2 Daniel Walsh 2008-11-06 13:56:21 UTC
Fixed in selinux-policy-3.5.13-17.fc10


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