2008/1/30, Daniel J Walsh <<a href="mailto:dwalsh@redhat.com">dwalsh@redhat.com</a>>:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
-----BEGIN PGP SIGNED MESSAGE-----<br>Hash: SHA1<br><br>Shintaro Fujiwara wrote:<br>> Hi, please tell me modifying port by semanage.<br>><br>> I could add and delete port ok, but don't know how to modify it.<br>
><br>> I read man but -m example was not there.<br>><br>> Thanks in advance.<br>><br>><br>><br>> ------------------------------------------------------------------------<br>><br>> --<br>> fedora-selinux-list mailing list<br>
> <a href="mailto:fedora-selinux-list@redhat.com">fedora-selinux-list@redhat.com</a><br>> <a href="https://www.redhat.com/mailman/listinfo/fedora-selinux-list">https://www.redhat.com/mailman/listinfo/fedora-selinux-list</a><br>
Ports are defined by the number and the type  (udp/tcp)<br><br>So<br><br><br># /usr/sbin/semanage  port -a -t http_port_t -p udp 9999<br># /usr/sbin/semanage  port -m -t ntp_port_t -p udp 9999<br># /usr/sbin/semanage  port -m -t ntp_port_t -p tcp 9999<br>
/usr/sbin/semanage: Port tcp/9999 is not defined<br><br>You can change the type of a port but not the protocol.  You would have<br>to delete and add.  You can also NOT change the default ports that come<br>with policy, only ones that you add.</blockquote>
<div><br>I didn't know that much.<br>Thank you very much.<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.8 (GNU/Linux)<br>Comment: Using GnuPG with Fedora - <a href="http://enigmail.mozdev.org">http://enigmail.mozdev.org</a><br><br>iEYEARECAAYFAkegjjIACgkQrlYvE4MpobMCogCffC9/7z4P+ra7D0ePWWM5j7hX<br>gIgAn15FEVz94RMaTEjWy9+stdhkMwEs<br>
=XwtQ<br>-----END PGP SIGNATURE-----<br></blockquote></div><br><br clear="all"><br>-- <br><a href="http://intrajp.no-ip.com/">http://intrajp.no-ip.com/</a> Home Page