From: cpebenito@tresys.com (Christopher J. PeBenito)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [RFC] constraint change
Date: Wed, 4 Mar 2015 13:36:43 -0500 [thread overview]
Message-ID: <54F750BB.6010005@tresys.com> (raw)
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
next reply other threads:[~2015-03-04 18:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-04 18:36 Christopher J. PeBenito [this message]
2015-03-04 20:07 ` [refpolicy] [RFC] constraint change Dominick Grift
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54F750BB.6010005@tresys.com \
--to=cpebenito@tresys.com \
--cc=refpolicy@oss.tresys.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.