All of lore.kernel.org
 help / color / mirror / Atom feed
* [refpolicy] MLS file upgrade
@ 2012-02-02  1:09 Paul Clark
  2012-02-02 15:23 ` Christopher J. PeBenito
  0 siblings, 1 reply; 5+ messages in thread
From: Paul Clark @ 2012-02-02  1:09 UTC (permalink / raw)
  To: refpolicy

I want to change the MLS policy to allow any process to upgrade a file 
or directory, but I'm currently failing on an "easy" first step with a 
"relabelfrom" error.

I'm using Fedora 13 and selinux-policy-3.7.19-101.fc13.src.rpm.

I did *not* change the mlscontrain rule that deals with relabelfrom 
because I think it should still work.

My test file has the same type that chcon runs with (user_t), and I'm 
simply trying to change the level from s0 to s1 by doing the following:
     chcon -l s1 testfile

I changed the mlsvalidatetrans statement for "dir" and "file" so that 
the first line was changed from
     ((( l1 eq l2 ) or
to
     ((( l1 domby l2 ) or

Any obvious problems or suggestions?

Another approach would be to also give all domains the "mlsfileupgrade" 
attribute.  Because my test process was running with user_t, I added:
     mls_file_upgrade(user_t)
to modules/admin/usermanage.te, but there was no change in the error.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://oss.tresys.com/pipermail/refpolicy/attachments/20120201/2a421306/attachment.html 

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

end of thread, other threads:[~2012-02-03 22:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-02  1:09 [refpolicy] MLS file upgrade Paul Clark
2012-02-02 15:23 ` Christopher J. PeBenito
2012-02-02 18:26   ` Paul Clark
2012-02-03 13:25     ` Christopher J. PeBenito
2012-02-03 22:12       ` Paul Clark

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.