Sharing partitions between FC4 and FC5

Ron Yorston rmy at tigress.co.uk
Sat Apr 1 09:42:29 UTC 2006


I've installed FC5 alongside FC4.  Initially I just gave FC5 its own
/, /var and /usr partitions but then edited /etc/fstab to add partitions
that I want to share between FC4 and FC5:  things like /home and /opt.
For each OS I use a different login with separate home directories.
This avoids problems with GNOME configurations and the like.

Then I rebooted into FC5 and forced a relabel.  FC5 works fine but I'm
now unable to login to the GNOME desktop in FC4 unless I set enforcing=0
on boot.  When I do that the log rapidly fills up with lines like:

Apr  1 10:30:24 random kernel: inode_doinit_with_dentry:  context_to_sid(user_u:object_r:user_home_t:s0) returned 22 for dev=dm-1 ino=352500

I'll attach the log messages I get when I try to login with SELinux
in enforcing mode.

Ron

---
Apr  1 10:20:43 random gdm(pam_unix)[2868]: session opened for user rmy by (uid=0)
Apr  1 10:20:43 random kernel: inode_doinit_with_dentry:  context_to_sid(user_u:object_r:user_home_dir_t:s0) returned 22 for dev=dm-1 ino=352024
Apr  1 10:20:43 random kernel: inode_doinit_with_dentry:  context_to_sid(user_u:object_r:user_home_t:s0) returned 22 for dev=dm-1 ino=352336
Apr  1 10:20:52 random gdm[2868]: gdm_auth_user_add: Could not lock cookie file /home/rmyfc4/.Xauthority
Apr  1 10:20:53 random kernel: inode_doinit_with_dentry:  context_to_sid(user_u:object_r:user_home_t:s0) returned 22 for dev=dm-1 ino=352894
Apr  1 10:20:53 random kernel: inode_doinit_with_dentry:  context_to_sid(user_u:object_r:user_home_t:s0) returned 22 for dev=dm-1 ino=353188
Apr  1 10:20:53 random kernel: inode_doinit_with_dentry:  context_to_sid(user_u:object_r:user_home_t:s0) returned 22 for dev=dm-1 ino=352496
Apr  1 10:20:53 random kernel: inode_doinit_with_dentry:  context_to_sid(user_u:object_r:user_home_t:s0) returned 22 for dev=dm-1 ino=352341
Apr  1 10:20:53 random kernel: inode_doinit_with_dentry:  context_to_sid(user_u:object_r:user_home_t:s0) returned 22 for dev=dm-1 ino=352335
Apr  1 10:20:54 random gconfd (rmy-2984): starting (version 2.10.0), pid 2984 user 'rmy'
Apr  1 10:20:54 random kernel: inode_doinit_with_dentry:  context_to_sid(user_u:object_r:user_home_t:s0) returned 22 for dev=dm-1 ino=352349
Apr  1 10:20:54 random gconfd (rmy-2984): Resolved address "xml:readonly:/etc/gconf/gconf.xml.mandatory" to a read-only configuration source at position 0
Apr  1 10:20:54 random gconfd (rmy-2984): Resolved address "xml:readwrite:/home/rmyfc4/.gconf" to a read-only configuration source at position 1
Apr  1 10:20:54 random gconfd (rmy-2984): Resolved address "xml:readonly:/etc/gconf/gconf.xml.defaults" to a read-only configuration source at position 2
Apr  1 10:20:54 random gconfd (rmy-2984): None of the resolved addresses are writable; saving configuration settings will not be possible
Apr  1 10:20:54 random gconfd (rmy-2984): No writable config sources successfully resolved, may not be able to save some configuration changes
Apr  1 10:20:54 random kernel: inode_doinit_with_dentry:  context_to_sid(user_u:object_r:user_home_t:s0) returned 22 for dev=dm-1 ino=352072
Apr  1 10:20:54 random kernel: inode_doinit_with_dentry:  context_to_sid(user_u:object_r:user_home_t:s0) returned 22 for dev=dm-1 ino=352350
[snip]
Apr  1 10:20:55 random kernel: inode_doinit_with_dentry:  context_to_sid(user_u:object_r:user_home_t:s0) returned 22 for dev=dm-1 ino=352897
Apr  1 10:21:15 random gdm(pam_unix)[2868]: session closed for user rmy
Apr  1 10:21:15 random dbus: avc:  0 AV entries and 0/512 buckets used, longest chain length 0 
Apr  1 10:21:24 random gconfd (rmy-2984): Could not open saved state file '/home/rmyfc4/.gconfd/saved_state.tmp' for writing: Permission denied




More information about the fedora-selinux-list mailing list