All of lore.kernel.org
 help / color / mirror / Atom feed
* Ok I am trying to build interfaces using X Controls.
@ 2008-03-03 20:32 Daniel J Walsh
  2008-03-03 21:39 ` Daniel J Walsh
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel J Walsh @ 2008-03-03 20:32 UTC (permalink / raw)
  To: Eamon Walsh, SE Linux

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

What are these doing?  Why do I need these?

type_transition $2_t default_xproperty_t:x_property
	$2_default_xproperty_t;

	type_transition $2_t property_xevent_t:x_event $2_property_xevent_t;
	type_transition $2_t focus_xevent_t:x_event $2_focus_xevent_t;
	type_transition $2_t manage_xevent_t:x_event $2_manage_xevent_t;
	type_transition $2_t default_xevent_t:x_event $2_default_xevent_t;


I want to refer to all of the XClass via the main type.

Lets take an example.

I write policy for all X Apps that staff_t runs without a transition to
stay staff_t.

Now I write a transition rule for staff_mozilla_t.

So I want to say something like

xserver_paste_pattern(staff_mozilla_t, staff_t)

I would like to then write something like

allow staff_mozilla_t staff_t:x_property read;

But you make me write.

allow staff_mozilla_t staff_default_x_property_t:x_property read;

Which screws up the interface and I end up having to pass around staff
and staff_mozilla.

Is this necessary?

Is this legal?
	type_transition $2_t input_xevent_t:x_event $2_t;

Or is it even necessary?

I really want to build an interface that says

xserver_application(staff, staff_t)

xserver_application(staff, staff_mozilla_t)

Then define any interactions between staff_t and staff_mozilla_t via
simple interfaces.

Does any of this make sense?

Dan

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkfMYGEACgkQrlYvE4MpobMNbwCgw/CfdKIrShUD3MTA7lZTO7gq
9kkAoN8Nbp4Y60ACF9/PkICxqWnzgKU9
=htFQ
-----END PGP SIGNATURE-----

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

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

end of thread, other threads:[~2008-03-04 20:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-03 20:32 Ok I am trying to build interfaces using X Controls Daniel J Walsh
2008-03-03 21:39 ` Daniel J Walsh
2008-03-03 23:02   ` Eamon Walsh
2008-03-04 13:51     ` Daniel J Walsh
2008-03-04 20:16       ` Eamon Walsh

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.