next up previous contents
Next: 7.2 deny Up: 7 Access control to Previous: 7 Access control to   Contents


7.1 allow

  1. Syntax
    1. allow filename $\mid$ label [r],[w],[x],[s],[o],[t],[a],[c],[e],[dx];
  2. Meaning
    1. Allow access to file.
  3. Specifying filename

  4. Meaning of permissions.
  5. Example
    {
    domain httpd_t;
    ...
    allow /var/www/** r,s;
    ....
    httpd_t is allowed to read all files and directories under /var/www and its children.
  6. Detailed configuration support
    In addition to a s,r,x,w permissions, new permissions o,t,a,c,e can be used. Permission w is divided into those permissions.
  7. Domain execute permission
    dx permission means Domain Execute. If domain is defined for the program, program is executed in new domain.
    Example:
            {
              program /usr/sbin/httpd;
              allow /var/www/cgi-bin/test.cgi r,s,dx;
            }
            {
              program /var/www/cgi-bin/test.cgi;
              allow ............
            }
    
    In this case, /usr/sbin/httpd have dx permission to test.cgi. Domain is defined below. So, test.cgi runs as different domain.
  8. Limitation about home-directories
    Deny statement for individual home directory does not work. For example,
    deny /home/ynakam/public_html;
    
    does not work.


next up previous contents
Next: 7.2 deny Up: 7 Access control to Previous: 7 Access control to   Contents
2006-07-05