Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 715588 - hardened-policy 2.20190609-r1 is non consistent
Summary: hardened-policy 2.20190609-r1 is non consistent
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: SELinux (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: SE Linux Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-31 09:47 UTC by Alexander Miroshnichenko
Modified: 2020-05-20 11:39 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Miroshnichenko 2020-03-31 09:47:23 UTC
# semodule -v -i /usr/share/selinux/strict/postfix.ppAttempting to install module '/usr/share/selinux/strict/postfix.pp':
Ok: return value of 0.
Committing changes:
Failed to resolve typeattributeset statement at /var/lib/selinux/strict/tmp/modules/400/postfix/cil:218
semodule:  Failed!

Error link to:
(typeattributeset cil_gen_require syslogd_runtime_t)

With last upstream refpolicy release rename have been done from *_var_run_t to *_runtime_t.

interface(`logging_send_syslog_msg',`
	gen_require(`
		type syslogd_t, syslogd_runtime_t, devlog_t;
	')
...

# seinfo -t -x|grep syslogd_ 
   type syslogd_client_packet_t, client_packet_type, packet_type;
   type syslogd_exec_t, entry_type, exec_type, file_type, non_auth_file_type, non_security_file_type;
   type syslogd_initrc_exec_t, entry_type, exec_type, file_type, non_auth_file_type, non_security_file_type, init_script_file_type;
   type syslogd_port_t, defined_port_type, port_type, reserved_port_type;
   type syslogd_server_packet_t, packet_type, server_packet_type;
   type syslogd_t, nsswitch_domain, can_receive_kernel_messages, domain, daemon;
   type syslogd_tmp_t, file_type, non_auth_file_type, non_security_file_type, polymember, tmpfile;
   type syslogd_unit_t, file_type, non_auth_file_type, non_security_file_type, systemdunit;
   type syslogd_var_lib_t, file_type, non_auth_file_type, non_security_file_type;
   type syslogd_var_run_t, file_type, non_auth_file_type, non_security_file_type, pidfile;

Interface `logging_send_syslog_msg' requires `syslogd_runtime_t' which does not defined.


sec-policy/selinux-base-2.20190609-r1
sec-policy/selinux-base-policy-2.20190609-r1
sec-policy/selinux-postfix-2.20190609-r1


Iteresting that master branch of hardened-refpolicy have `syslogd_runtime_t' type defined.

Reproducible: Always

Steps to Reproduce:
1. Update sec-policy/* to 2.20190609-r1
2. Manually try to load postfix module.
Actual Results:  
Many modules failed to load

Expected Results:  
Success load of all installed selinux policy modules.
Comment 1 Alexander Miroshnichenko 2020-05-20 11:39:31 UTC
My fault: wrong policy version I used.