FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora SELinux Support

LinkBack Thread Tools
Old 11-19-2007, 07:28 PM
Daniel J Walsh
Default home_dir default_t

Hash: SHA1

Per Sjoholm wrote:
> Daniel J Walsh wrote:
> Per Sjoholm wrote:
>>>> I have som problem with alerts of default_t and relabel does not solve
>>>> the problem
>>>> Running FC7
>>>> I have my machine local home under /home_l /home is used for nfs/autofs
>>>> #> genhomedircon
>>>> #> touch /.autorelabel ; reboot
>>>> /home_l/*/* gets labeled with default_t
>>>> restorecon -v -R /home_l
>>>> labels with user_home_t
>>>> Why is there a differns between autorelabel and restorecon
>>>> Why does autorelabel sets /home and /home_l to default_t
> Does the system know that /home_l is a homedir? IE Do you have a
> password record that tells it this? Or did you use

> There are records with /home_l in /etc/passwd
> No records with /home
> $ grep home /etc/passwd
> user1:x:1000:1000::/home_l/user1:/bin/bash
> user2:x:1001:1001::/home_l/user2:/bin/bash

> $ ls -Zd /home_l /home
> drwxr-xr-x root root system_ubject_r:default_t /home
> drwxr-xr-x root root system_ubject_r:home_root_t /home_l

> $ ls -Z /home_l /home
> /home:

> /home_l:
> drwx------ user1 user1 user_ubject_r:user_home_dir_t user1
> drwx------ user2 user2 user_ubject_r:user_home_dir_t user2

> /Per

Ok Then I would just add the rule

semanage fcontext -a -t home_root_t /home_l
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFHQfHirlYvE4MpobMRAvWbAJwK2xMApz7xDwiXs0i011 Xs6/jBSQCfR0o1

fedora-selinux-list mailing list

Thread Tools

All times are GMT. The time now is 09:36 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org