Debian Codegraph @

xpa/doc/acl.html

raw symbols SCIP
1 <!-- =defdoc xpaacl xpaacl n -->
2 <HTML>
3 <HEAD>
4 <TITLE>XPA Access Control</TITLE>
5 </HEAD>
6 <BODY>
7
8 <!-- =section xpaacl NAME -->
9 <H2><A NAME="xpaacl">XPAAcl: Access Control for XPA Messaging</A></H2>
10
11 <!-- =section xpaacl SYNOPSIS -->
12 <H2>Summary</H2>
13 <P>
14 XPA supports host-based access control for each XPA access point. You
15 can enable/disable access control using the XPA_ACL environment
16 variable. You can specify access to specific XPA access points for
17 specific machines using the XPA_DEFACL and XPA_ACLFILE environment
18 variables. By default, an XPA access point is accessible only to
19 processes running on the same machine (same as X Windows).
20
21 <!-- =section xpaacl DESCRIPTION -->
22 <H2>Description</H2>
23 <P>
24 When INET sockets are in use (the default, as specified by the
25 <EM>XPA_METHOD</EM> environment variable), XPA supports a host-based
26 access control mechanism for individual access points. This mean that
27 access can be specified for get, set, or info operations for each
28 access point on a machine by machine basis. For LOCAL sockets, access
29 is restricted (by definition) to the host machine.
30
31 <P>
32 XPA access control is enabled by default, but can be turned off by
33 setting the <EM>XPA_ACL</EM> environment variable to <EM>false</EM>.
34 In this case, any process can access any XPA server.
35
36 <P>
37 Assuming that access control is turned on, the ACL for an individual
38 XPA access point is set up when that access point is registered
39 (although it can be changed later on; see below). This can be done in
40 one of two ways:
41
42 Firstly, the <EM>XPA_ACLFILE</EM> environment variable can defined to
43 point to a file of access controls for individual access points. The format
44 of this file is:
45 <pre>
46 class:name ip acl
47 </pre>
48 The first argument is a template that specifies the class:name of the
49 access point covered by this ACL. See
50 <A HREF="./template.html">XPA Access Points and Templates</A>
51 for more information about xpa templates.
52
53 <P>
54 The second argument is the IP address (in human-readable format) of
55 the machine which is being given access. This argument can be
56 <EM>*</EM> to match all IP addresses. It also can be <EM>$host</EM>
57 to match the IP address of the current host.
58
59 <P>
60 The third argument is a string combination of <EM>s</EM>, <EM>g</EM>,
61 or <EM>i</EM> to allow <EM>xpaset</EM>, <EM>xpaget</EM>, or
62 <EM>xpainfo</EM> access respectively. The ACL argument can be
63 <EM>+</EM> to give <EM>sgi</EM> access or it can be <EM>-</EM> to turn
64 off all access.
65
66 <P>
67 For example,
68 <PRE>
69 *:xpa1 somehost sg
70 *:xpa1 myhost +
71 * * g
72 </PRE>
73 will allow processes on the machine somehost to make xpaget and xpaset calls,
74 allow processes on myhost to make any call, and allow all other hosts to
75 make xpaget (but not xpaset) calls.
76
77 Secondly, if the <EM>XPA_ACLFILE</EM> does not exist, then a single
78 default value for all access points can be specified using the
79 <EM>XPA_DEFACL</EM> environment variable. The default value for this
80 variable is:
81 <PRE>
82 #define XPA_DEFACL "*:* $host +"
83 </PRE>
84 meaning that all access points are fully accessible to all processes
85 on the current host. Thus, in the absence of any ACL environment variables,
86 processes on the current host have full access to all access points
87 created on that host. This parallels the X11 xhost mechanism.
88
89 <P>
90 Access to an individual XPA access point can be changed using the -acl
91 parameter for that access point. For example:
92 <PRE>
93 xpaset -p xpa1 -acl "somehost -"
94 </PRE>
95 will turn off all access control for somehost to the xpa1 access point, while:
96 <PRE>
97 xpaset -p XPA:xpa1 -acl "beberly gs"
98 </PRE>
99 will give beberly xpaget and xpaset access to the access point whose
100 class is XPA and whose name is xpa1.
101 <P>
102 Similarly, the current ACL for a given access point can be retrieved using:
103 <PRE>
104 xpaget xpa1 -acl
105 </PRE>
106 Of course, you must have xpaget access to this XPA access point to
107 retrieve its ACL.
108
109 <P>
110 Note that the XPA access points registered in the <EM>xpans</EM>
111 program also behave according to the ACL rules. That is, you cannot
112 use xpaget to view the access points registered with xpans unless
113 you have the proper ACL.
114
115 <P>
116 Note also when a client request is made to an XPA server, the access
117 control is checked when the initial connection is established. This
118 access in effect at this time remains in effect so long as the client
119 connection is maintained, regardless of whether the access fro that
120 XPA is changed later on.
121
122 <P>
123 We recognize that host-based access control is only relatively secure
124 and will consider more stringent security (e.g., private key) in the
125 future if the community requires such support.
126
127 <!-- =section xpaacl SEE ALSO -->
128 <!-- =text See xpa(n) for a list of XPA help pages -->
129 <!-- =stop -->
130
131 <P>
132 <A HREF="./help.html">Go to XPA Help Index</A>
133
134 <H5>Last updated: September 10, 2003</H5>
135
136 </BODY>
137 </HTML>