semodule -i postgresql.pp fails on F8
I got src package of selinux-policy-3.0.8
#cd serefpolicy-3.0.8/policy/modules/services #make -f /usr/share/selinux/devel/Makefile postgresql.pp #semodule -i postgresql.pp
libsepol.scope_copy_callback: postgresql: Duplicate declaration in
module: type/attribute postgresql_var_run_t libsemanage.semanage_link_sandbox: Link packages failed
semodule: Failed!
I doubted that in base.pp having postgresql ( it should not have, though) #semodule -r clamav -b /etc/selinux/targeted/modules/active/base.pp libsemanage.semanage_direct_remove: Module postgresql was not found.
semodule: Failed on postgresql!
So, I think something wrong with SELinux policy itself.
Please lead me to the right direction...
I just want to install postgresql policy.
Signature · 16 lines
Shintaro Fujiwara segatex project (SELinux policy tool) http://sourceforge.net/projects/segatex/ Home page http://intrajp.no-ip.com/ Blog http://intrajp.no-ip.com/nucleus/ CMS http://intrajp.no-ip.com/xoops/ Wiki http://intrajp.no-ip.com/pukiwiki/ -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 15 lines · Shintaro Fujiwara
I got src package of selinux-policy-3.0.8
#cd serefpolicy-3.0.8/policy/modules/services #make -f
/usr/share/selinux/devel/Makefilepostgresql.pp #semodule -i postgresql.pplibsepol.scope_copy_callback: postgresql: Duplicate declaration in
module: type/attributepostgresql_var_run_tlibsemanage.semanage_link_sandbox: Link packages failed
semodule: Failed!I doubted that in base.pp having postgresql ( it should not have, though)
From what I see in the Fedora CVS, postgresql is in the base module.
Signature · 9 lines
Chris PeBenito Tresys Technology, LLC (410) 290-1411 x150 -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
As soon as you gave me a hint, I tried to edit
my postgresql.te file like this (under).
Also I fixed my postgresql.fc file.
Because, I installed from source.gz.
Path is different from RPM version, you know.
And succeeded make .pp file and install.
I guess in base.pp types are declared,
but I don't know how to check.
Anyway I'm happy succeeded installing .pp file.
Now I started relabeling the system.
Thanks !
#policy_module(postgresql,1.4.0)policy_module(postgresql,100.4.0)
#################################
#
# Declarations
#
require {
type postgresql_t;
type postgresql_exec_t;
type postgresql_db_t;
type postgresql_etc_t;
type postgresql_lock_t;
type postgresql_var_run_t;
type postgresql_log_t;
type postgresql_tmp_t;
}#type postgresql_t;
#type postgresql_exec_t; init_daemon_domain(postgresql_t,postgresql_exec_t)
#type postgresql_db_t;files_type(postgresql_db_t)
#type postgresql_etc_t;files_config_file(postgresql_etc_t)
#type postgresql_lock_t;files_lock_file(postgresql_lock_t)
#type postgresql_log_t;logging_log_file(postgresql_log_t)
#type postgresql_tmp_t;files_tmp_file(postgresql_tmp_t)
#type postgresql_var_run_t;files_pid_file(postgresql_var_run_t)
2007/11/26, Christopher J. PeBenito <[email protected]>:
Quoted 23 lines · Shintaro Fujiwara
Quoted 12 lines
I got src package of selinux-policy-3.0.8
#cd serefpolicy-3.0.8/policy/modules/services #make -f
/usr/share/selinux/devel/Makefilepostgresql.pp #semodule -i postgresql.pplibsepol.scope_copy_callback: postgresql: Duplicate declaration in
module: type/attributepostgresql_var_run_tlibsemanage.semanage_link_sandbox: Link packages failed
semodule: Failed!Quoted 3 lines
I doubted that in base.pp having postgresql ( it should not have, though)
From what I see in the Fedora CVS, postgresql is in the base module.
--
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150
Signature · 16 lines
Shintaro Fujiwara segatex project (SELinux policy tool) http://sourceforge.net/projects/segatex/ Home page http://intrajp.no-ip.com/ Blog http://intrajp.no-ip.com/nucleus/ CMS http://intrajp.no-ip.com/xoops/ Wiki http://intrajp.no-ip.com/pukiwiki/ -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.