All of lore.kernel.org
 help / color / mirror / Atom feed
* got some problems with the type_transition rules
@ 2015-09-07 11:22 kuangjiou
  2015-09-07 16:14 ` Dominick Grift
  0 siblings, 1 reply; 6+ messages in thread
From: kuangjiou @ 2015-09-07 11:22 UTC (permalink / raw)
  To: 'selinux@tycho.nsa.gov'

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

Hello,everyone!

I am trying to use the optional file name feature in type_transition rules , And I test it in my OS (with kernel 3.0.76 and selinux userspace 2.1.0 ),


1.       I add the type_tansition rule in my policy like this : filetrans_pattern(unconfined_t,tpm_dentry_t,stmfile_lst_t,file,"123"), It can be compiled and installed successfully



But , every files that I creat in the tpm_dentry_t dentry , I will get the stmfile_lst_t type, not just the file named 123



2.       I add two type_tansition rules in my policy like this :
filetrans_pattern(unconfined_t,tpm_dentry_t,stmfile_lst_t,file,"123")

filetrans_pattern(unconfined_t,tpm_dentry_t,trust_log_t,file,"456")



It can be conpiled successfully, But got some error when install




libsepol.expand_terule_helper: conflicting TE rule for (unconfined_t, tpm_dentry_t:file):  old was stmfile_lst_t, new is trust_log_t
libsepol.expand_module: Error during expand
libsemanage.semanage_expand_sandbox: Expand module failed

semodule:  Failed!




Can anyone help me with this problem, Thank you!


pS: I got the selinux userspace 2.1.0 from here

https://github.com/SELinuxProject/selinux/wiki/Releases



[-- Attachment #2: Type: text/html, Size: 6719 bytes --]

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

end of thread, other threads:[~2015-09-08 14:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-07 11:22 got some problems with the type_transition rules kuangjiou
2015-09-07 16:14 ` Dominick Grift
2015-09-08  2:07   ` kuangjiou
2015-09-08  7:14     ` Dominick Grift
2015-09-08  9:06       ` 答复: " kuangjiou
2015-09-08 14:58         ` Stephen Smalley

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.