Bug 1272426 - the unreserved_port_type attribute error in corenetwork.if.in
the unreserved_port_type attribute error in corenetwork.if.in
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
rawhide
All Linux
medium Severity medium
: ---
: ---
Assigned To: Miroslav Grepl
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-10-16 07:35 EDT by sensor.wen
Modified: 2015-10-19 01:49 EDT (History)
5 users (show)

See Also:
Fixed In Version: selinux-policy-3.13.1-154.fc24
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-10-19 01:49:18 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description sensor.wen 2015-10-16 07:35:31 EDT
Description of problem:
I am Fedora Zh User Group member. I call the "corenet_tcp_bind_unreserved_ports (ircd_hybrid_t)" in the module, but returned the following error when installing the module.

``
# semodule -i ircd-hybrid.pp
ircd-hybrid: Expected unreserved_port_t to be an attribute, but it was already declared as a type. (No such file or directory).
libsemanage.semanage_link_sandbox: Link packages failed (No such file or directory).
``

This BUG is introduced from 05de19db89f92d30aaae3866991dd0fa14958a93. System version affected by it: fc20, fc21, fc22, fc23, rawhide.


Version-Release number of selected component (if applicable):


How reproducible:
Please download selinux module from http://github.com/FZUG/repo. Cancel the line comment (corenet_tcp_bind_unreserved_ports) in .te file. Finally, you need to use "make; semodule -i" install this module.

Steps to Reproduce:
1. download module
$ mkdir selinux; cd selinux
$ wget https://github.com/FZUG/repo/raw/master/rpms/SELinux/ircd-hybrid/ircd-hybrid.fc https://github.com/FZUG/repo/raw/master/rpms/SELinux/ircd-hybrid/ircd-hybrid.if https://github.com/FZUG/repo/raw/master/rpms/SELinux/ircd-hybrid/ircd-hybrid.te https://github.com/FZUG/repo/raw/master/rpms/SELinux/Makefile

2. build module
$ make

3. install module
$ sudo semodule -i ircd-hybrid.pp.bz2

Actual results:
Compiling targeted ircd-hybrid module
/usr/bin/checkmodule:  loading policy configuration from tmp/ircd-hybrid.tmp
/usr/bin/checkmodule:  policy configuration loaded
/usr/bin/checkmodule:  writing binary representation (version 17) to tmp/ircd-hybrid.mod
Creating targeted ircd-hybrid.pp policy package
rm tmp/ircd-hybrid.mod tmp/ircd-hybrid.mod.fc
make[1]: Leaving directory '/home/mosquito/rpmbuild/selinux'
Compressing ircd-hybrid.pp -> ircd-hybrid.pp.bz2
bzip2 -9 ircd-hybrid.pp

Expected results:
libsepol.type_copy_callback: ircd-hybrid: Expected unreserved_port_t to be an attribute, but it was already declared as a type. (No such file or directory).
libsemanage.semanage_link_sandbox: Link packages failed (No such file or directory).
semodule:  Failed!

Additional info:
Pull request: https://github.com/fedora-selinux/selinux-policy/pull/52

Note You need to log in before you can comment on or make changes to this bug.