Refresh upstream 2.1.0 release
[profile/ivi/libgsignon-glib.git] / docs / reference / html / SignonSecurityContext.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <title>libgsignon-glib Reference Manual: SignonSecurityContext</title>
6 <meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
7 <link rel="home" href="index.html" title="libgsignon-glib Reference Manual">
8 <link rel="up" href="credential-management.html" title="Credential management">
9 <link rel="prev" href="SignonIdentityInfo.html" title="SignonIdentityInfo">
10 <link rel="next" href="SignonAuthSession.html" title="SignonAuthSession">
11 <meta name="generator" content="GTK-Doc V1.20 (XML mode)">
12 <link rel="stylesheet" href="style.css" type="text/css">
13 </head>
14 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15 <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="10"><tr valign="middle">
16 <td width="100%" align="left" class="shortcuts">
17 <a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span> 
18                   <a href="#SignonSecurityContext.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span> 
19                   <a href="#SignonSecurityContext.object-hierarchy" class="shortcut">Object Hierarchy</a></span>
20 </td>
21 <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
22 <td><a accesskey="u" href="credential-management.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
23 <td><a accesskey="p" href="SignonIdentityInfo.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
24 <td><a accesskey="n" href="SignonAuthSession.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
25 </tr></table>
26 <div class="refentry">
27 <a name="SignonSecurityContext"></a><div class="titlepage"></div>
28 <div class="refnamediv"><table width="100%"><tr>
29 <td valign="top">
30 <h2><span class="refentrytitle"><a name="SignonSecurityContext.top_of_page"></a>SignonSecurityContext</span></h2>
31 <p>SignonSecurityContext — representation of a security context.</p>
32 </td>
33 <td class="gallery_image" valign="top" align="right"></td>
34 </tr></table></div>
35 <div class="refsect1">
36 <a name="SignonSecurityContext.functions"></a><h2>Functions</h2>
37 <div class="informaltable"><table width="100%" border="0">
38 <colgroup>
39 <col width="150px" class="functions_return">
40 <col class="functions_name">
41 </colgroup>
42 <tbody>
43 <tr>
44 <td class="function_type">
45 <a class="link" href="SignonSecurityContext.html" title="SignonSecurityContext"><span class="returnvalue">SignonSecurityContext</span></a> *
46 </td>
47 <td class="function_name">
48 <a class="link" href="SignonSecurityContext.html#signon-security-context-new" title="signon_security_context_new ()">signon_security_context_new</a> <span class="c_punctuation">()</span>
49 </td>
50 </tr>
51 <tr>
52 <td class="function_type">
53 <a class="link" href="SignonSecurityContext.html" title="SignonSecurityContext"><span class="returnvalue">SignonSecurityContext</span></a> *
54 </td>
55 <td class="function_name">
56 <a class="link" href="SignonSecurityContext.html#signon-security-context-new-from-values" title="signon_security_context_new_from_values ()">signon_security_context_new_from_values</a> <span class="c_punctuation">()</span>
57 </td>
58 </tr>
59 <tr>
60 <td class="function_type">
61 <span class="returnvalue">void</span>
62 </td>
63 <td class="function_name">
64 <a class="link" href="SignonSecurityContext.html#signon-security-context-free" title="signon_security_context_free ()">signon_security_context_free</a> <span class="c_punctuation">()</span>
65 </td>
66 </tr>
67 <tr>
68 <td class="function_type">
69 <a class="link" href="SignonSecurityContext.html" title="SignonSecurityContext"><span class="returnvalue">SignonSecurityContext</span></a> *
70 </td>
71 <td class="function_name">
72 <a class="link" href="SignonSecurityContext.html#signon-security-context-copy" title="signon_security_context_copy ()">signon_security_context_copy</a> <span class="c_punctuation">()</span>
73 </td>
74 </tr>
75 <tr>
76 <td class="function_type">
77 <span class="returnvalue">void</span>
78 </td>
79 <td class="function_name">
80 <a class="link" href="SignonSecurityContext.html#signon-security-context-set-system-context" title="signon_security_context_set_system_context ()">signon_security_context_set_system_context</a> <span class="c_punctuation">()</span>
81 </td>
82 </tr>
83 <tr>
84 <td class="function_type">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
85 </td>
86 <td class="function_name">
87 <a class="link" href="SignonSecurityContext.html#signon-security-context-get-system-context" title="signon_security_context_get_system_context ()">signon_security_context_get_system_context</a> <span class="c_punctuation">()</span>
88 </td>
89 </tr>
90 <tr>
91 <td class="function_type">
92 <span class="returnvalue">void</span>
93 </td>
94 <td class="function_name">
95 <a class="link" href="SignonSecurityContext.html#signon-security-context-set-application-context" title="signon_security_context_set_application_context ()">signon_security_context_set_application_context</a> <span class="c_punctuation">()</span>
96 </td>
97 </tr>
98 <tr>
99 <td class="function_type">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
100 </td>
101 <td class="function_name">
102 <a class="link" href="SignonSecurityContext.html#signon-security-context-get-application-context" title="signon_security_context_get_application_context ()">signon_security_context_get_application_context</a> <span class="c_punctuation">()</span>
103 </td>
104 </tr>
105 <tr>
106 <td class="function_type">
107 <a href="http://library.gnome.org/devel/glib/unstable/glib-GVariant.html#GVariant"><span class="returnvalue">GVariant</span></a> *
108 </td>
109 <td class="function_name">
110 <a class="link" href="SignonSecurityContext.html#signon-security-context-build-variant" title="signon_security_context_build_variant ()">signon_security_context_build_variant</a> <span class="c_punctuation">()</span>
111 </td>
112 </tr>
113 <tr>
114 <td class="function_type">
115 <a class="link" href="SignonSecurityContext.html" title="SignonSecurityContext"><span class="returnvalue">SignonSecurityContext</span></a> *
116 </td>
117 <td class="function_name">
118 <a class="link" href="SignonSecurityContext.html#signon-security-context-deconstruct-variant" title="signon_security_context_deconstruct_variant ()">signon_security_context_deconstruct_variant</a> <span class="c_punctuation">()</span>
119 </td>
120 </tr>
121 <tr>
122 <td class="function_type">
123 <a href="http://library.gnome.org/devel/glib/unstable/glib-GVariant.html#GVariant"><span class="returnvalue">GVariant</span></a> *
124 </td>
125 <td class="function_name">
126 <a class="link" href="SignonSecurityContext.html#signon-security-context-list-build-variant" title="signon_security_context_list_build_variant ()">signon_security_context_list_build_variant</a> <span class="c_punctuation">()</span>
127 </td>
128 </tr>
129 <tr>
130 <td class="function_type">
131 <a class="link" href="SignonSecurityContext.html#SignonSecurityContextList" title="SignonSecurityContextList"><span class="returnvalue">SignonSecurityContextList</span></a> *
132 </td>
133 <td class="function_name">
134 <a class="link" href="SignonSecurityContext.html#signon-security-context-list-deconstruct-variant" title="signon_security_context_list_deconstruct_variant ()">signon_security_context_list_deconstruct_variant</a> <span class="c_punctuation">()</span>
135 </td>
136 </tr>
137 <tr>
138 <td class="function_type">
139 <a class="link" href="SignonSecurityContext.html#SignonSecurityContextList" title="SignonSecurityContextList"><span class="returnvalue">SignonSecurityContextList</span></a> *
140 </td>
141 <td class="function_name">
142 <a class="link" href="SignonSecurityContext.html#signon-security-context-list-copy" title="signon_security_context_list_copy ()">signon_security_context_list_copy</a> <span class="c_punctuation">()</span>
143 </td>
144 </tr>
145 <tr>
146 <td class="function_type">
147 <span class="returnvalue">void</span>
148 </td>
149 <td class="function_name">
150 <a class="link" href="SignonSecurityContext.html#signon-security-context-list-free" title="signon_security_context_list_free ()">signon_security_context_list_free</a> <span class="c_punctuation">()</span>
151 </td>
152 </tr>
153 </tbody>
154 </table></div>
155 </div>
156 <div class="refsect1">
157 <a name="SignonSecurityContext.other"></a><h2>Types and Values</h2>
158 <div class="informaltable"><table width="100%" border="0">
159 <colgroup>
160 <col width="150px" class="name">
161 <col class="description">
162 </colgroup>
163 <tbody>
164 <tr>
165 <td class="datatype_keyword">struct</td>
166 <td class="function_name"><a class="link" href="SignonSecurityContext.html#SignonSecurityContext-struct" title="struct SignonSecurityContext">SignonSecurityContext</a></td>
167 </tr>
168 <tr>
169 <td class="typedef_keyword">typedef</td>
170 <td class="function_name"><a class="link" href="SignonSecurityContext.html#SignonSecurityContextList" title="SignonSecurityContextList">SignonSecurityContextList</a></td>
171 </tr>
172 </tbody>
173 </table></div>
174 </div>
175 <div class="refsect1">
176 <a name="SignonSecurityContext.object-hierarchy"></a><h2>Object Hierarchy</h2>
177 <pre class="screen">    GBoxed
178     <span class="lineart">╰──</span> SignonSecurityContext
179 </pre>
180 </div>
181 <div class="refsect1">
182 <a name="SignonSecurityContext.description"></a><h2>Description</h2>
183 <p>The <a class="link" href="SignonSecurityContext.html" title="SignonSecurityContext"><span class="type">SignonSecurityContext</span></a> represents a security context within
184 system and also within application. Security contexts are used:</p>
185 <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
186 <li class="listitem"><p>within identities to specify the owner of the identity, and 
187 users of the identity (items on the access control list). See <a class="link" href="SignonIdentity.html" title="SignonIdentity"><span class="type">SignonIdentity</span></a>.</p></li>
188 <li class="listitem"><p>by gSSO daemon to identify the application accessing the gSSO service and
189 to determine if the application is an identity's owner, or is on the identity's access
190 control list, and make access control decisions accordingly.</p></li>
191 </ul></div>
192 <p><a class="link" href="SignonSecurityContext.html" title="SignonSecurityContext"><span class="type">SignonSecurityContext</span></a> contains two strings: a system context and an 
193 application context.</p>
194 <p>System context can be a binary path, SMACK-label, or MSSF token. Specific 
195 interpretation of the system context value is performed by a gSSO extension module.
196 The default gSSO extension expects binary paths.</p>
197 <p>Application context identifies a script or a webpage within an application,
198 and it's used for providing access control to runtime environments (when making an access
199 control decision requires not only a binary identifier, but also information
200 about what the binary is doing). </p>
201 <p>System context and application context can contain a wildcard
202 operator "*" to match 'any', while "" matches 'none' when a default
203 gSSO extension is used. The system context is always evaluated first 
204 and if a match is found, only then the application context is evaluated.
205 Check the documentation of a platform specific extension to determine
206 any particular match rules used by a custom ACM (Access Control Manager).</p>
207 </div>
208 <div class="refsect1">
209 <a name="SignonSecurityContext.functions_details"></a><h2>Functions</h2>
210 <div class="refsect2">
211 <a name="signon-security-context-new"></a><h3>signon_security_context_new ()</h3>
212 <pre class="programlisting"><a class="link" href="SignonSecurityContext.html" title="SignonSecurityContext"><span class="returnvalue">SignonSecurityContext</span></a> *
213 signon_security_context_new ();</pre>
214 <p>Allocates a new security context item.</p>
215 <div class="refsect3">
216 <a name="id-1.3.3.5.7.2.5"></a><h4>Returns</h4>
217 <p> allocated <a class="link" href="SignonSecurityContext.html" title="SignonSecurityContext"><span class="type">SignonSecurityContext</span></a>. </p>
218 <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
219 </div>
220 </div>
221 <hr>
222 <div class="refsect2">
223 <a name="signon-security-context-new-from-values"></a><h3>signon_security_context_new_from_values ()</h3>
224 <pre class="programlisting"><a class="link" href="SignonSecurityContext.html" title="SignonSecurityContext"><span class="returnvalue">SignonSecurityContext</span></a> *
225 signon_security_context_new_from_values
226                                (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *system_context</code></em>,
227                                 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *application_context</code></em>);</pre>
228 <p>Allocates and initializes a new security context item.</p>
229 <div class="refsect3">
230 <a name="id-1.3.3.5.7.3.5"></a><h4>Parameters</h4>
231 <div class="informaltable"><table width="100%" border="0">
232 <colgroup>
233 <col width="150px" class="parameters_name">
234 <col class="parameters_description">
235 <col width="200px" class="parameters_annotations">
236 </colgroup>
237 <tbody>
238 <tr>
239 <td class="parameter_name"><p>system_context</p></td>
240 <td class="parameter_description"><p>system security context (such as SMACK/MSSF label/token).</p></td>
241 <td class="parameter_annotations"> </td>
242 </tr>
243 <tr>
244 <td class="parameter_name"><p>application_context</p></td>
245 <td class="parameter_description"><p>application security context (such as a script name).</p></td>
246 <td class="parameter_annotations"> </td>
247 </tr>
248 </tbody>
249 </table></div>
250 </div>
251 <div class="refsect3">
252 <a name="id-1.3.3.5.7.3.6"></a><h4>Returns</h4>
253 <p> allocated <a class="link" href="SignonSecurityContext.html" title="SignonSecurityContext"><span class="type">SignonSecurityContext</span></a>. </p>
254 <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
255 </div>
256 </div>
257 <hr>
258 <div class="refsect2">
259 <a name="signon-security-context-free"></a><h3>signon_security_context_free ()</h3>
260 <pre class="programlisting"><span class="returnvalue">void</span>
261 signon_security_context_free (<em class="parameter"><code><a class="link" href="SignonSecurityContext.html" title="SignonSecurityContext"><span class="type">SignonSecurityContext</span></a> *ctx</code></em>);</pre>
262 <p>Frees a security context item.</p>
263 <div class="refsect3">
264 <a name="id-1.3.3.5.7.4.5"></a><h4>Parameters</h4>
265 <div class="informaltable"><table width="100%" border="0">
266 <colgroup>
267 <col width="150px" class="parameters_name">
268 <col class="parameters_description">
269 <col width="200px" class="parameters_annotations">
270 </colgroup>
271 <tbody><tr>
272 <td class="parameter_name"><p>ctx</p></td>
273 <td class="parameter_description"><p><a class="link" href="SignonSecurityContext.html" title="SignonSecurityContext"><span class="type">SignonSecurityContext</span></a> to be freed.</p></td>
274 <td class="parameter_annotations"> </td>
275 </tr></tbody>
276 </table></div>
277 </div>
278 </div>
279 <hr>
280 <div class="refsect2">
281 <a name="signon-security-context-copy"></a><h3>signon_security_context_copy ()</h3>
282 <pre class="programlisting"><a class="link" href="SignonSecurityContext.html" title="SignonSecurityContext"><span class="returnvalue">SignonSecurityContext</span></a> *
283 signon_security_context_copy (<em class="parameter"><code>const <a class="link" href="SignonSecurityContext.html" title="SignonSecurityContext"><span class="type">SignonSecurityContext</span></a> *src_ctx</code></em>);</pre>
284 <p>Copy a security context item.</p>
285 <div class="refsect3">
286 <a name="id-1.3.3.5.7.5.5"></a><h4>Parameters</h4>
287 <div class="informaltable"><table width="100%" border="0">
288 <colgroup>
289 <col width="150px" class="parameters_name">
290 <col class="parameters_description">
291 <col width="200px" class="parameters_annotations">
292 </colgroup>
293 <tbody><tr>
294 <td class="parameter_name"><p>src_ctx</p></td>
295 <td class="parameter_description"><p>source security context to copy.</p></td>
296 <td class="parameter_annotations"> </td>
297 </tr></tbody>
298 </table></div>
299 </div>
300 <div class="refsect3">
301 <a name="id-1.3.3.5.7.5.6"></a><h4>Returns</h4>
302 <p> a copy of the <a class="link" href="SignonSecurityContext.html" title="SignonSecurityContext"><span class="type">SignonSecurityContext</span></a> item. </p>
303 <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
304 </div>
305 </div>
306 <hr>
307 <div class="refsect2">
308 <a name="signon-security-context-set-system-context"></a><h3>signon_security_context_set_system_context ()</h3>
309 <pre class="programlisting"><span class="returnvalue">void</span>
310 signon_security_context_set_system_context
311                                (<em class="parameter"><code><a class="link" href="SignonSecurityContext.html" title="SignonSecurityContext"><span class="type">SignonSecurityContext</span></a> *ctx</code></em>,
312                                 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *system_context</code></em>);</pre>
313 <p>Sets the system context part (such as SMACK label or MSSF token) of the
314 <a class="link" href="SignonSecurityContext.html" title="SignonSecurityContext"><span class="type">SignonSecurityContext</span></a>.</p>
315 <div class="refsect3">
316 <a name="id-1.3.3.5.7.6.5"></a><h4>Parameters</h4>
317 <div class="informaltable"><table width="100%" border="0">
318 <colgroup>
319 <col width="150px" class="parameters_name">
320 <col class="parameters_description">
321 <col width="200px" class="parameters_annotations">
322 </colgroup>
323 <tbody>
324 <tr>
325 <td class="parameter_name"><p>ctx</p></td>
326 <td class="parameter_description"><p><a class="link" href="SignonSecurityContext.html" title="SignonSecurityContext"><span class="type">SignonSecurityContext</span></a> item.</p></td>
327 <td class="parameter_annotations"> </td>
328 </tr>
329 <tr>
330 <td class="parameter_name"><p>system_context</p></td>
331 <td class="parameter_description"><p>system security context.</p></td>
332 <td class="parameter_annotations"> </td>
333 </tr>
334 </tbody>
335 </table></div>
336 </div>
337 </div>
338 <hr>
339 <div class="refsect2">
340 <a name="signon-security-context-get-system-context"></a><h3>signon_security_context_get_system_context ()</h3>
341 <pre class="programlisting">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
342 signon_security_context_get_system_context
343                                (<em class="parameter"><code>const <a class="link" href="SignonSecurityContext.html" title="SignonSecurityContext"><span class="type">SignonSecurityContext</span></a> *ctx</code></em>);</pre>
344 <p>Get the system context part (such as SMACK label or MSSF token) of the
345 <a class="link" href="SignonSecurityContext.html" title="SignonSecurityContext"><span class="type">SignonSecurityContext</span></a>.</p>
346 <div class="refsect3">
347 <a name="id-1.3.3.5.7.7.5"></a><h4>Parameters</h4>
348 <div class="informaltable"><table width="100%" border="0">
349 <colgroup>
350 <col width="150px" class="parameters_name">
351 <col class="parameters_description">
352 <col width="200px" class="parameters_annotations">
353 </colgroup>
354 <tbody><tr>
355 <td class="parameter_name"><p>ctx</p></td>
356 <td class="parameter_description"><p><a class="link" href="SignonSecurityContext.html" title="SignonSecurityContext"><span class="type">SignonSecurityContext</span></a> item.</p></td>
357 <td class="parameter_annotations"> </td>
358 </tr></tbody>
359 </table></div>
360 </div>
361 <div class="refsect3">
362 <a name="id-1.3.3.5.7.7.6"></a><h4>Returns</h4>
363 <p> system context. </p>
364 <p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
365 </div>
366 </div>
367 <hr>
368 <div class="refsect2">
369 <a name="signon-security-context-set-application-context"></a><h3>signon_security_context_set_application_context ()</h3>
370 <pre class="programlisting"><span class="returnvalue">void</span>
371 signon_security_context_set_application_context
372                                (<em class="parameter"><code><a class="link" href="SignonSecurityContext.html" title="SignonSecurityContext"><span class="type">SignonSecurityContext</span></a> *ctx</code></em>,
373                                 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *application_context</code></em>);</pre>
374 <p>Sets the application context part (such as a script name or a web page) of
375 the <a class="link" href="SignonSecurityContext.html" title="SignonSecurityContext"><span class="type">SignonSecurityContext</span></a>.</p>
376 <div class="refsect3">
377 <a name="id-1.3.3.5.7.8.5"></a><h4>Parameters</h4>
378 <div class="informaltable"><table width="100%" border="0">
379 <colgroup>
380 <col width="150px" class="parameters_name">
381 <col class="parameters_description">
382 <col width="200px" class="parameters_annotations">
383 </colgroup>
384 <tbody>
385 <tr>
386 <td class="parameter_name"><p>ctx</p></td>
387 <td class="parameter_description"><p><a class="link" href="SignonSecurityContext.html" title="SignonSecurityContext"><span class="type">SignonSecurityContext</span></a> item.</p></td>
388 <td class="parameter_annotations"> </td>
389 </tr>
390 <tr>
391 <td class="parameter_name"><p>application_context</p></td>
392 <td class="parameter_description"><p>application security context.</p></td>
393 <td class="parameter_annotations"> </td>
394 </tr>
395 </tbody>
396 </table></div>
397 </div>
398 </div>
399 <hr>
400 <div class="refsect2">
401 <a name="signon-security-context-get-application-context"></a><h3>signon_security_context_get_application_context ()</h3>
402 <pre class="programlisting">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
403 signon_security_context_get_application_context
404                                (<em class="parameter"><code>const <a class="link" href="SignonSecurityContext.html" title="SignonSecurityContext"><span class="type">SignonSecurityContext</span></a> *ctx</code></em>);</pre>
405 <p>Get the application context part (such as script name or a web page) of
406 the <a class="link" href="SignonSecurityContext.html" title="SignonSecurityContext"><span class="type">SignonSecurityContext</span></a>.</p>
407 <div class="refsect3">
408 <a name="id-1.3.3.5.7.9.5"></a><h4>Parameters</h4>
409 <div class="informaltable"><table width="100%" border="0">
410 <colgroup>
411 <col width="150px" class="parameters_name">
412 <col class="parameters_description">
413 <col width="200px" class="parameters_annotations">
414 </colgroup>
415 <tbody><tr>
416 <td class="parameter_name"><p>ctx</p></td>
417 <td class="parameter_description"><p><a class="link" href="SignonSecurityContext.html" title="SignonSecurityContext"><span class="type">SignonSecurityContext</span></a> item.</p></td>
418 <td class="parameter_annotations"> </td>
419 </tr></tbody>
420 </table></div>
421 </div>
422 <div class="refsect3">
423 <a name="id-1.3.3.5.7.9.6"></a><h4>Returns</h4>
424 <p> application context. </p>
425 <p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
426 </div>
427 </div>
428 <hr>
429 <div class="refsect2">
430 <a name="signon-security-context-build-variant"></a><h3>signon_security_context_build_variant ()</h3>
431 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-GVariant.html#GVariant"><span class="returnvalue">GVariant</span></a> *
432 signon_security_context_build_variant (<em class="parameter"><code>const <a class="link" href="SignonSecurityContext.html" title="SignonSecurityContext"><span class="type">SignonSecurityContext</span></a> *ctx</code></em>);</pre>
433 <p>Build a GVariant of type "(ss)" from a <a class="link" href="SignonSecurityContext.html" title="SignonSecurityContext"><span class="type">SignonSecurityContext</span></a> item.</p>
434 <div class="refsect3">
435 <a name="id-1.3.3.5.7.10.5"></a><h4>Parameters</h4>
436 <div class="informaltable"><table width="100%" border="0">
437 <colgroup>
438 <col width="150px" class="parameters_name">
439 <col class="parameters_description">
440 <col width="200px" class="parameters_annotations">
441 </colgroup>
442 <tbody><tr>
443 <td class="parameter_name"><p>ctx</p></td>
444 <td class="parameter_description"><p><a class="link" href="SignonSecurityContext.html" title="SignonSecurityContext"><span class="type">SignonSecurityContext</span></a> item.</p></td>
445 <td class="parameter_annotations"> </td>
446 </tr></tbody>
447 </table></div>
448 </div>
449 <div class="refsect3">
450 <a name="id-1.3.3.5.7.10.6"></a><h4>Returns</h4>
451 <p> GVariant construct of a <a class="link" href="SignonSecurityContext.html" title="SignonSecurityContext"><span class="type">SignonSecurityContext</span></a>. </p>
452 <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
453 </div>
454 </div>
455 <hr>
456 <div class="refsect2">
457 <a name="signon-security-context-deconstruct-variant"></a><h3>signon_security_context_deconstruct_variant ()</h3>
458 <pre class="programlisting"><a class="link" href="SignonSecurityContext.html" title="SignonSecurityContext"><span class="returnvalue">SignonSecurityContext</span></a> *
459 signon_security_context_deconstruct_variant
460                                (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-GVariant.html#GVariant"><span class="type">GVariant</span></a> *variant</code></em>);</pre>
461 <p>Builds a <a class="link" href="SignonSecurityContext.html" title="SignonSecurityContext"><span class="type">SignonSecurityContext</span></a> item from a GVariant of type "(ss)".</p>
462 <div class="refsect3">
463 <a name="id-1.3.3.5.7.11.5"></a><h4>Parameters</h4>
464 <div class="informaltable"><table width="100%" border="0">
465 <colgroup>
466 <col width="150px" class="parameters_name">
467 <col class="parameters_description">
468 <col width="200px" class="parameters_annotations">
469 </colgroup>
470 <tbody><tr>
471 <td class="parameter_name"><p>variant</p></td>
472 <td class="parameter_description"><p>GVariant item with a <a class="link" href="SignonSecurityContext.html" title="SignonSecurityContext"><span class="type">SignonSecurityContext</span></a> construct.</p></td>
473 <td class="parameter_annotations"> </td>
474 </tr></tbody>
475 </table></div>
476 </div>
477 <div class="refsect3">
478 <a name="id-1.3.3.5.7.11.6"></a><h4>Returns</h4>
479 <p> <a class="link" href="SignonSecurityContext.html" title="SignonSecurityContext"><span class="type">SignonSecurityContext</span></a> item. </p>
480 <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
481 </div>
482 </div>
483 <hr>
484 <div class="refsect2">
485 <a name="signon-security-context-list-build-variant"></a><h3>signon_security_context_list_build_variant ()</h3>
486 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-GVariant.html#GVariant"><span class="returnvalue">GVariant</span></a> *
487 signon_security_context_list_build_variant
488                                (<em class="parameter"><code>const <a class="link" href="SignonSecurityContext.html#SignonSecurityContextList" title="SignonSecurityContextList"><span class="type">SignonSecurityContextList</span></a> *list</code></em>);</pre>
489 <p>Builds a GVariant of type "a(ss)" from a GList of <a class="link" href="SignonSecurityContext.html" title="SignonSecurityContext"><span class="type">SignonSecurityContext</span></a>
490 items.</p>
491 <div class="refsect3">
492 <a name="id-1.3.3.5.7.12.5"></a><h4>Parameters</h4>
493 <div class="informaltable"><table width="100%" border="0">
494 <colgroup>
495 <col width="150px" class="parameters_name">
496 <col class="parameters_description">
497 <col width="200px" class="parameters_annotations">
498 </colgroup>
499 <tbody><tr>
500 <td class="parameter_name"><p>list</p></td>
501 <td class="parameter_description"><p><a class="link" href="SignonSecurityContext.html#SignonSecurityContextList" title="SignonSecurityContextList"><span class="type">SignonSecurityContextList</span></a> item.</p></td>
502 <td class="parameter_annotations"> </td>
503 </tr></tbody>
504 </table></div>
505 </div>
506 <div class="refsect3">
507 <a name="id-1.3.3.5.7.12.6"></a><h4>Returns</h4>
508 <p> GVariant construct of a <a class="link" href="SignonSecurityContext.html#SignonSecurityContextList" title="SignonSecurityContextList"><span class="type">SignonSecurityContextList</span></a>. </p>
509 <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
510 </div>
511 </div>
512 <hr>
513 <div class="refsect2">
514 <a name="signon-security-context-list-deconstruct-variant"></a><h3>signon_security_context_list_deconstruct_variant ()</h3>
515 <pre class="programlisting"><a class="link" href="SignonSecurityContext.html#SignonSecurityContextList" title="SignonSecurityContextList"><span class="returnvalue">SignonSecurityContextList</span></a> *
516 signon_security_context_list_deconstruct_variant
517                                (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-GVariant.html#GVariant"><span class="type">GVariant</span></a> *variant</code></em>);</pre>
518 <p>Builds a GList of <a class="link" href="SignonSecurityContext.html" title="SignonSecurityContext"><span class="type">SignonSecurityContext</span></a> items from a GVariant of type
519 "a(ss)".</p>
520 <div class="refsect3">
521 <a name="id-1.3.3.5.7.13.5"></a><h4>Parameters</h4>
522 <div class="informaltable"><table width="100%" border="0">
523 <colgroup>
524 <col width="150px" class="parameters_name">
525 <col class="parameters_description">
526 <col width="200px" class="parameters_annotations">
527 </colgroup>
528 <tbody><tr>
529 <td class="parameter_name"><p>variant</p></td>
530 <td class="parameter_description"><p>GVariant item with a list of security context tuples.</p></td>
531 <td class="parameter_annotations"> </td>
532 </tr></tbody>
533 </table></div>
534 </div>
535 <div class="refsect3">
536 <a name="id-1.3.3.5.7.13.6"></a><h4>Returns</h4>
537 <p> <a class="link" href="SignonSecurityContext.html#SignonSecurityContextList" title="SignonSecurityContextList"><span class="type">SignonSecurityContextList</span></a> item. </p>
538 <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
539 </div>
540 </div>
541 <hr>
542 <div class="refsect2">
543 <a name="signon-security-context-list-copy"></a><h3>signon_security_context_list_copy ()</h3>
544 <pre class="programlisting"><a class="link" href="SignonSecurityContext.html#SignonSecurityContextList" title="SignonSecurityContextList"><span class="returnvalue">SignonSecurityContextList</span></a> *
545 signon_security_context_list_copy (<em class="parameter"><code>const <a class="link" href="SignonSecurityContext.html#SignonSecurityContextList" title="SignonSecurityContextList"><span class="type">SignonSecurityContextList</span></a> *src_list</code></em>);</pre>
546 <p>Copies a GList of <a class="link" href="SignonSecurityContext.html" title="SignonSecurityContext"><span class="type">SignonSecurityContext</span></a> items.</p>
547 <div class="refsect3">
548 <a name="id-1.3.3.5.7.14.5"></a><h4>Parameters</h4>
549 <div class="informaltable"><table width="100%" border="0">
550 <colgroup>
551 <col width="150px" class="parameters_name">
552 <col class="parameters_description">
553 <col width="200px" class="parameters_annotations">
554 </colgroup>
555 <tbody><tr>
556 <td class="parameter_name"><p>src_list</p></td>
557 <td class="parameter_description"><p>source <a class="link" href="SignonSecurityContext.html#SignonSecurityContextList" title="SignonSecurityContextList"><span class="type">SignonSecurityContextList</span></a>.</p></td>
558 <td class="parameter_annotations"> </td>
559 </tr></tbody>
560 </table></div>
561 </div>
562 <div class="refsect3">
563 <a name="id-1.3.3.5.7.14.6"></a><h4>Returns</h4>
564 <p> <a class="link" href="SignonSecurityContext.html#SignonSecurityContextList" title="SignonSecurityContextList"><span class="type">SignonSecurityContextList</span></a> item. </p>
565 <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
566 </div>
567 </div>
568 <hr>
569 <div class="refsect2">
570 <a name="signon-security-context-list-free"></a><h3>signon_security_context_list_free ()</h3>
571 <pre class="programlisting"><span class="returnvalue">void</span>
572 signon_security_context_list_free (<em class="parameter"><code><a class="link" href="SignonSecurityContext.html#SignonSecurityContextList" title="SignonSecurityContextList"><span class="type">SignonSecurityContextList</span></a> *seclist</code></em>);</pre>
573 <p>Frees all items and the GList of <a class="link" href="SignonSecurityContext.html" title="SignonSecurityContext"><span class="type">SignonSecurityContext</span></a>.</p>
574 <div class="refsect3">
575 <a name="id-1.3.3.5.7.15.5"></a><h4>Parameters</h4>
576 <div class="informaltable"><table width="100%" border="0">
577 <colgroup>
578 <col width="150px" class="parameters_name">
579 <col class="parameters_description">
580 <col width="200px" class="parameters_annotations">
581 </colgroup>
582 <tbody><tr>
583 <td class="parameter_name"><p>seclist</p></td>
584 <td class="parameter_description"><p> <a class="link" href="SignonSecurityContext.html#SignonSecurityContextList" title="SignonSecurityContextList"><span class="type">SignonSecurityContextList</span></a> item. </p></td>
585 <td class="parameter_annotations"><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></td>
586 </tr></tbody>
587 </table></div>
588 </div>
589 </div>
590 </div>
591 <div class="refsect1">
592 <a name="SignonSecurityContext.other_details"></a><h2>Types and Values</h2>
593 <div class="refsect2">
594 <a name="SignonSecurityContext-struct"></a><h3>struct SignonSecurityContext</h3>
595 <pre class="programlisting">struct SignonSecurityContext {
596     gchar *sys_ctx;
597     gchar *app_ctx;
598 };
599 </pre>
600 <p>Security context descriptor used for access control checks.</p>
601 <div class="refsect3">
602 <a name="id-1.3.3.5.8.2.5"></a><h4>Members</h4>
603 <div class="informaltable"><table width="100%" border="0">
604 <colgroup>
605 <col width="300px" class="struct_members_name">
606 <col class="struct_members_description">
607 <col width="200px" class="struct_members_annotations">
608 </colgroup>
609 <tbody>
610 <tr>
611 <td class="struct_member_name"><p><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *<em class="structfield"><code><a name="SignonSecurityContext-struct.sys-ctx"></a>sys_ctx</code></em>;</p></td>
612 <td class="struct_member_description"><p>system context, such as SMACK-label, MSSF token or just a
613 binary path.</p></td>
614 <td class="struct_member_annotations"> </td>
615 </tr>
616 <tr>
617 <td class="struct_member_name"><p><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *<em class="structfield"><code><a name="SignonSecurityContext-struct.app-ctx"></a>app_ctx</code></em>;</p></td>
618 <td class="struct_member_description"><p>application context, such as a script or a web page.</p></td>
619 <td class="struct_member_annotations"> </td>
620 </tr>
621 </tbody>
622 </table></div>
623 </div>
624 </div>
625 <hr>
626 <div class="refsect2">
627 <a name="SignonSecurityContextList"></a><h3>SignonSecurityContextList</h3>
628 <pre class="programlisting">typedef GList SignonSecurityContextList;
629 </pre>
630 <p>GList of <a class="link" href="SignonSecurityContext.html" title="SignonSecurityContext"><span class="type">SignonSecurityContext</span></a> items.</p>
631 </div>
632 </div>
633 </div>
634 <div class="footer">
635 <hr>
636           Generated by GTK-Doc V1.20</div>
637 </body>
638 </html>