Bug 199082 - selinux stops radiusd
Summary: selinux stops radiusd
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: freeradius
Version: 5
Hardware: All
OS: Linux
medium
high
Target Milestone: ---
Assignee: Thomas Woerner
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-07-17 07:26 UTC by Frank Büttner
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-08-28 13:04:12 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Frank Büttner 2006-07-17 07:26:01 UTC
Description of problem:
When selinux is in enforce mode the radius daemon start will fail

Version-Release number of selected component (if applicable):
selinux-policy-targeted-2.2.47-3.fc5

How reproducible:
run service radiusd start
 
Actual results:
start fail's

Expected results:
running radiusd

Additional info:
error at audit:
Jul 17 09:16:14 kernel: audit(1153120574.167:12): avc:  denied  { write } for 
pid=2442 comm=radiusd name="db.daily" dev=md1 ino=7858082
scontext=system_u:system_r:radiusd_t tcontext=system_u:object_r:radiusd_etc_t
tclass=file

Comment 1 Daniel Walsh 2006-07-17 14:30:50 UTC
I am adding the ability to write db.daily in the /etc/raddb directory.  Are
there any others that it needs to be able to write?

Having configuration data in the same directory as writable data is somewhat
hard to deal with for SELinux and would be better if this was in a subdirectory.

Comment 2 Frank Büttner 2006-07-17 15:23:37 UTC
It is no problem to put the file db.dayly in /var but then you must tell me and
the maintainer of the radius package where the file shut be live. So that
selinux will not block it. There can be mutch other files that will be write
able. This will depend of the parts of the daemon that are enabled. I think it
will be better  to make an general change for radius so that all files that need
write able must live in /var/radius or somethink.

Comment 3 Thomas Woerner 2007-08-28 13:04:12 UTC
The db files moved to /var/lib/raddb in package freeradius-1.1.7-1.


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