Re: /dev/shm - tmpfs_t or device_t ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tom London wrote:
> Running latest Rawhide, targeted/enforcing.
> 
> I notice that if I run 'restorecon -v -R -n /dev' I get:
> [root@localhost ~]# restorecon -v -R -n /dev
> restorecon reset /dev/shm context
> system_u:object_r:tmpfs_t:s0->system_u:object_r:device_t:s0
> [root@localhost ~]#
> 
> but
> [root@localhost ~]# ls -ldZ /dev/shm
> drwxrwxrwt  root root system_u:object_r:tmpfs_t        /dev/shm
> [root@localhost ~]#
> 
> Seems funny to me....  Is that right?

i found your resorecon command run with "-n", that option means:

-n     don't change any file labels.

additionally, i found there are not any label in file_contexts,
so i think if there no type_transition rules in policy, the file
label should be inherited from his containing dir, i.e. device_t


> 
> tom

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

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux