Skip to contentSkip to conversation

Trouble with mounted /home

DISCUSSION Hal 3 participants 4 messages Nov 15, 2007 – Nov 19, 2007 SELinux security module

lore
Share & tools
lore

Hal

author
#0 lore raw

hi all
I have problem with Selinux targeted policy and mounted user home dirs on F8.

What I did was:

# mkfs -t ext3 /dev/sdb1
# mount /dev/sdb1 /home
# useradd test1
# passwd test1
# useradd -Z xguest_u test2 
# passwd test2
# vi /etc/fstab 
and added /dev/sdb1 as /home

from the GUI I have set targeted/enforcing and checked relabel on reboot.

# reboot

In the gdm I tried to login as test1 and test2 with no success. A message pops up on the screen saying that /home/test1 or /home/test2 does not exist respectively.

when I set permissive no problems at all despite of some avc denials about tomboy and /tmp...

It seems there are no messaages in /var/log/messages in enforcing mode...

So can anybody tell me how to use selinux with a mounted home?

By the way /home/test1 and /home/test2 have the correct labeling.

Thanks in advance!

Rumen

      ____________________________________________________________________________________

Get easy, one-click access to your favorites.
Make Yahoo! your homepage.
http://www.yahoo.com/r/hs

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#1 lore raw
Quoted 24 lines · Hal

hi all
I have problem with Selinux targeted policy and mounted user home dirs on F8.

What I did was:

# mkfs -t ext3 /dev/sdb1
# mount /dev/sdb1 /home
# useradd test1
# passwd test1
# useradd -Z xguest_u test2 
# passwd test2
# vi /etc/fstab 
and added /dev/sdb1 as /home

from the GUI I have set targeted/enforcing and checked relabel on reboot.

# reboot

In the gdm I tried to login as test1 and test2 with no success. A message pops up on the screen saying that /home/test1 or /home/test2 does not exist respectively.

Quoted 8 lines

when I set permissive no problems at all despite of some avc denials about tomboy and /tmp...

It seems there are no messaages in /var/log/messages in enforcing mode...

So can anybody tell me how to use selinux with a mounted home?

By the way /home/test1 and /home/test2 have the correct labeling.

Does /home have the right label? Are you sure the DAC permissions (regular unix perms) are correct?

Signature · 9 lines
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
author
#2 lore raw
Quoted 30 lines · --- "Christopher J. PeBenito
Quoted 2 lines · Hal

hi all
I have problem with Selinux targeted policy and mounted user home dirs on

F8.

Quoted 11 lines

What I did was:

# mkfs -t ext3 /dev/sdb1
# mount /dev/sdb1 /home
# useradd test1
# passwd test1
# useradd -Z xguest_u test2 
# passwd test2
Quoted 8 lines
# vi /etc/fstab 
and added /dev/sdb1 as /home

from the GUI I have set targeted/enforcing and checked relabel on reboot.

# reboot

In the gdm I tried to login as test1 and test2 with no success. A message

pops

Quoted 6 lines

up on the screen saying that /home/test1 or /home/test2 does not exist respectively.

when I set permissive no problems at all despite of some avc denials about tomboy and /tmp...

Quoted 8 lines
Quoted 5 lines

It seems there are no messaages in /var/log/messages in enforcing mode...

So can anybody tell me how to use selinux with a mounted home?

By the way /home/test1 and /home/test2 have the correct labeling.

Does /home have the right label? Are you sure the DAC permissions (regular unix perms) are correct?

With selinux disabled everything works fine. And the labels look ok just as if home was a part of the same FS when everything works.

      ____________________________________________________________________________________

Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#3 lore raw
In reply to Hal
Quoted 27 lines · Hal

hi all
I have problem with Selinux targeted policy and mounted user home dirs on F8.

What I did was:

# mkfs -t ext3 /dev/sdb1
# mount /dev/sdb1 /home
# useradd test1
# passwd test1
# useradd -Z xguest_u test2 
# passwd test2
# vi /etc/fstab 
and added /dev/sdb1 as /home

from the GUI I have set targeted/enforcing and checked relabel on reboot.

# reboot

In the gdm I tried to login as test1 and test2 with no success. A message pops up on the screen saying that /home/test1 or /home/test2 does not exist respectively.

when I set permissive no problems at all despite of some avc denials about tomboy and /tmp...

Quoted 7 lines

It seems there are no messaages in /var/log/messages in enforcing mode...

So can anybody tell me how to use selinux with a mounted home?

By the way /home/test1 and /home/test2 have the correct labeling.

Thanks in advance!

ls -Zd /home shows what?

No avc messages in /var/log/audit/audit.log or /var/log/messages?

Signature · 8 lines
Stephen Smalley
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.