tim.tm_lin | e5976c1 | 2014-05-16 14:41:26 +0800 | [diff] [blame] | 1 | ##################################### |
| 2 | # qmux_socket(clientdomain) |
| 3 | # Allow client domain to connecto and send |
| 4 | # via a local socket to the qmux domain. |
| 5 | # Also allow the client domain to remove |
| 6 | # its own socket. |
| 7 | define(`qmux_socket', ` |
| 8 | type $1_qmuxd_socket, file_type; |
| 9 | file_type_auto_trans($1, qmuxd_socket, $1_qmuxd_socket) |
| 10 | allow $1 qmuxd_socket:dir remove_name; |
| 11 | unix_socket_connect($1, qmuxd, qmuxd) |
| 12 | allow qmuxd $1_qmuxd_socket:sock_file { getattr unlink }; |
| 13 | ') |