Re: got some problems with the type_transition rules

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I got this message when I input "sesearch -ASCT -s unconfined_t | grep type_transition | grep tpm_dentry_t"
 type_transition unconfined_t tpm_dentry_t : file stmfile_lst_t;

does it mean the kernel 3.0.76 don't support for optional file name in type_transition rules?

-----邮件原件-----
发件人: Dominick Grift [mailto:dac.override@xxxxxxxxx] 
发送时间: 2015年9月8日 0:15
收件人: kuangjiou
抄送: 'selinux@xxxxxxxxxxxxx'
主题: Re: got some problems with the type_transition rules

On Mon, Sep 07, 2015 at 11:22:26AM +0000, kuangjiou wrote:
> 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
> 

I would have a look at applicable type_transition rules with sesearch to see what is there.

sesearch -ASCT -s unconfined_t | grep type_transition | grep tpm_dentry_t

> 
> 
> 
> 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
> 
> 

> _______________________________________________
> Selinux mailing list
> Selinux@xxxxxxxxxxxxx
> To unsubscribe, send email to Selinux-leave@xxxxxxxxxxxxx.
> To get help, send an email containing "help" to Selinux-request@xxxxxxxxxxxxx.


--
02DFF788
4D30 903A 1CF3 B756 FB48  1514 3148 83A2 02DF F788
http://keys.gnupg.net/pks/lookup?op=vindex&search=0x314883A202DFF788
Dominick Grift

_______________________________________________
Selinux mailing list
Selinux@xxxxxxxxxxxxx
To unsubscribe, send email to Selinux-leave@xxxxxxxxxxxxx.
To get help, send an email containing "help" to Selinux-request@xxxxxxxxxxxxx.




[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux