home_dir default_t

Per Sjoholm Per.t.Sjoholm at flysta.net
Fri Nov 16 10:11:25 UTC 2007


Daniel J Walsh wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> 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
> semanage fcontext -a -t user_home_t '/home_l(/.*)?'
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.7 (GNU/Linux)
> Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
>
> iD8DBQFHOx+9rlYvE4MpobMRApzEAJsEinMr3v6rXM+AcuE2+m/OaI9kGwCdG4+S
> uZJzjRbOg+eF3Tc7DtCBan0=
> =QzNj
> -----END PGP SIGNATURE-----
>   
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_u:object_r:default_t      /home
drwxr-xr-x  root root system_u:object_r:home_root_t    /home_l

$ ls -Z /home_l  /home
/home:

/home_l:
drwx------  user1 user1   user_u:object_r:user_home_dir_t  user1
drwx------  user2 user2   user_u:object_r:user_home_dir_t  user2

/Per




More information about the fedora-selinux-list mailing list