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

-----BEGIN PGP SIGNED MESSAGE-----
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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFHQfHirlYvE4MpobMRAvWbAJwK2xMApz7xDwiXs0i011 Xs6/jBSQCfR0o1
qi3F/GdL//0Fwp0ZKo1zLOI=
=equU
-----END PGP SIGNATURE-----

--
fedora-selinux-list mailing list
fedora-selinux-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-selinux-list
 

Thread Tools




All times are GMT. The time now is 10:21 PM.

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