Bug 470214 - SELinux prevents vpnc to read /proc/sys/crypto/fips_enabled and makes vpnc crash
SELinux prevents vpnc to read /proc/sys/crypto/fips_enabled and makes vpnc crash
Product: Fedora
Classification: Fedora
Component: vpnc (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Tomas Mraz
Fedora Extras Quality Assurance
: SELinux
Depends On:
  Show dependency treegraph
Reported: 2008-11-06 05:05 EST by Matěj Cepl
Modified: 2008-11-06 08:56 EST (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-11-06 08:56:21 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

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

  None (edit)
Description Matěj Cepl 2008-11-06 05:05:33 EST
Created attachment 322684 [details]

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):

How reproducible:

Steps to Reproduce:
1.see above
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 08:56:21 EST
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.