Bug 121638 - after fresh install, /root/.default_contexts has wrong attributes
Summary: after fresh install, /root/.default_contexts has wrong attributes
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: policy
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-04-24 11:43 UTC by Gene Czarcinski
Modified: 2007-11-30 22:10 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-06-02 18:39:13 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Gene Czarcinski 2004-04-24 11:43:14 UTC
Description of problem:
fresh everything install of development shapshot of 22 April (should
be same as FC2-T3)

After the install, the /root/.default_contexts files has the wrong
selinux attributes to be used:
-rw-r--r--  root     root     system_u:object_r:staff_home_dir_t
.default_contexts
 
[root@hummer root]# restorecon /root/.default_contexts
[root@hummer root]# ls -Z .default_contexts
-rw-r--r--  root     root     system_u:object_r:default_context_t
.default_contexts
[root@hummer root]#

Comment 1 Gene Czarcinski 2004-04-28 16:34:26 UTC
verified with FC2-T3 "official" fresh install

Comment 2 Jeremy Katz 2004-04-28 18:49:13 UTC
You were booting with 'linux selinux' to start the install, right?

Comment 3 Leonard den Ottolander 2004-05-12 16:37:31 UTC
I noticed this as well, but fixed it with restorecon. Maybe an older
policy caused this file to have a wrong context?

Compare also bug 118618.

Comment 4 Leonard den Ottolander 2004-05-12 16:41:12 UTC
Dang. This is a fresh install you are speaking of. I should learn to
read :) .

Comment 5 Gene Czarcinski 2004-05-12 17:21:50 UTC
I am going to be doing a fresh install of today's (12 May) snapshot of
development and will check to see if this is fixed yet.  I suspect it
may not be fixed but will verify that.

Comment 6 Daniel Walsh 2004-05-28 14:32:57 UTC
We are moving this file out of the home directory.  Basically with the
new design homedir specific files will be under the policy root.

/etc/selinux/{strict|targeted}/contexts/users/root


Dan

Comment 7 Daniel Walsh 2004-06-02 18:39:13 UTC
Fixed in selinux-policy-strict-1.13.2-7.src.rpm


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