All of lore.kernel.org
 help / color / mirror / Atom feed
* Changing unlabeled_t on files to invalid_label_t.
@ 2014-01-09 21:53 Daniel J Walsh
  2014-01-09 22:21 ` Dominick Grift
                   ` (3 more replies)
  0 siblings, 4 replies; 22+ messages in thread
From: Daniel J Walsh @ 2014-01-09 21:53 UTC (permalink / raw)
  To: SELinux

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

We would like to change

sid file_labels         gen_context(system_u:object_r:unlabeled_t,s0)

to something like

sid file_labels         gen_context(system_u:object_r:invalid_label_t,s0)

Since explaining to someone that a file without a label is file_t, but if it
has a label that the kernel does not understand it is labeled as unlabeled_t.
A file with a label is unlabeled_t????  While a file without a label is file_t.


#
# unlabeled_t is the type of unlabeled objects.
# Objects that have no known labeling information or that
# have labels that are no longer valid are treated as having this type.
#

#
# file_t is the default type of a file that has not yet been
# assigned an extended attribute (EA) value (when using a filesystem
# that supports EAs).
#

These two type definitions seem to conflict, with file_t winning at least on
systems that support XAttrs.

I would guess a better fix would be to change the kernel to handle the case
where an object is unlabeled_t one way and if it is labeled and the kernel
does not understand the label differently.

sid invalid_file_labels gen_context(system_u:object_r:invalid_label_t,s0)

Opinions....

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlLPGlMACgkQrlYvE4MpobOrDwCgwSduQpyqjGFni/0dksiv0I2j
uEAAn181YTHYYRj0XSern/+CPtuUp7Vu
=3HJ3
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2014-01-13 20:07 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-09 21:53 Changing unlabeled_t on files to invalid_label_t Daniel J Walsh
2014-01-09 22:21 ` Dominick Grift
2014-01-09 22:49   ` Dominick Grift
2014-01-10  0:26     ` Paul Moore
2014-01-09 22:54   ` Paul Moore
2014-01-09 23:07     ` Eric Paris
2014-01-09 23:22       ` Dominick Grift
2014-01-10  0:23         ` Paul Moore
2014-01-10 11:52           ` Dominick Grift
2014-01-10 14:42             ` Paul Moore
2014-01-10 14:42       ` Stephen Smalley
2014-01-10 14:49         ` Paul Moore
2014-01-10 14:56           ` Stephen Smalley
2014-01-10 16:13             ` Stephen Smalley
2014-01-10 16:23               ` Paul Moore
2014-01-12  1:37           ` Russell Coker
2014-01-09 22:23 ` Ted Toth
2014-01-09 22:45 ` Paul Moore
2014-01-10 16:06 ` Stephen Smalley
2014-01-10 16:13   ` Daniel J Walsh
2014-01-10 16:14     ` Stephen Smalley
2014-01-13 20:07   ` Christopher J. PeBenito

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.