[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: /dev/shm - tmpfs_t or device_t ?
- From: Daniel J Walsh <dwalsh redhat com>
- To: Tom London <selinux gmail com>
- Cc: fedora-selinux <fedora-selinux-list redhat com>
- Subject: Re: /dev/shm - tmpfs_t or device_t ?
- Date: Sat, 25 Aug 2007 05:04:04 -0400
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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?
>
> tom
Steven would be better at answering this then me. But restorecon is
looking at the what matchpathcon tells it and it is tmpfs_t, but there
is actually a tmpfs_t file system moujnted here. So we probably could
change the file context of the /dev/shm to tmpfs_t to stop restorecon
from trying to change it.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iD8DBQFGz/CErlYvE4MpobMRAqTUAJsHHXMdcSAO2bwJBxo0w/8uMb7pMgCfVkPm
oZSX/oBX27YlNtnYgkaBVgs=
=22pn
-----END PGP SIGNATURE-----
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]