next up previous contents
Next: 8.10 Configuring access control Up: 8 Specification of simplified Previous: 8.8 Configuring access control   Contents

Subsections

8.9 Configuring access control to network

8.9.1 allownet

  1. syntax
    1. allownet;
    2. allownet -connect;
    3. allownet -raw;
    4. allownet -netlink;
    5. allownet -wellknown;
    6. allownet (-tcp$\mid$-udp) -port port number;
    7. allownet (-tcp$\mid$-udp) -allport;
  2. meaning
    They are related to usage of network.
    1. Allow to use tcp/ip network. This includes usage of tcp, udp socket, ports more than 1024. Note that to initiate network connection is not allowed. To allow network connection, use allownet -connect. And usage of well-known ports is not allowed.
    2. Allow to connect network. This means to use $name\_connect$ and $connect$ permission in SELinux.
    3. Allow to use raw socket. Usage of raw socket is necessary for such as ICMP.
    4. Allow to use netlink socket(This is used to communicate with kernel).
    5. This permission is obsolete now. Do nothing.Exists only for compatibility.
    6. When you want to use well-known port, you have to reserve port by this.
      • Ex)
        {
        domain httpd_t;
        allownet -tcp 80;
        ...
        httpd_t has reserved tcp 80 port, and can use it.

    7. Allow to use all unreserved well-known ports.
  3. Constraints
    These can not be canceled once declared. Be careful using in global domain. If you use them in global domain, all domain has specified access right and can not be denied in individual domain.


next up previous contents
Next: 8.10 Configuring access control Up: 8 Specification of simplified Previous: 8.8 Configuring access control   Contents
2005-07-19