Bug 490323 - SELinux is preventing gpm (gpm_t) "read" etc_t.
Summary: SELinux is preventing gpm (gpm_t) "read" etc_t.
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: system-config-date
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Nils Philippsen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F11Blocker, F11FinalBlocker
TreeView+ depends on / blocked
 
Reported: 2009-03-15 10:54 UTC by Michael Monreal
Modified: 2009-05-06 20:24 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-05-06 20:24:09 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Log (2.33 KB, text/plain)
2009-03-15 10:54 UTC, Michael Monreal
no flags Details
Patch to run restorecon after creating /etc/localtime (1.18 KB, patch)
2009-03-18 15:16 UTC, Daniel Walsh
no flags Details | Diff

Description Michael Monreal 2009-03-15 10:54:11 UTC
I just got this SElinux warning which asks to file a bug. I will attach the complete log.

Comment 1 Michael Monreal 2009-03-15 10:54:41 UTC
Created attachment 335245 [details]
Log

Comment 2 Zdenek Prikryl 2009-03-17 08:10:05 UTC
hmm, with gpm-1.20.6-2.fc11 and selinux-policy-3.5.13-47.fc10 everything works fine. So, it can be a bug in selinux-policy. Reassigning the bug to selinux-policy package, maintainers can take a look at it and write their opinion.

Comment 3 Daniel Walsh 2009-03-17 17:33:15 UTC
The problem here is /etc/localtime is mislabeled.

restorecon /etc/localtime 

Should fix the problem.

How did /etc/localtime get created?  What ever is creating it needs to execute restorecon when it completes.

Sadly the kernel did not give setroubleshoot the full path so it was not able to check the labeling of /etc/localtime.

Comment 4 Michael Monreal 2009-03-18 12:08:31 UTC
(In reply to comment #3)
> How did /etc/localtime get created?  What ever is creating it needs to execute
> restorecon when it completes.

As this is a new installation I'm quite sure Anaconda must have created it... at least I did never change anything clock/date/timezone related after installation.

Comment 5 Daniel Walsh 2009-03-18 13:01:26 UTC
Chris can you check if /etc/localtime has the correct context after a fresh install?

ls -Z /etc/localtime

Should be

# matchpathcon /etc/localtime 
/etc/localtime	system_u:object_r:locale_t:s0

Comment 6 Chris Lumens 2009-03-18 14:47:05 UTC
/etc/localtime definitely has the right context both immediately after an install and after rebooting, though I did not run through firstboot.  I wonder if system-config-date copied over a new /etc/localtime and the context did not get set properly somehow.

Comment 7 Michael Monreal 2009-03-18 15:03:57 UTC
Oh, firstboot != anaconda? Well, I definitively used firstboot.

Comment 8 Daniel Walsh 2009-03-18 15:16:36 UTC
Created attachment 335713 [details]
Patch to run restorecon after creating /etc/localtime

Comment 9 Nils Philippsen 2009-04-20 08:39:00 UTC
Thanks for the patch, version 1.9.38 which contains it is building right now.

Comment 10 Will Woods 2009-05-06 20:24:09 UTC
system-config-date-1.9.38-1.fc11 is in Rawhide.


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