All of lore.kernel.org
 help / color / mirror / Atom feed
* CIL policy - Error: Duplicate rule defined
@ 2011-12-08 14:18 Richard Haines
  2011-12-23 13:40 ` Richard Haines
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Haines @ 2011-12-08 14:18 UTC (permalink / raw)
  To: Steve Lawrence; +Cc: selinux

[-- Attachment #1: Type: text/plain, Size: 1205 bytes --]

Steve,

The CIL policy is attached that is giving problems. 

I have this installed as the running policy so you may need to change the
run-semanage script.

If you run run-semodule after creating the /var/lib/selinux/<policy-name>/ 
directory structure, it should install the policy okay.

If you then edit the x_select_paste.cil file you will find a comment on line 111:

; STEVE: Remove comment and then run run-semodule "Error: Duplicate rule defined (line: 29)"

So remove the ';' on line 112 to read:
(typetransition x_select_paste_t unconfined_t x_drawable x_select_paste_t)

the error should then appear. If you add/remove the ';' on the other 
typetransition statements you will get different Dup line errors.

Note after removing ';' on line 112, run-cil will still build policy (remove a few more and it will also error).

It seems to be related to the policy size as when I added the booleans after Eric's suggestion I found I had to remove more typetransition statements to get the policy to build.

Thanks for your help
Richard

Note I build the same policy as policy language modules using checkmodule with all the type_transition statements - with no errors.


[-- Attachment #2: CIL-policy.tar.gz --]
[-- Type: application/x-gzip, Size: 223780 bytes --]

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

end of thread, other threads:[~2012-01-17 17:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-08 14:18 CIL policy - Error: Duplicate rule defined Richard Haines
2011-12-23 13:40 ` Richard Haines
2012-01-17 17:50   ` Steve Lawrence

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.