All of lore.kernel.org
 help / color / mirror / Atom feed
* [refpolicy] [RFC] constraint change
@ 2015-03-04 18:36 Christopher J. PeBenito
  2015-03-04 20:07 ` Dominick Grift
  0 siblings, 1 reply; 2+ messages in thread
From: Christopher J. PeBenito @ 2015-03-04 18:36 UTC (permalink / raw)
  To: refpolicy

I was looking at the constraints, and I saw this one which has been
around forever (along with a similar one for sockets):

constrain dir_file_class_set { create relabelto relabelfrom }
(
        u1 == u2
        or t1 == can_change_object_identity
);

Which has the idea that you can only create and relabelto/from files
that match your seuser.  I was thinking that the intent might be clearer
if we combine with a validatetrans:

constrain dir_file_class_set { create relabelfrom }
(
        u1 == u2
        or t1 == can_change_object_identity
);

validatetrans dir_file_class_set
(
        u1 == u2
        or t3 == can_change_object_identity
);

Thoughts?


(on a side note I think it would be even clearer if language syntax
permitted the validatetrans to have u1 == u3, but I suspect it requires
a kernel change)

-- 
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com

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

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

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-04 18:36 [refpolicy] [RFC] constraint change Christopher J. PeBenito
2015-03-04 20:07 ` Dominick Grift

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.