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

Re: error



netpython wrote:
i get the following error:
What doe this Duplicate declaration mean?

make -f /usr/share/selinux/devel/Makefile
Compiling targeted firefox module
/usr/bin/checkmodule:  loading policy configuration from tmp/firefox.tmp
/usr/bin/checkmodule:  policy configuration loaded
/usr/bin/checkmodule:  writing binary representation (version 5) to
tmp/firefox.mod
Creating targeted firefox.pp policy package
rm tmp/firefox.mod.fc tmp/firefox.mod
[root ph devel]# semodule -i firefox.pp
libsepol.scope_copy_callback: firefox: Duplicate declaration in
module: type/attribute proc_t
libsemanage.semanage_link_sandbox: Link packages failed
semodule:  Failed!

the firefox.te file is:

policy_module(firefox,1.0.0)

########################################
#
# Declarations
#
type xdm_t;
type proc_t;
type home_root_t;
type bin_t;
type firefox_t;
type firefox_exec_t;
you probably meant to require xdm, proc, home_root and bin, like this
require {
   type xdm_t, proc_t, home_root_t, bin_t;
}

otherwise you are trying to declare them and they've already been declared in base.

However, in refpolicy you should never have to declare types since the interface calls you make will bring them in, requiring xdm_t manually is breaking the encapsulation around the xdm policy, you'll want to find an xdm interface call that does what you want.


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