~ubuntu-branches/ubuntu/maverick/schroot/maverick-updates

« back to all changes in this revision

Viewing changes to doc/sbuild/html/sbuild-chroot_8h-source.html

  • Committer: Bazaar Package Importer
  • Author(s): Roger Leigh
  • Date: 2008-01-20 22:51:04 UTC
  • mfrom: (1.1.15 upstream)
  • Revision ID: james.westby@ubuntu.com-20080120225104-3zhs8gk9byqigato
Tags: 1.1.6-1
* New upstream development release.
* Acknowledge NMU.  Thanks to Lucas Nussbaum for fixing the Boost
  library names following another incompatible change in Boost
  (Closes: #439215).
* debian/control: Suggest lvm2 instead of lvm-common (Closes: #452263).
* debian/copyright:
  - Update with new GIT source code repository location.
  - Update licence to GPLv3.
* debian/schroot.init: Update licence to GPLv3.
* bin/schroot/setup/20network, bin/schroot/setup/30passwd: For files to
  copy, compare file device, inode and contents to avoid copying
  identical files (Closes: #428808).
* If unknown keys are present in the configuration file, print a warning
  message to alert the user (Closes: #459658).
* The filesystems to mount in the chroot may be customised by the system
  administrator through the use of an fstab file on a per-chroot basis,
  and a new helper utility, schroot-mount (Closes: #395062, #427047).
  Thanks for your patience while we took the time to implement this the
  right way.
* Update Vietnamese translation (Closes: #461531).  Thanks to Clytie
  Siddall.
* debian/schroot.preinst: Add rm_conffile function to remove
  /etc/schroot/setup.d/20network and /etc/schroot/setup.d/30passwd for
  versions prior to this.  These are replaced by
  /etc/schroot/setup.d/20copyfiles.
* debian/schroot.NEWS: Document conffile changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
<link href="doxygen.css" rel="stylesheet" type="text/css">
5
5
<link href="tabs.css" rel="stylesheet" type="text/css">
6
6
</head><body>
7
 
<!-- Generated by Doxygen 1.5.2 -->
 
7
<!-- Generated by Doxygen 1.5.4 -->
8
8
<div class="tabs">
9
9
  <ul>
10
10
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
15
15
    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
16
16
  </ul>
17
17
</div>
18
 
<div class="tabs">
19
 
  <ul>
20
 
    <li><a href="files.html"><span>File&nbsp;List</span></a></li>
21
 
    <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
22
 
  </ul>
23
 
</div>
24
18
<div class="nav">
25
 
<a class="el" href="dir_36aac8d1c7bf732cea07a0b0393c7c3f.html">sbuild</a></div>
26
 
<h1>sbuild-chroot.h</h1><a href="sbuild-chroot_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* Copyright © 2005-2007  Roger Leigh &lt;rleigh@debian.org&gt;</span>
 
19
<a class="el" href="dir_69e915d0cf43b57ac9a6fadbc8187729.html">sbuild</a></div>
 
20
<h1>sbuild-chroot.h</h1><a href="sbuild-chroot_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* Copyright © 2005-2008  Roger Leigh &lt;rleigh@debian.org&gt;</span>
27
21
<a name="l00002"></a>00002 <span class="comment"> *</span>
28
 
<a name="l00003"></a>00003 <span class="comment"> * schroot is free software; you can redistribute it and/or modify it</span>
 
22
<a name="l00003"></a>00003 <span class="comment"> * schroot is free software: you can redistribute it and/or modify it</span>
29
23
<a name="l00004"></a>00004 <span class="comment"> * under the terms of the GNU General Public License as published by</span>
30
 
<a name="l00005"></a>00005 <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span>
 
24
<a name="l00005"></a>00005 <span class="comment"> * the Free Software Foundation, either version 3 of the License, or</span>
31
25
<a name="l00006"></a>00006 <span class="comment"> * (at your option) any later version.</span>
32
26
<a name="l00007"></a>00007 <span class="comment"> *</span>
33
27
<a name="l00008"></a>00008 <span class="comment"> * schroot is distributed in the hope that it will be useful, but</span>
36
30
<a name="l00011"></a>00011 <span class="comment"> * General Public License for more details.</span>
37
31
<a name="l00012"></a>00012 <span class="comment"> *</span>
38
32
<a name="l00013"></a>00013 <span class="comment"> * You should have received a copy of the GNU General Public License</span>
39
 
<a name="l00014"></a>00014 <span class="comment"> * along with this program; if not, write to the Free Software</span>
40
 
<a name="l00015"></a>00015 <span class="comment"> * Foundation, Inc., 59 Temple Place, Suite 330, Boston,</span>
41
 
<a name="l00016"></a>00016 <span class="comment"> * MA  02111-1307  USA</span>
42
 
<a name="l00017"></a>00017 <span class="comment"> *</span>
43
 
<a name="l00018"></a>00018 <span class="comment"> *********************************************************************/</span>
44
 
<a name="l00019"></a>00019 
45
 
<a name="l00020"></a>00020 <span class="preprocessor">#ifndef SBUILD_CHROOT_H</span>
46
 
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor">#define SBUILD_CHROOT_H</span>
47
 
<a name="l00022"></a>00022 <span class="preprocessor"></span>
48
 
<a name="l00023"></a>00023 <span class="preprocessor">#include &lt;<a class="code" href="sbuild-custom-error_8h.html">sbuild/sbuild-custom-error.h</a>&gt;</span>
49
 
<a name="l00024"></a>00024 <span class="preprocessor">#include &lt;<a class="code" href="sbuild-environment_8h.html">sbuild/sbuild-environment.h</a>&gt;</span>
50
 
<a name="l00025"></a>00025 <span class="preprocessor">#include &lt;<a class="code" href="sbuild-format-detail_8h.html">sbuild/sbuild-format-detail.h</a>&gt;</span>
51
 
<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;<a class="code" href="sbuild-keyfile_8h.html">sbuild/sbuild-keyfile.h</a>&gt;</span>
52
 
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;<a class="code" href="sbuild-personality_8h.html">sbuild/sbuild-personality.h</a>&gt;</span>
53
 
<a name="l00028"></a>00028 <span class="preprocessor">#include &lt;<a class="code" href="sbuild-regex_8h.html">sbuild/sbuild-regex.h</a>&gt;</span>
54
 
<a name="l00029"></a>00029 <span class="preprocessor">#include &lt;<a class="code" href="sbuild-tr1types_8h.html" title="TR1 type substitution.">sbuild/sbuild-tr1types.h</a>&gt;</span>
55
 
<a name="l00030"></a>00030 
56
 
<a name="l00031"></a>00031 <span class="preprocessor">#include &lt;ostream&gt;</span>
57
 
<a name="l00032"></a>00032 <span class="preprocessor">#include &lt;string&gt;</span>
58
 
<a name="l00033"></a>00033 
59
 
<a name="l00034"></a>00034 <span class="keyword">namespace </span>sbuild
60
 
<a name="l00035"></a>00035 {
61
 
<a name="l00036"></a>00036 
62
 
<a name="l00044"></a><a class="code" href="classsbuild_1_1chroot.html">00044</a>   <span class="keyword">class </span><a class="code" href="classsbuild_1_1chroot.html" title="Common chroot data.">chroot</a>
63
 
<a name="l00045"></a>00045   {
64
 
<a name="l00046"></a>00046   <span class="keyword">public</span>:
65
 
<a name="l00048"></a><a class="code" href="classsbuild_1_1chroot.html#9c7517b01054dee9285cd48cf42073e9">00048</a>     <span class="keyword">enum</span> <a class="code" href="classsbuild_1_1chroot.html#9c7517b01054dee9285cd48cf42073e9" title="Type of setup to perform.">setup_type</a>
66
 
<a name="l00049"></a>00049       {
67
 
<a name="l00050"></a><a class="code" href="classsbuild_1_1chroot.html#9c7517b01054dee9285cd48cf42073e9de9dab11fde09d3ba495265be1b5ccf4">00050</a>         <a class="code" href="classsbuild_1_1chroot.html#9c7517b01054dee9285cd48cf42073e9de9dab11fde09d3ba495265be1b5ccf4" title="Activate a chroot.">SETUP_START</a>,   
68
 
<a name="l00051"></a><a class="code" href="classsbuild_1_1chroot.html#9c7517b01054dee9285cd48cf42073e90da53964e1f36ce8d7b6705d6de32564">00051</a>         <a class="code" href="classsbuild_1_1chroot.html#9c7517b01054dee9285cd48cf42073e90da53964e1f36ce8d7b6705d6de32564" title="Reactivate a chroot.">SETUP_RECOVER</a>, 
69
 
<a name="l00052"></a><a class="code" href="classsbuild_1_1chroot.html#9c7517b01054dee9285cd48cf42073e90c865a86ba2a16168094e852dca3f68a">00052</a>         <a class="code" href="classsbuild_1_1chroot.html#9c7517b01054dee9285cd48cf42073e90c865a86ba2a16168094e852dca3f68a" title="Deactivate a chroot.">SETUP_STOP</a>,    
70
 
<a name="l00053"></a><a class="code" href="classsbuild_1_1chroot.html#9c7517b01054dee9285cd48cf42073e9e86dfeeab178d564c82f656ad489585c">00053</a>         <a class="code" href="classsbuild_1_1chroot.html#9c7517b01054dee9285cd48cf42073e9e86dfeeab178d564c82f656ad489585c" title="Start executing a command in an active chroot.">EXEC_START</a>,    
71
 
<a name="l00054"></a><a class="code" href="classsbuild_1_1chroot.html#9c7517b01054dee9285cd48cf42073e9112c98d73ab4a844208b2f4a5a034c22">00054</a>         <a class="code" href="classsbuild_1_1chroot.html#9c7517b01054dee9285cd48cf42073e9112c98d73ab4a844208b2f4a5a034c22" title="End executing a command in an active chroot.">EXEC_STOP</a>      
72
 
<a name="l00055"></a>00055       };
73
 
<a name="l00056"></a>00056 
74
 
<a name="l00058"></a><a class="code" href="classsbuild_1_1chroot.html#ef89631e62590a5864a644e1d6c19e8e">00058</a>     <span class="keyword">enum</span> <a class="code" href="classsbuild_1_1chroot.html#ef89631e62590a5864a644e1d6c19e8e" title="Chroot session properties.">session_flags</a>
75
 
<a name="l00059"></a>00059       {
76
 
<a name="l00060"></a><a class="code" href="classsbuild_1_1chroot.html#ef89631e62590a5864a644e1d6c19e8e76d78c177962f0975687d10eca601db2">00060</a>         <a class="code" href="classsbuild_1_1chroot.html#ef89631e62590a5864a644e1d6c19e8e76d78c177962f0975687d10eca601db2" title="The chroot supports session creation.">SESSION_CREATE</a> = 1 &lt;&lt; 0 
77
 
<a name="l00061"></a>00061       };
78
 
<a name="l00062"></a>00062 
79
 
<a name="l00064"></a><a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a2">00064</a>     <span class="keyword">enum</span> <a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a2" title="Error codes.">error_code</a>
80
 
<a name="l00065"></a>00065       {
81
 
<a name="l00066"></a><a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a298afad92293b4f9671212a9873e29ebe">00066</a>         <a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a298afad92293b4f9671212a9873e29ebe" title="Chroot creation failed.">CHROOT_CREATE</a>,   
82
 
<a name="l00067"></a><a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a215d398598552a2139342669cbc8b4858">00067</a>         <a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a215d398598552a2139342669cbc8b4858" title="Chroot device name not set.">CHROOT_DEVICE</a>,   
83
 
<a name="l00068"></a><a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a29e80175cae1edbf5d00b8dcc5b51a362">00068</a>         <a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a29e80175cae1edbf5d00b8dcc5b51a362" title="Unknown chroot type.">CHROOT_TYPE</a>,     
84
 
<a name="l00069"></a><a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a21ff84fb5efdb50c8f7311592d1f41e68">00069</a>         <a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a21ff84fb5efdb50c8f7311592d1f41e68" title="Device must have an absolute path.">DEVICE_ABS</a>,      
85
 
<a name="l00070"></a><a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a2fefdcf6e9c7aea30e198b16f7e8b5e88">00070</a>         <a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a2fefdcf6e9c7aea30e198b16f7e8b5e88" title="Failed to lock device.">DEVICE_LOCK</a>,     
86
 
<a name="l00071"></a><a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a2ac1bc689a5c1903b2002093c54d02085">00071</a>         <a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a2ac1bc689a5c1903b2002093c54d02085" title="File is not a block device.">DEVICE_NOTBLOCK</a>, 
87
 
<a name="l00072"></a><a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a2f958b78b257b92cd04081f1fa13cb231">00072</a>         <a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a2f958b78b257b92cd04081f1fa13cb231" title="Failed to stat device.">DEVICE_STAT</a>,     
88
 
<a name="l00073"></a><a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a2420beff38038cedd959b7ca68dc02c6f">00073</a>         <a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a2420beff38038cedd959b7ca68dc02c6f" title="Failed to unlock device.">DEVICE_UNLOCK</a>,   
89
 
<a name="l00074"></a><a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a228c93038ba7fd9117102d2745b43bffa">00074</a>         <a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a228c93038ba7fd9117102d2745b43bffa" title="File must have an absolute path.">FILE_ABS</a>,        
90
 
<a name="l00075"></a><a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a2b067e837085ed606bcba9caaf4ed6fa4">00075</a>         <a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a2b067e837085ed606bcba9caaf4ed6fa4" title="Failed to acquire lock.">FILE_LOCK</a>,       
91
 
<a name="l00076"></a><a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a2bcbebd3d4420f6596b92d22607072c4c">00076</a>         <a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a2bcbebd3d4420f6596b92d22607072c4c" title="File is not a regular file.">FILE_NOTREG</a>,     
92
 
<a name="l00077"></a><a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a215d452353496bf0f809d1e86c6b60e78">00077</a>         <a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a215d452353496bf0f809d1e86c6b60e78" title="File is not owned by user root.">FILE_OWNER</a>,      
93
 
<a name="l00078"></a><a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a22e995ffbb7fac164b3eae6eda9bed7f7">00078</a>         <a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a22e995ffbb7fac164b3eae6eda9bed7f7" title="File has write permissions for others.">FILE_PERMS</a>,      
94
 
<a name="l00079"></a><a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a2471379fe5f006cc89892535598db7fb7">00079</a>         <a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a2471379fe5f006cc89892535598db7fb7" title="Failed to stat file.">FILE_STAT</a>,       
 
33
<a name="l00014"></a>00014 <span class="comment"> * along with this program.  If not, see</span>
 
34
<a name="l00015"></a>00015 <span class="comment"> * &lt;http://www.gnu.org/licenses/&gt;.</span>
 
35
<a name="l00016"></a>00016 <span class="comment"> *</span>
 
36
<a name="l00017"></a>00017 <span class="comment"> *********************************************************************/</span>
 
37
<a name="l00018"></a>00018 
 
38
<a name="l00019"></a>00019 <span class="preprocessor">#ifndef SBUILD_CHROOT_H</span>
 
39
<a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor">#define SBUILD_CHROOT_H</span>
 
40
<a name="l00021"></a>00021 <span class="preprocessor"></span>
 
41
<a name="l00022"></a>00022 <span class="preprocessor">#include &lt;<a class="code" href="sbuild-custom-error_8h.html">sbuild/sbuild-custom-error.h</a>&gt;</span>
 
42
<a name="l00023"></a>00023 <span class="preprocessor">#include &lt;<a class="code" href="sbuild-environment_8h.html">sbuild/sbuild-environment.h</a>&gt;</span>
 
43
<a name="l00024"></a>00024 <span class="preprocessor">#include &lt;<a class="code" href="sbuild-format-detail_8h.html">sbuild/sbuild-format-detail.h</a>&gt;</span>
 
44
<a name="l00025"></a>00025 <span class="preprocessor">#include &lt;<a class="code" href="sbuild-keyfile_8h.html">sbuild/sbuild-keyfile.h</a>&gt;</span>
 
45
<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;<a class="code" href="sbuild-personality_8h.html">sbuild/sbuild-personality.h</a>&gt;</span>
 
46
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;<a class="code" href="sbuild-regex_8h.html">sbuild/sbuild-regex.h</a>&gt;</span>
 
47
<a name="l00028"></a>00028 <span class="preprocessor">#include &lt;<a class="code" href="sbuild-tr1types_8h.html" title="TR1 type substitution.">sbuild/sbuild-tr1types.h</a>&gt;</span>
 
48
<a name="l00029"></a>00029 
 
49
<a name="l00030"></a>00030 <span class="preprocessor">#include &lt;ostream&gt;</span>
 
50
<a name="l00031"></a>00031 <span class="preprocessor">#include &lt;string&gt;</span>
 
51
<a name="l00032"></a>00032 
 
52
<a name="l00033"></a>00033 <span class="keyword">namespace </span>sbuild
 
53
<a name="l00034"></a>00034 {
 
54
<a name="l00035"></a>00035 
 
55
<a name="l00043"></a><a class="code" href="classsbuild_1_1chroot.html">00043</a>   <span class="keyword">class </span><a class="code" href="classsbuild_1_1chroot.html" title="Common chroot data.">chroot</a>
 
56
<a name="l00044"></a>00044   {
 
57
<a name="l00045"></a>00045   <span class="keyword">public</span>:
 
58
<a name="l00047"></a><a class="code" href="classsbuild_1_1chroot.html#9c7517b01054dee9285cd48cf42073e9">00047</a>     <span class="keyword">enum</span> <a class="code" href="classsbuild_1_1chroot.html#9c7517b01054dee9285cd48cf42073e9" title="Type of setup to perform.">setup_type</a>
 
59
<a name="l00048"></a>00048       {
 
60
<a name="l00049"></a><a class="code" href="classsbuild_1_1chroot.html#9c7517b01054dee9285cd48cf42073e9de9dab11fde09d3ba495265be1b5ccf4">00049</a>         <a class="code" href="classsbuild_1_1chroot.html#9c7517b01054dee9285cd48cf42073e9de9dab11fde09d3ba495265be1b5ccf4" title="Activate a chroot.">SETUP_START</a>,   
 
61
<a name="l00050"></a><a class="code" href="classsbuild_1_1chroot.html#9c7517b01054dee9285cd48cf42073e90da53964e1f36ce8d7b6705d6de32564">00050</a>         <a class="code" href="classsbuild_1_1chroot.html#9c7517b01054dee9285cd48cf42073e90da53964e1f36ce8d7b6705d6de32564" title="Reactivate a chroot.">SETUP_RECOVER</a>, 
 
62
<a name="l00051"></a><a class="code" href="classsbuild_1_1chroot.html#9c7517b01054dee9285cd48cf42073e90c865a86ba2a16168094e852dca3f68a">00051</a>         <a class="code" href="classsbuild_1_1chroot.html#9c7517b01054dee9285cd48cf42073e90c865a86ba2a16168094e852dca3f68a" title="Deactivate a chroot.">SETUP_STOP</a>,    
 
63
<a name="l00052"></a><a class="code" href="classsbuild_1_1chroot.html#9c7517b01054dee9285cd48cf42073e9e86dfeeab178d564c82f656ad489585c">00052</a>         <a class="code" href="classsbuild_1_1chroot.html#9c7517b01054dee9285cd48cf42073e9e86dfeeab178d564c82f656ad489585c" title="Start executing a command in an active chroot.">EXEC_START</a>,    
 
64
<a name="l00053"></a><a class="code" href="classsbuild_1_1chroot.html#9c7517b01054dee9285cd48cf42073e9112c98d73ab4a844208b2f4a5a034c22">00053</a>         <a class="code" href="classsbuild_1_1chroot.html#9c7517b01054dee9285cd48cf42073e9112c98d73ab4a844208b2f4a5a034c22" title="End executing a command in an active chroot.">EXEC_STOP</a>      
 
65
<a name="l00054"></a>00054       };
 
66
<a name="l00055"></a>00055 
 
67
<a name="l00057"></a><a class="code" href="classsbuild_1_1chroot.html#ef89631e62590a5864a644e1d6c19e8e">00057</a>     <span class="keyword">enum</span> <a class="code" href="classsbuild_1_1chroot.html#ef89631e62590a5864a644e1d6c19e8e" title="Chroot session properties.">session_flags</a>
 
68
<a name="l00058"></a>00058       {
 
69
<a name="l00059"></a><a class="code" href="classsbuild_1_1chroot.html#ef89631e62590a5864a644e1d6c19e8ec860787007dfa5dd7643adafc5a7e6fb">00059</a>         <a class="code" href="classsbuild_1_1chroot.html#ef89631e62590a5864a644e1d6c19e8ec860787007dfa5dd7643adafc5a7e6fb" title="No flags are set.">SESSION_NOFLAGS</a> = 0,     
 
70
<a name="l00060"></a><a class="code" href="classsbuild_1_1chroot.html#ef89631e62590a5864a644e1d6c19e8e76d78c177962f0975687d10eca601db2">00060</a>         <a class="code" href="classsbuild_1_1chroot.html#ef89631e62590a5864a644e1d6c19e8e76d78c177962f0975687d10eca601db2" title="The chroot supports session creation.">SESSION_CREATE</a> = 1 &lt;&lt; 0, 
 
71
<a name="l00061"></a><a class="code" href="classsbuild_1_1chroot.html#ef89631e62590a5864a644e1d6c19e8ea7a3f90a358bc727848b208ecfb96747">00061</a>         <a class="code" href="classsbuild_1_1chroot.html#ef89631e62590a5864a644e1d6c19e8ea7a3f90a358bc727848b208ecfb96747" title="The chroot supports cloning.">SESSION_CLONE</a>  = 1 &lt;&lt; 1, 
 
72
<a name="l00062"></a><a class="code" href="classsbuild_1_1chroot.html#ef89631e62590a5864a644e1d6c19e8e0c4a78060f58b142fda9df1be74aaa94">00062</a>         <a class="code" href="classsbuild_1_1chroot.html#ef89631e62590a5864a644e1d6c19e8e0c4a78060f58b142fda9df1be74aaa94" title="The chroot should be purged.">SESSION_PURGE</a>  = 1 &lt;&lt; 2  
 
73
<a name="l00063"></a>00063       };
 
74
<a name="l00064"></a>00064 
 
75
<a name="l00066"></a><a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a2">00066</a>     <span class="keyword">enum</span> <a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a2" title="Error codes.">error_code</a>
 
76
<a name="l00067"></a>00067       {
 
77
<a name="l00068"></a><a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a298afad92293b4f9671212a9873e29ebe">00068</a>         <a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a298afad92293b4f9671212a9873e29ebe" title="Chroot creation failed.">CHROOT_CREATE</a>,   
 
78
<a name="l00069"></a><a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a215d398598552a2139342669cbc8b4858">00069</a>         <a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a215d398598552a2139342669cbc8b4858" title="Chroot device name not set.">CHROOT_DEVICE</a>,   
 
79
<a name="l00070"></a><a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a29e80175cae1edbf5d00b8dcc5b51a362">00070</a>         <a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a29e80175cae1edbf5d00b8dcc5b51a362" title="Unknown chroot type.">CHROOT_TYPE</a>,     
 
80
<a name="l00071"></a><a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a21ff84fb5efdb50c8f7311592d1f41e68">00071</a>         <a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a21ff84fb5efdb50c8f7311592d1f41e68" title="Device must have an absolute path.">DEVICE_ABS</a>,      
 
81
<a name="l00072"></a><a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a2fefdcf6e9c7aea30e198b16f7e8b5e88">00072</a>         <a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a2fefdcf6e9c7aea30e198b16f7e8b5e88" title="Failed to lock device.">DEVICE_LOCK</a>,     
 
82
<a name="l00073"></a><a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a2ac1bc689a5c1903b2002093c54d02085">00073</a>         <a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a2ac1bc689a5c1903b2002093c54d02085" title="File is not a block device.">DEVICE_NOTBLOCK</a>, 
 
83
<a name="l00074"></a><a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a2420beff38038cedd959b7ca68dc02c6f">00074</a>         <a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a2420beff38038cedd959b7ca68dc02c6f" title="Failed to unlock device.">DEVICE_UNLOCK</a>,   
 
84
<a name="l00075"></a><a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a228c93038ba7fd9117102d2745b43bffa">00075</a>         <a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a228c93038ba7fd9117102d2745b43bffa" title="File must have an absolute path.">FILE_ABS</a>,        
 
85
<a name="l00076"></a><a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a2b067e837085ed606bcba9caaf4ed6fa4">00076</a>         <a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a2b067e837085ed606bcba9caaf4ed6fa4" title="Failed to acquire lock.">FILE_LOCK</a>,       
 
86
<a name="l00077"></a><a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a2bcbebd3d4420f6596b92d22607072c4c">00077</a>         <a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a2bcbebd3d4420f6596b92d22607072c4c" title="File is not a regular file.">FILE_NOTREG</a>,     
 
87
<a name="l00078"></a><a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a215d452353496bf0f809d1e86c6b60e78">00078</a>         <a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a215d452353496bf0f809d1e86c6b60e78" title="File is not owned by user root.">FILE_OWNER</a>,      
 
88
<a name="l00079"></a><a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a22e995ffbb7fac164b3eae6eda9bed7f7">00079</a>         <a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a22e995ffbb7fac164b3eae6eda9bed7f7" title="File has write permissions for others.">FILE_PERMS</a>,      
95
89
<a name="l00080"></a><a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a2e8ca82f42e3b793af5d5cec0d87042c4">00080</a>         <a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a2e8ca82f42e3b793af5d5cec0d87042c4" title="Failed to discard lock.">FILE_UNLOCK</a>,     
96
90
<a name="l00081"></a><a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a26c6d75c925b290e3eb88e571980a0911">00081</a>         <a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a26c6d75c925b290e3eb88e571980a0911" title="Location must have an absolute path.">LOCATION_ABS</a>,    
97
91
<a name="l00082"></a><a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a2a5496dfa2f3aefef74d3851b91742aea">00082</a>         <a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a2a5496dfa2f3aefef74d3851b91742aea" title="Failed to unlink session file.">SESSION_UNLINK</a>,  
112
106
<a name="l00107"></a>00107     <a class="code" href="classsbuild_1_1chroot.html#a78d74b4937a4bcbd54b3d73304343d2" title="Create a chroot.">create</a> (std::string <span class="keyword">const</span>&amp; type);
113
107
<a name="l00108"></a>00108 
114
108
<a name="l00114"></a>00114     <span class="keyword">virtual</span> <a class="code" href="classsbuild_1_1chroot.html#ef7d5b607d1a0a4a7ebe1d40e2ec9c3a" title="A shared_ptr to a chroot object.">ptr</a>
115
 
<a name="l00115"></a>00115     <a class="code" href="classsbuild_1_1chroot.html#892207f2763347011e50967b2b186d41" title="Copy the chroot.">clone</a> () <span class="keyword">const</span> = 0;
 
109
<a name="l00115"></a>00115     <a class="code" href="classsbuild_1_1chroot.html#cd6d20ce80856dac4c556eea25b9e862" title="Copy the chroot.">clone</a> () <span class="keyword">const</span> = 0;
116
110
<a name="l00116"></a>00116 
117
111
<a name="l00122"></a>00122     std::string <span class="keyword">const</span>&amp;
118
 
<a name="l00123"></a>00123     <a class="code" href="classsbuild_1_1chroot.html#660143a64467a135c48495f7c9afa8c3" title="Get the name of the chroot.">get_name</a> () <span class="keyword">const</span>;
 
112
<a name="l00123"></a>00123     <a class="code" href="classsbuild_1_1chroot.html#f0b7cb9619721ab1cc9e019dda9f5d60" title="Get the name of the chroot.">get_name</a> () <span class="keyword">const</span>;
119
113
<a name="l00124"></a>00124 
120
114
<a name="l00130"></a>00130     <span class="keywordtype">void</span>
121
115
<a name="l00131"></a>00131     <a class="code" href="classsbuild_1_1chroot.html#87f8b1da978e9d1a418508c9d8bfab8f" title="Set the name of the chroot.">set_name</a> (std::string <span class="keyword">const</span>&amp; <a class="code" href="classsbuild_1_1chroot.html#6ea91940964e72fcbec1cc2b6a269624" title="Chroot name.">name</a>);
122
116
<a name="l00132"></a>00132 
123
117
<a name="l00138"></a>00138     std::string <span class="keyword">const</span>&amp;
124
 
<a name="l00139"></a>00139     <a class="code" href="classsbuild_1_1chroot.html#f79a7175f29cb608e78d24a6dd67f06f" title="Get the description of the chroot.">get_description</a> () <span class="keyword">const</span>;
 
118
<a name="l00139"></a>00139     <a class="code" href="classsbuild_1_1chroot.html#fc96bd88d1aa0b2c60d529a8c6a401d3" title="Get the description of the chroot.">get_description</a> () <span class="keyword">const</span>;
125
119
<a name="l00140"></a>00140 
126
120
<a name="l00146"></a>00146     <span class="keywordtype">void</span>
127
121
<a name="l00147"></a>00147     <a class="code" href="classsbuild_1_1chroot.html#3929961b82040f8fc837e09c09a530f3" title="Set the description of the chroot.">set_description</a> (std::string <span class="keyword">const</span>&amp; <a class="code" href="classsbuild_1_1chroot.html#b8200f4c23cfdab4a49e2709294bb547" title="Chroot description.">description</a>);
128
122
<a name="l00148"></a>00148 
129
123
<a name="l00154"></a>00154     <span class="keyword">virtual</span> std::string <span class="keyword">const</span>&amp;
130
 
<a name="l00155"></a>00155     <a class="code" href="classsbuild_1_1chroot.html#e37abc589249df2917c6e9049a4a8992" title="Get the mount location of the chroot.">get_mount_location</a> () <span class="keyword">const</span>;
 
124
<a name="l00155"></a>00155     <a class="code" href="classsbuild_1_1chroot.html#be430a260e40e730458c3517aed410ec" title="Get the mount location of the chroot.">get_mount_location</a> () <span class="keyword">const</span>;
131
125
<a name="l00156"></a>00156 
132
126
<a name="l00162"></a>00162     <span class="keywordtype">void</span>
133
127
<a name="l00163"></a>00163     <a class="code" href="classsbuild_1_1chroot.html#bf596d3d57cf6ab95ed1b72a5a85da3e" title="Set the mount location of the chroot.">set_mount_location</a> (std::string <span class="keyword">const</span>&amp; <a class="code" href="classsbuild_1_1chroot.html#efbc5a3c1c7d5cb7a349f70bebaccac1" title="Location inside the mount location root.">location</a>);
134
128
<a name="l00164"></a>00164 
135
129
<a name="l00172"></a>00172     <span class="keyword">virtual</span> std::string <span class="keyword">const</span>&amp;
136
 
<a name="l00173"></a>00173     <a class="code" href="classsbuild_1_1chroot.html#1d612be0341ef60f64b8674a60bf51ae" title="Get the location of the chroot.">get_location</a> () <span class="keyword">const</span>;
 
130
<a name="l00173"></a>00173     <a class="code" href="classsbuild_1_1chroot.html#51dc847229a1f9979e6151797dc8122f" title="Get the location of the chroot.">get_location</a> () <span class="keyword">const</span>;
137
131
<a name="l00174"></a>00174 
138
132
<a name="l00175"></a>00175   <span class="keyword">protected</span>:
139
133
<a name="l00183"></a>00183     <span class="keyword">virtual</span> <span class="keywordtype">void</span>
141
135
<a name="l00185"></a>00185 
142
136
<a name="l00186"></a>00186   <span class="keyword">public</span>:
143
137
<a name="l00195"></a>00195     <span class="keyword">virtual</span> std::string
144
 
<a name="l00196"></a>00196     <a class="code" href="classsbuild_1_1chroot.html#c273812aeaabae629219c855e781c738" title="Get the path to the chroot.">get_path</a> () <span class="keyword">const</span>;
 
138
<a name="l00196"></a>00196     <a class="code" href="classsbuild_1_1chroot.html#a55a0850437268625326e6145d94d719" title="Get the path to the chroot.">get_path</a> () <span class="keyword">const</span>;
145
139
<a name="l00197"></a>00197 
146
140
<a name="l00203"></a>00203     <span class="keyword">virtual</span> std::string <span class="keyword">const</span>&amp;
147
 
<a name="l00204"></a>00204     <a class="code" href="classsbuild_1_1chroot.html#d0c6d85ca92353f685778920f787e4dd" title="Get the mount device of the chroot.">get_mount_device</a> () <span class="keyword">const</span>;
 
141
<a name="l00204"></a>00204     <a class="code" href="classsbuild_1_1chroot.html#48e3f8e86bda7a0e7e14e5b4b625c75f" title="Get the mount device of the chroot.">get_mount_device</a> () <span class="keyword">const</span>;
148
142
<a name="l00205"></a>00205 
149
143
<a name="l00211"></a>00211     <span class="keywordtype">void</span>
150
144
<a name="l00212"></a>00212     <a class="code" href="classsbuild_1_1chroot.html#8e7f9121f35fb51408d0b123269b7e2b" title="Set the mount device of the chroot.">set_mount_device</a> (std::string <span class="keyword">const</span>&amp; device);
151
145
<a name="l00213"></a>00213 
152
146
<a name="l00220"></a>00220     <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>
153
 
<a name="l00221"></a>00221     <a class="code" href="classsbuild_1_1chroot.html#7b99120a25d82552e9a90d9b8fdd3430" title="Get the priority of the chroot.">get_priority</a> () <span class="keyword">const</span>;
 
147
<a name="l00221"></a>00221     <a class="code" href="classsbuild_1_1chroot.html#8af1f1772d544a1113de2fa7143f7816" title="Get the priority of the chroot.">get_priority</a> () <span class="keyword">const</span>;
154
148
<a name="l00222"></a>00222 
155
149
<a name="l00232"></a>00232     <span class="keywordtype">void</span>
156
150
<a name="l00233"></a>00233     <a class="code" href="classsbuild_1_1chroot.html#a4f9365882606b7f95f8c9b033b3fa42" title="Set the priority of a chroot.">set_priority</a> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classsbuild_1_1chroot.html#1e54020aa9e70dade6f6a3afb6cf7ca7" title="Chroot prioroty.">priority</a>);
157
151
<a name="l00234"></a>00234 
158
152
<a name="l00240"></a>00240     <a class="code" href="namespacesbuild.html#4268c3202ab4b20cbebf347a6d69393f" title="A string vector.">string_list</a> <span class="keyword">const</span>&amp;
159
 
<a name="l00241"></a>00241     <a class="code" href="classsbuild_1_1chroot.html#268bd07cbbbc216cfa65d8583b510966" title="Get the users allowed to access the chroot.">get_users</a> () <span class="keyword">const</span>;
 
153
<a name="l00241"></a>00241     <a class="code" href="classsbuild_1_1chroot.html#365e507c6594ee6045191544433cabb9" title="Get the users allowed to access the chroot.">get_users</a> () <span class="keyword">const</span>;
160
154
<a name="l00242"></a>00242 
161
155
<a name="l00248"></a>00248     <span class="keywordtype">void</span>
162
156
<a name="l00249"></a>00249     <a class="code" href="classsbuild_1_1chroot.html#39077a906ab478c304a84addf85f5cbc" title="Set the users allowed to access the chroot.">set_users</a> (<a class="code" href="namespacesbuild.html#4268c3202ab4b20cbebf347a6d69393f" title="A string vector.">string_list</a> <span class="keyword">const</span>&amp; <a class="code" href="classsbuild_1_1chroot.html#4bbd7af456b09845b6bf1bd3eefafc42" title="Users allowed to access the chroot.">users</a>);
163
157
<a name="l00250"></a>00250 
164
158
<a name="l00256"></a>00256     <a class="code" href="namespacesbuild.html#4268c3202ab4b20cbebf347a6d69393f" title="A string vector.">string_list</a> <span class="keyword">const</span>&amp;
165
 
<a name="l00257"></a>00257     <a class="code" href="classsbuild_1_1chroot.html#42bd9e0d23b7b65d06939cd6888eb90b" title="Get the groups allowed to access the chroot.">get_groups</a> () <span class="keyword">const</span>;
 
159
<a name="l00257"></a>00257     <a class="code" href="classsbuild_1_1chroot.html#e6062e65ea7da76bd289e287885173c0" title="Get the groups allowed to access the chroot.">get_groups</a> () <span class="keyword">const</span>;
166
160
<a name="l00258"></a>00258 
167
161
<a name="l00264"></a>00264     <span class="keywordtype">void</span>
168
162
<a name="l00265"></a>00265     <a class="code" href="classsbuild_1_1chroot.html#ffc8fa80414dac32e5bf0d194eca0b25" title="Set the users allowed to access the chroot.">set_groups</a> (<a class="code" href="namespacesbuild.html#4268c3202ab4b20cbebf347a6d69393f" title="A string vector.">string_list</a> <span class="keyword">const</span>&amp; <a class="code" href="classsbuild_1_1chroot.html#397c5fc1852eb0db5be420e0a1d4c7f4" title="Groups allowed to access the chroot.">groups</a>);
169
163
<a name="l00266"></a>00266 
170
164
<a name="l00274"></a>00274     <a class="code" href="namespacesbuild.html#4268c3202ab4b20cbebf347a6d69393f" title="A string vector.">string_list</a> <span class="keyword">const</span>&amp;
171
 
<a name="l00275"></a>00275     <a class="code" href="classsbuild_1_1chroot.html#56f94a367eacb178a52921fa48564b23" title="Get the users allowed to access the chroot as root.">get_root_users</a> () <span class="keyword">const</span>;
 
165
<a name="l00275"></a>00275     <a class="code" href="classsbuild_1_1chroot.html#5dafa577cb92b7bdc05d23708d1802cb" title="Get the users allowed to access the chroot as root.">get_root_users</a> () <span class="keyword">const</span>;
172
166
<a name="l00276"></a>00276 
173
167
<a name="l00284"></a>00284     <span class="keywordtype">void</span>
174
168
<a name="l00285"></a>00285     <a class="code" href="classsbuild_1_1chroot.html#afc92a4d4e655081b2b0525a9550b450" title="Set the users allowed to access the chroot as root.">set_root_users</a> (<a class="code" href="namespacesbuild.html#4268c3202ab4b20cbebf347a6d69393f" title="A string vector.">string_list</a> <span class="keyword">const</span>&amp; <a class="code" href="classsbuild_1_1chroot.html#4bbd7af456b09845b6bf1bd3eefafc42" title="Users allowed to access the chroot.">users</a>);
175
169
<a name="l00286"></a>00286 
176
170
<a name="l00294"></a>00294     <a class="code" href="namespacesbuild.html#4268c3202ab4b20cbebf347a6d69393f" title="A string vector.">string_list</a> <span class="keyword">const</span>&amp;
177
 
<a name="l00295"></a>00295     <a class="code" href="classsbuild_1_1chroot.html#f386c4001e0a15f76a1189e3dd5a1789" title="Get the groups allowed to access the chroot as root.">get_root_groups</a> () <span class="keyword">const</span>;
 
171
<a name="l00295"></a>00295     <a class="code" href="classsbuild_1_1chroot.html#f18cee06da0c25fa9a7b411e1c6672eb" title="Get the groups allowed to access the chroot as root.">get_root_groups</a> () <span class="keyword">const</span>;
178
172
<a name="l00296"></a>00296 
179
173
<a name="l00304"></a>00304     <span class="keywordtype">void</span>
180
174
<a name="l00305"></a>00305     <a class="code" href="classsbuild_1_1chroot.html#5d979471addd75a2b80f86ccd2c95796" title="Set the groups allowed to access the chroot as root.">set_root_groups</a> (<a class="code" href="namespacesbuild.html#4268c3202ab4b20cbebf347a6d69393f" title="A string vector.">string_list</a> <span class="keyword">const</span>&amp; <a class="code" href="classsbuild_1_1chroot.html#397c5fc1852eb0db5be420e0a1d4c7f4" title="Groups allowed to access the chroot.">groups</a>);
181
175
<a name="l00306"></a>00306 
182
176
<a name="l00313"></a>00313     <a class="code" href="namespacesbuild.html#4268c3202ab4b20cbebf347a6d69393f" title="A string vector.">string_list</a> <span class="keyword">const</span>&amp;
183
 
<a name="l00314"></a>00314     <a class="code" href="classsbuild_1_1chroot.html#6dc1ab03126d567a15d10259bdae55c0" title="Get the aliases of the chroot.">get_aliases</a> () <span class="keyword">const</span>;
 
177
<a name="l00314"></a>00314     <a class="code" href="classsbuild_1_1chroot.html#275e4824f82f20e508a09ab132b6e684" title="Get the aliases of the chroot.">get_aliases</a> () <span class="keyword">const</span>;
184
178
<a name="l00315"></a>00315 
185
179
<a name="l00322"></a>00322     <span class="keywordtype">void</span>
186
180
<a name="l00323"></a>00323     <a class="code" href="classsbuild_1_1chroot.html#abdb3b58d7be3270cb4c844e0a2b3202" title="Set the aliases of the chroot.">set_aliases</a> (<a class="code" href="namespacesbuild.html#4268c3202ab4b20cbebf347a6d69393f" title="A string vector.">string_list</a> <span class="keyword">const</span>&amp; <a class="code" href="classsbuild_1_1chroot.html#3a61cf930983a30189ebcbd8b884d1df" title="Alternative names for the chroot.">aliases</a>);
187
181
<a name="l00324"></a>00324 
188
182
<a name="l00332"></a>00332     <a class="code" href="classsbuild_1_1regex.html" title="POSIX extended regular expression.">regex</a> <span class="keyword">const</span>&amp;
189
 
<a name="l00333"></a>00333     <a class="code" href="classsbuild_1_1chroot.html#5cf6937d6f8bb3fee8d1098ac7e675eb" title="Get the environment filter of the chroot.">get_environment_filter</a> () <span class="keyword">const</span>;
 
183
<a name="l00333"></a>00333     <a class="code" href="classsbuild_1_1chroot.html#b497c7a6051a973c47eb12ae1a1d17a1" title="Get the environment filter of the chroot.">get_environment_filter</a> () <span class="keyword">const</span>;
190
184
<a name="l00334"></a>00334 
191
185
<a name="l00342"></a>00342     <span class="keywordtype">void</span>
192
186
<a name="l00343"></a>00343     <a class="code" href="classsbuild_1_1chroot.html#1e7ffe5a38f7a8165901339fb884398b" title="Get the environment filter of the chroot.">set_environment_filter</a> (<a class="code" href="classsbuild_1_1regex.html" title="POSIX extended regular expression.">regex</a> <span class="keyword">const</span>&amp; <a class="code" href="classsbuild_1_1chroot.html#04f76f9a561929a5d54f5d4d617b4241" title="Environment filter regex.">environment_filter</a>);
193
187
<a name="l00344"></a>00344 
194
188
<a name="l00350"></a>00350     <span class="keywordtype">bool</span>
195
 
<a name="l00351"></a>00351     <a class="code" href="classsbuild_1_1chroot.html#d524f7a1edf12311f75a407cb97c23f6" title="Get the activity status of the chroot.">get_active</a> () <span class="keyword">const</span>;
 
189
<a name="l00351"></a>00351     <a class="code" href="classsbuild_1_1chroot.html#78291bd01b18d0d8a548a9ad05a49336" title="Get the activity status of the chroot.">get_active</a> () <span class="keyword">const</span>;
196
190
<a name="l00352"></a>00352 
197
191
<a name="l00358"></a>00358     <span class="keywordtype">void</span>
198
192
<a name="l00359"></a>00359     <a class="code" href="classsbuild_1_1chroot.html#ca9774dd4f9928fc99b85e4cf1a058e6" title="Set the activity status of the chroot.">set_active</a> (<span class="keywordtype">bool</span> <a class="code" href="classsbuild_1_1chroot.html#72007d7d80cf375329924471b15d7f14" title="Chroot activity status.">active</a>);
199
193
<a name="l00360"></a>00360 
200
194
<a name="l00366"></a>00366     <span class="keywordtype">bool</span>
201
 
<a name="l00367"></a>00367     <a class="code" href="classsbuild_1_1chroot.html#3f92d6e65f4274800883b0954388521e" title="Get the originality of the chroot.">get_original</a> () <span class="keyword">const</span>;
 
195
<a name="l00367"></a>00367     <a class="code" href="classsbuild_1_1chroot.html#c826e469ce62926a09adeed3a59bbda2" title="Get the originality of the chroot.">get_original</a> () <span class="keyword">const</span>;
202
196
<a name="l00368"></a>00368 
203
197
<a name="l00374"></a>00374     <span class="keywordtype">void</span>
204
198
<a name="l00375"></a>00375     <a class="code" href="classsbuild_1_1chroot.html#dbcb3806505907164dd3a9330565cefb" title="Set the originality of the chroot.">set_original</a> (<span class="keywordtype">bool</span> <a class="code" href="classsbuild_1_1chroot.html#1ec703cc596b7b78add42c49e0d6a937" title="Was the chroot automatically generated?">original</a>);
205
199
<a name="l00376"></a>00376 
206
200
<a name="l00382"></a>00382     <span class="keywordtype">bool</span>
207
 
<a name="l00383"></a>00383     <a class="code" href="classsbuild_1_1chroot.html#b84151c5b1d8cc359bf0d087ec63cddc" title="Check if chroot setup scripts will be run.">get_run_setup_scripts</a> () <span class="keyword">const</span>;
 
201
<a name="l00383"></a>00383     <a class="code" href="classsbuild_1_1chroot.html#9215ac4c2835bddcb799823e1ded85c3" title="Check if chroot setup scripts will be run.">get_run_setup_scripts</a> () <span class="keyword">const</span>;
208
202
<a name="l00384"></a>00384 
209
203
<a name="l00391"></a>00391     <span class="keywordtype">void</span>
210
204
<a name="l00392"></a>00392     <a class="code" href="classsbuild_1_1chroot.html#7ab9f77d4fac1d6f41664c7e68f214dd" title="Set whether chroot setup scripts will be run.">set_run_setup_scripts</a> (<span class="keywordtype">bool</span> <a class="code" href="classsbuild_1_1chroot.html#94952ca28167cf294320a42f815f8691" title="Run chroot setup scripts?">run_setup_scripts</a>);
211
205
<a name="l00393"></a>00393 
212
206
<a name="l00399"></a>00399     <span class="keywordtype">bool</span>
213
 
<a name="l00400"></a>00400     <a class="code" href="classsbuild_1_1chroot.html#257ca9f8880697b986e75c895d58999e" title="Check if chroot exec scripts will be run.">get_run_exec_scripts</a> () <span class="keyword">const</span>;
 
207
<a name="l00400"></a>00400     <a class="code" href="classsbuild_1_1chroot.html#aa8cc71758aef96849ece37e1c391899" title="Check if chroot exec scripts will be run.">get_run_exec_scripts</a> () <span class="keyword">const</span>;
214
208
<a name="l00401"></a>00401 
215
209
<a name="l00408"></a>00408     <span class="keywordtype">void</span>
216
210
<a name="l00409"></a>00409     <a class="code" href="classsbuild_1_1chroot.html#8cd08f5e52ffc9f57a8f1b6d68a320ca" title="Set whether chroot exec scripts will be run.">set_run_exec_scripts</a> (<span class="keywordtype">bool</span> <a class="code" href="classsbuild_1_1chroot.html#a14a2d20332f3af5cc2fc04aabc1d638" title="Run chroot exec scripts?">run_exec_scripts</a>);
217
211
<a name="l00410"></a>00410 
218
212
<a name="l00418"></a>00418     std::string <span class="keyword">const</span>&amp;
219
 
<a name="l00419"></a>00419     <a class="code" href="classsbuild_1_1chroot.html#c534923e92306b7db6686248bee58440" title="Get the script configuration file for the chroot.">get_script_config</a> () <span class="keyword">const</span>;
 
213
<a name="l00419"></a>00419     <a class="code" href="classsbuild_1_1chroot.html#cdc84b45584bb03f73bf6582aac0ec8e" title="Get the script configuration file for the chroot.">get_script_config</a> () <span class="keyword">const</span>;
220
214
<a name="l00420"></a>00420 
221
215
<a name="l00428"></a>00428     <span class="keywordtype">void</span>
222
216
<a name="l00429"></a>00429     <a class="code" href="classsbuild_1_1chroot.html#51454605701064351805f18599427b98" title="Set the script configuration file for the chroot.">set_script_config</a> (std::string <span class="keyword">const</span>&amp; <a class="code" href="classsbuild_1_1chroot.html#b5efa4ffa0d627827ee65041633c7331" title="Configuration of the setup and exec scripts.">script_config</a>);
223
217
<a name="l00430"></a>00430 
224
218
<a name="l00437"></a>00437     <a class="code" href="namespacesbuild.html#4268c3202ab4b20cbebf347a6d69393f" title="A string vector.">string_list</a> <span class="keyword">const</span>&amp;
225
 
<a name="l00438"></a>00438     <a class="code" href="classsbuild_1_1chroot.html#d81620bd9f06057e96ab7f0d2feefeb7" title="Get the command_prefix for the chroot.">get_command_prefix</a> () <span class="keyword">const</span>;
 
219
<a name="l00438"></a>00438     <a class="code" href="classsbuild_1_1chroot.html#2692e5fdc975dabe4645725d74eb3d9c" title="Get the command_prefix for the chroot.">get_command_prefix</a> () <span class="keyword">const</span>;
226
220
<a name="l00439"></a>00439 
227
221
<a name="l00446"></a>00446     <span class="keywordtype">void</span>
228
222
<a name="l00447"></a>00447     <a class="code" href="classsbuild_1_1chroot.html#9b81f558b3c4def90d9f8e6f0e2d1b81" title="Set the command_prefix for the chroot.">set_command_prefix</a> (<a class="code" href="namespacesbuild.html#4268c3202ab4b20cbebf347a6d69393f" title="A string vector.">string_list</a> <span class="keyword">const</span>&amp; <a class="code" href="classsbuild_1_1chroot.html#e7966e5e79acbece662b3b7c21c4a5b5" title="Command prefix.">command_prefix</a>);
229
223
<a name="l00448"></a>00448 
230
224
<a name="l00454"></a>00454     <a class="code" href="classsbuild_1_1personality.html" title="Chroot personality.">personality</a> <span class="keyword">const</span>&amp;
231
 
<a name="l00455"></a>00455     <a class="code" href="classsbuild_1_1chroot.html#2ed6cfb0c52329b35b0ad6222fcc583b" title="Get the process execution domain for the chroot.">get_persona</a> () <span class="keyword">const</span>;
 
225
<a name="l00455"></a>00455     <a class="code" href="classsbuild_1_1chroot.html#d59d6648394af9ec6365c03b38dba370" title="Get the process execution domain for the chroot.">get_persona</a> () <span class="keyword">const</span>;
232
226
<a name="l00456"></a>00456 
233
227
<a name="l00462"></a>00462     <span class="keywordtype">void</span>
234
228
<a name="l00463"></a>00463     <a class="code" href="classsbuild_1_1chroot.html#538c4e383e7d34c3b5dc9e4dd19c3b05" title="Set the process execution domain for the chroot.">set_persona</a> (<a class="code" href="classsbuild_1_1personality.html" title="Chroot personality.">personality</a> <span class="keyword">const</span>&amp; <a class="code" href="classsbuild_1_1chroot.html#519eda4b474b1d58abf9fa7b39f9f72c" title="Process execution domain (Linux only).">persona</a>);
235
229
<a name="l00464"></a>00464 
236
230
<a name="l00470"></a>00470     <span class="keyword">virtual</span> std::string <span class="keyword">const</span>&amp;
237
 
<a name="l00471"></a>00471     <a class="code" href="classsbuild_1_1chroot.html#4a9d8a2a1976663e1ce3974bb4e3f0a1" title="Get the type of the chroot.">get_chroot_type</a> () <span class="keyword">const</span> = 0;
 
231
<a name="l00471"></a>00471     <a class="code" href="classsbuild_1_1chroot.html#2fef84e91421d84141dbd8da9d756949" title="Get the type of the chroot.">get_chroot_type</a> () <span class="keyword">const</span> = 0;
238
232
<a name="l00472"></a>00472 
239
233
<a name="l00479"></a>00479     <span class="keyword">virtual</span> <span class="keywordtype">void</span>
240
234
<a name="l00480"></a>00480     <a class="code" href="classsbuild_1_1chroot.html#5eef8f0da324842ae34393a52462f9e5" title="Set environment.">setup_env</a> (<a class="code" href="classsbuild_1_1environment.html" title="Container of environment variables.">environment</a>&amp; env);
257
251
<a name="l00540"></a>00540 
258
252
<a name="l00541"></a>00541   <span class="keyword">public</span>:
259
253
<a name="l00548"></a>00548     <span class="keyword">virtual</span> <a class="code" href="classsbuild_1_1chroot.html#ef89631e62590a5864a644e1d6c19e8e" title="Chroot session properties.">session_flags</a>
260
 
<a name="l00549"></a>00549     <a class="code" href="classsbuild_1_1chroot.html#c71d0e08937e5e9aba13f6d8f1f4c08b" title="Get the session flags of the chroot.">get_session_flags</a> () <span class="keyword">const</span> = 0;
 
254
<a name="l00549"></a>00549     <a class="code" href="classsbuild_1_1chroot.html#3971cded8d1c466c20bfec514729161a" title="Get the session flags of the chroot.">get_session_flags</a> () <span class="keyword">const</span> = 0;
261
255
<a name="l00550"></a>00550 
262
256
<a name="l00560"></a>00560     <span class="keyword">friend</span> std::ostream&amp;
263
257
<a name="l00561"></a><a class="code" href="classsbuild_1_1chroot.html#3734d2a34092c36403ef516fdd93b7e8">00561</a>     <a class="code" href="classsbuild_1_1chroot.html#3734d2a34092c36403ef516fdd93b7e8" title="Print detailed information about the chroot to a stream.">operator &lt;&lt; </a>(std::ostream&amp; stream,
272
266
<a name="l00573"></a><a class="code" href="classsbuild_1_1chroot.html#cade786d24b3c0a3105544d3e87f0543">00573</a>     <a class="code" href="classsbuild_1_1chroot.html#cade786d24b3c0a3105544d3e87f0543" title="Chroot initialisation from a keyfile.">operator &gt;&gt; </a>(<a class="code" href="classsbuild_1_1basic__keyfile.html" title="Configuration file parser.">keyfile</a> <span class="keyword">const</span>&amp; <a class="code" href="classsbuild_1_1basic__keyfile.html" title="Configuration file parser.">keyfile</a>,
273
267
<a name="l00574"></a>00574                  <a class="code" href="classsbuild_1_1chroot.html#ef7d5b607d1a0a4a7ebe1d40e2ec9c3a" title="A shared_ptr to a chroot object.">ptr</a>&amp;           rhs)
274
268
<a name="l00575"></a>00575     {
275
 
<a name="l00576"></a>00576       rhs-&gt;set_keyfile(<a class="code" href="namespacesbuild.html#428be2d63b9b84d0fb43c3be0a9ce77a" title="Configuration file parser.">keyfile</a>);
276
 
<a name="l00577"></a>00577       <span class="keywordflow">return</span> <a class="code" href="namespacesbuild.html#428be2d63b9b84d0fb43c3be0a9ce77a" title="Configuration file parser.">keyfile</a>;
277
 
<a name="l00578"></a>00578     }
278
 
<a name="l00579"></a>00579 
279
 
<a name="l00583"></a>00583     <span class="keyword">friend</span>
280
 
<a name="l00584"></a>00584     <a class="code" href="classsbuild_1_1basic__keyfile.html" title="Configuration file parser.">keyfile</a>&amp;
281
 
<a name="l00585"></a><a class="code" href="classsbuild_1_1chroot.html#80cf448b903d9f2b2c899b86d4d8294f">00585</a>     <a class="code" href="classsbuild_1_1chroot.html#3734d2a34092c36403ef516fdd93b7e8" title="Print detailed information about the chroot to a stream.">operator &lt;&lt; </a>(<a class="code" href="classsbuild_1_1basic__keyfile.html" title="Configuration file parser.">keyfile</a>&amp;   <a class="code" href="classsbuild_1_1basic__keyfile.html" title="Configuration file parser.">keyfile</a>,
282
 
<a name="l00586"></a>00586                  <a class="code" href="classsbuild_1_1chroot.html#ef7d5b607d1a0a4a7ebe1d40e2ec9c3a" title="A shared_ptr to a chroot object.">ptr</a> <span class="keyword">const</span>&amp; rhs)
283
 
<a name="l00587"></a>00587     {
284
 
<a name="l00588"></a>00588       rhs-&gt;get_keyfile(<a class="code" href="namespacesbuild.html#428be2d63b9b84d0fb43c3be0a9ce77a" title="Configuration file parser.">keyfile</a>);
285
 
<a name="l00589"></a>00589       <span class="keywordflow">return</span> <a class="code" href="namespacesbuild.html#428be2d63b9b84d0fb43c3be0a9ce77a" title="Configuration file parser.">keyfile</a>;
286
 
<a name="l00590"></a>00590     }
287
 
<a name="l00591"></a>00591 
288
 
<a name="l00592"></a>00592 
289
 
<a name="l00593"></a>00593   <span class="keyword">protected</span>:
290
 
<a name="l00599"></a>00599     <span class="keyword">virtual</span> <span class="keywordtype">void</span>
291
 
<a name="l00600"></a>00600     <a class="code" href="classsbuild_1_1chroot.html#2f067f08b2a4104503a31a3a12a1f447" title="Get detailed information about the chroot for output.">get_details</a> (<a class="code" href="classsbuild_1_1format__detail.html" title="Format names and values for output.">format_detail</a>&amp; detail) <span class="keyword">const</span>;
292
 
<a name="l00601"></a>00601 
293
 
<a name="l00609"></a>00609     <span class="keywordtype">void</span>
294
 
<a name="l00610"></a>00610     <a class="code" href="classsbuild_1_1chroot.html#a4844437f1099540aece29ecbedd2c17" title="Print detailed information about the chroot to a stream.">print_details</a> (std::ostream&amp; stream) <span class="keyword">const</span>;
295
 
<a name="l00611"></a>00611 
296
 
<a name="l00619"></a>00619     <span class="keyword">virtual</span> <span class="keywordtype">void</span>
297
 
<a name="l00620"></a>00620     <a class="code" href="classsbuild_1_1chroot.html#f4ee37fc797317dc1f87ad54bab7adc7" title="Copy the chroot properties into a keyfile.">get_keyfile</a> (<a class="code" href="classsbuild_1_1basic__keyfile.html" title="Configuration file parser.">keyfile</a>&amp; <a class="code" href="classsbuild_1_1basic__keyfile.html" title="Configuration file parser.">keyfile</a>) <span class="keyword">const</span>;
298
 
<a name="l00621"></a>00621 
299
 
<a name="l00629"></a>00629     <span class="keyword">virtual</span> <span class="keywordtype">void</span>
300
 
<a name="l00630"></a>00630     <a class="code" href="classsbuild_1_1chroot.html#3bacd7509aaf9f062be635bca5f27a01" title="Set the chroot properties from a keyfile.">set_keyfile</a> (<a class="code" href="classsbuild_1_1basic__keyfile.html" title="Configuration file parser.">keyfile</a> <span class="keyword">const</span>&amp; <a class="code" href="classsbuild_1_1basic__keyfile.html" title="Configuration file parser.">keyfile</a>);
301
 
<a name="l00631"></a>00631 
302
 
<a name="l00632"></a>00632   <span class="keyword">private</span>:
303
 
<a name="l00634"></a><a class="code" href="classsbuild_1_1chroot.html#6ea91940964e72fcbec1cc2b6a269624">00634</a>     std::string   <a class="code" href="classsbuild_1_1chroot.html#6ea91940964e72fcbec1cc2b6a269624" title="Chroot name.">name</a>;
304
 
<a name="l00636"></a><a class="code" href="classsbuild_1_1chroot.html#b8200f4c23cfdab4a49e2709294bb547">00636</a>     std::string   <a class="code" href="classsbuild_1_1chroot.html#b8200f4c23cfdab4a49e2709294bb547" title="Chroot description.">description</a>;
305
 
<a name="l00638"></a><a class="code" href="classsbuild_1_1chroot.html#1e54020aa9e70dade6f6a3afb6cf7ca7">00638</a>     <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>  <a class="code" href="classsbuild_1_1chroot.html#1e54020aa9e70dade6f6a3afb6cf7ca7" title="Chroot prioroty.">priority</a>;
306
 
<a name="l00640"></a><a class="code" href="classsbuild_1_1chroot.html#4bbd7af456b09845b6bf1bd3eefafc42">00640</a>     <a class="code" href="namespacesbuild.html#4268c3202ab4b20cbebf347a6d69393f" title="A string vector.">string_list</a>   <a class="code" href="classsbuild_1_1chroot.html#4bbd7af456b09845b6bf1bd3eefafc42" title="Users allowed to access the chroot.">users</a>;
307
 
<a name="l00642"></a><a class="code" href="classsbuild_1_1chroot.html#397c5fc1852eb0db5be420e0a1d4c7f4">00642</a>     <a class="code" href="namespacesbuild.html#4268c3202ab4b20cbebf347a6d69393f" title="A string vector.">string_list</a>   <a class="code" href="classsbuild_1_1chroot.html#397c5fc1852eb0db5be420e0a1d4c7f4" title="Groups allowed to access the chroot.">groups</a>;
308
 
<a name="l00644"></a><a class="code" href="classsbuild_1_1chroot.html#884700c27d60168e33ae51fa7026ad35">00644</a>     <a class="code" href="namespacesbuild.html#4268c3202ab4b20cbebf347a6d69393f" title="A string vector.">string_list</a>   <a class="code" href="classsbuild_1_1chroot.html#884700c27d60168e33ae51fa7026ad35" title="Users allowed to access the chroot as root.">root_users</a>;
309
 
<a name="l00646"></a><a class="code" href="classsbuild_1_1chroot.html#51ce6e9524375e2872ee837c1fc60669">00646</a>     <a class="code" href="namespacesbuild.html#4268c3202ab4b20cbebf347a6d69393f" title="A string vector.">string_list</a>   <a class="code" href="classsbuild_1_1chroot.html#51ce6e9524375e2872ee837c1fc60669" title="Groups allowed to access the chroot as root.">root_groups</a>;
310
 
<a name="l00648"></a><a class="code" href="classsbuild_1_1chroot.html#3a61cf930983a30189ebcbd8b884d1df">00648</a>     <a class="code" href="namespacesbuild.html#4268c3202ab4b20cbebf347a6d69393f" title="A string vector.">string_list</a>   <a class="code" href="classsbuild_1_1chroot.html#3a61cf930983a30189ebcbd8b884d1df" title="Alternative names for the chroot.">aliases</a>;
311
 
<a name="l00650"></a><a class="code" href="classsbuild_1_1chroot.html#04f76f9a561929a5d54f5d4d617b4241">00650</a>     <a class="code" href="classsbuild_1_1regex.html" title="POSIX extended regular expression.">regex</a>         <a class="code" href="classsbuild_1_1chroot.html#04f76f9a561929a5d54f5d4d617b4241" title="Environment filter regex.">environment_filter</a>;
312
 
<a name="l00652"></a><a class="code" href="classsbuild_1_1chroot.html#b8ff67da5be7150a891909a17ec48785">00652</a>     std::string   <a class="code" href="classsbuild_1_1chroot.html#b8ff67da5be7150a891909a17ec48785" title="Location to mount chroot in the filesystem (if any).">mount_location</a>;
313
 
<a name="l00654"></a><a class="code" href="classsbuild_1_1chroot.html#efbc5a3c1c7d5cb7a349f70bebaccac1">00654</a>     std::string   <a class="code" href="classsbuild_1_1chroot.html#efbc5a3c1c7d5cb7a349f70bebaccac1" title="Location inside the mount location root.">location</a>;
314
 
<a name="l00656"></a><a class="code" href="classsbuild_1_1chroot.html#0cbaf2ce0f64e8821cbe54b73f9aab67">00656</a>     std::string   <a class="code" href="classsbuild_1_1chroot.html#0cbaf2ce0f64e8821cbe54b73f9aab67" title="Block device to mount (if any).">mount_device</a>;
315
 
<a name="l00658"></a><a class="code" href="classsbuild_1_1chroot.html#72007d7d80cf375329924471b15d7f14">00658</a>     <span class="keywordtype">bool</span>          <a class="code" href="classsbuild_1_1chroot.html#72007d7d80cf375329924471b15d7f14" title="Chroot activity status.">active</a>;
316
 
<a name="l00660"></a><a class="code" href="classsbuild_1_1chroot.html#1ec703cc596b7b78add42c49e0d6a937">00660</a>     <span class="keywordtype">bool</span>          <a class="code" href="classsbuild_1_1chroot.html#1ec703cc596b7b78add42c49e0d6a937" title="Was the chroot automatically generated?">original</a>;
317
 
<a name="l00662"></a><a class="code" href="classsbuild_1_1chroot.html#94952ca28167cf294320a42f815f8691">00662</a>     <span class="keywordtype">bool</span>          <a class="code" href="classsbuild_1_1chroot.html#94952ca28167cf294320a42f815f8691" title="Run chroot setup scripts?">run_setup_scripts</a>;
318
 
<a name="l00664"></a><a class="code" href="classsbuild_1_1chroot.html#a14a2d20332f3af5cc2fc04aabc1d638">00664</a>     <span class="keywordtype">bool</span>          <a class="code" href="classsbuild_1_1chroot.html#a14a2d20332f3af5cc2fc04aabc1d638" title="Run chroot exec scripts?">run_exec_scripts</a>;
319
 
<a name="l00666"></a><a class="code" href="classsbuild_1_1chroot.html#b5efa4ffa0d627827ee65041633c7331">00666</a>     std::string   <a class="code" href="classsbuild_1_1chroot.html#b5efa4ffa0d627827ee65041633c7331" title="Configuration of the setup and exec scripts.">script_config</a>;
320
 
<a name="l00668"></a><a class="code" href="classsbuild_1_1chroot.html#e7966e5e79acbece662b3b7c21c4a5b5">00668</a>     <a class="code" href="namespacesbuild.html#4268c3202ab4b20cbebf347a6d69393f" title="A string vector.">string_list</a>   <a class="code" href="classsbuild_1_1chroot.html#e7966e5e79acbece662b3b7c21c4a5b5" title="Command prefix.">command_prefix</a>;
321
 
<a name="l00670"></a><a class="code" href="classsbuild_1_1chroot.html#519eda4b474b1d58abf9fa7b39f9f72c">00670</a>     <a class="code" href="classsbuild_1_1personality.html" title="Chroot personality.">personality</a>   <a class="code" href="classsbuild_1_1chroot.html#519eda4b474b1d58abf9fa7b39f9f72c" title="Process execution domain (Linux only).">persona</a>;
322
 
<a name="l00671"></a>00671   };
323
 
<a name="l00672"></a>00672 
324
 
<a name="l00673"></a>00673 }
325
 
<a name="l00674"></a>00674 
326
 
<a name="l00675"></a>00675 <span class="preprocessor">#endif </span><span class="comment">/* SBUILD_CHROOT_H */</span>
 
269
<a name="l00576"></a>00576       <a class="code" href="namespacesbuild.html#4268c3202ab4b20cbebf347a6d69393f" title="A string vector.">string_list</a> used;
 
270
<a name="l00577"></a>00577       rhs-&gt;set_keyfile(keyfile, used);
 
271
<a name="l00578"></a>00578       keyfile.<a class="code" href="classsbuild_1_1basic__keyfile.html#dc9b9a190a245dd6b17b9f76b24c5c6e" title="Check for unused keys in a group.">check_keys</a>(rhs-&gt;get_name(), used);
 
272
<a name="l00579"></a>00579       <span class="keywordflow">return</span> keyfile;
 
273
<a name="l00580"></a>00580     }
 
274
<a name="l00581"></a>00581 
 
275
<a name="l00585"></a>00585     <span class="keyword">friend</span>
 
276
<a name="l00586"></a>00586     <a class="code" href="classsbuild_1_1basic__keyfile.html" title="Configuration file parser.">keyfile</a>&amp;
 
277
<a name="l00587"></a><a class="code" href="classsbuild_1_1chroot.html#80cf448b903d9f2b2c899b86d4d8294f">00587</a>     <a class="code" href="classsbuild_1_1chroot.html#3734d2a34092c36403ef516fdd93b7e8" title="Print detailed information about the chroot to a stream.">operator &lt;&lt; </a>(<a class="code" href="classsbuild_1_1basic__keyfile.html" title="Configuration file parser.">keyfile</a>&amp;   <a class="code" href="classsbuild_1_1basic__keyfile.html" title="Configuration file parser.">keyfile</a>,
 
278
<a name="l00588"></a>00588                  <a class="code" href="classsbuild_1_1chroot.html#ef7d5b607d1a0a4a7ebe1d40e2ec9c3a" title="A shared_ptr to a chroot object.">ptr</a> <span class="keyword">const</span>&amp; rhs)
 
279
<a name="l00589"></a>00589     {
 
280
<a name="l00590"></a>00590       rhs-&gt;get_keyfile(keyfile);
 
281
<a name="l00591"></a>00591       <span class="keywordflow">return</span> keyfile;
 
282
<a name="l00592"></a>00592     }
 
283
<a name="l00593"></a>00593 
 
284
<a name="l00594"></a>00594 
 
285
<a name="l00595"></a>00595   <span class="keyword">protected</span>:
 
286
<a name="l00601"></a>00601     <span class="keyword">virtual</span> <span class="keywordtype">void</span>
 
287
<a name="l00602"></a>00602     <a class="code" href="classsbuild_1_1chroot.html#2f067f08b2a4104503a31a3a12a1f447" title="Get detailed information about the chroot for output.">get_details</a> (<a class="code" href="classsbuild_1_1format__detail.html" title="Format names and values for output.">format_detail</a>&amp; detail) <span class="keyword">const</span>;
 
288
<a name="l00603"></a>00603 
 
289
<a name="l00611"></a>00611     <span class="keywordtype">void</span>
 
290
<a name="l00612"></a>00612     <a class="code" href="classsbuild_1_1chroot.html#b6393db259840e4f76109bddff7bad57" title="Print detailed information about the chroot to a stream.">print_details</a> (std::ostream&amp; stream) <span class="keyword">const</span>;
 
291
<a name="l00613"></a>00613 
 
292
<a name="l00621"></a>00621     <span class="keyword">virtual</span> <span class="keywordtype">void</span>
 
293
<a name="l00622"></a>00622     <a class="code" href="classsbuild_1_1chroot.html#bd88b14c1aae6b73da82d1a59967d86c" title="Copy the chroot properties into a keyfile.">get_keyfile</a> (<a class="code" href="classsbuild_1_1basic__keyfile.html" title="Configuration file parser.">keyfile</a>&amp; <a class="code" href="classsbuild_1_1basic__keyfile.html" title="Configuration file parser.">keyfile</a>) <span class="keyword">const</span>;
 
294
<a name="l00623"></a>00623 
 
295
<a name="l00632"></a>00632     <span class="keyword">virtual</span> <span class="keywordtype">void</span>
 
296
<a name="l00633"></a>00633     <a class="code" href="classsbuild_1_1chroot.html#0b8555f5ea3bc9c03b8be043a2a4d96c" title="Set the chroot properties from a keyfile.">set_keyfile</a> (<a class="code" href="classsbuild_1_1basic__keyfile.html" title="Configuration file parser.">keyfile</a> <span class="keyword">const</span>&amp; <a class="code" href="classsbuild_1_1basic__keyfile.html" title="Configuration file parser.">keyfile</a>,
 
297
<a name="l00634"></a>00634                  <a class="code" href="namespacesbuild.html#4268c3202ab4b20cbebf347a6d69393f" title="A string vector.">string_list</a>&amp;   used_keys);
 
298
<a name="l00635"></a>00635 
 
299
<a name="l00636"></a>00636   <span class="keyword">private</span>:
 
300
<a name="l00638"></a><a class="code" href="classsbuild_1_1chroot.html#6ea91940964e72fcbec1cc2b6a269624">00638</a>     std::string   <a class="code" href="classsbuild_1_1chroot.html#6ea91940964e72fcbec1cc2b6a269624" title="Chroot name.">name</a>;
 
301
<a name="l00640"></a><a class="code" href="classsbuild_1_1chroot.html#b8200f4c23cfdab4a49e2709294bb547">00640</a>     std::string   <a class="code" href="classsbuild_1_1chroot.html#b8200f4c23cfdab4a49e2709294bb547" title="Chroot description.">description</a>;
 
302
<a name="l00642"></a><a class="code" href="classsbuild_1_1chroot.html#1e54020aa9e70dade6f6a3afb6cf7ca7">00642</a>     <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>  <a class="code" href="classsbuild_1_1chroot.html#1e54020aa9e70dade6f6a3afb6cf7ca7" title="Chroot prioroty.">priority</a>;
 
303
<a name="l00644"></a><a class="code" href="classsbuild_1_1chroot.html#4bbd7af456b09845b6bf1bd3eefafc42">00644</a>     <a class="code" href="namespacesbuild.html#4268c3202ab4b20cbebf347a6d69393f" title="A string vector.">string_list</a>   <a class="code" href="classsbuild_1_1chroot.html#4bbd7af456b09845b6bf1bd3eefafc42" title="Users allowed to access the chroot.">users</a>;
 
304
<a name="l00646"></a><a class="code" href="classsbuild_1_1chroot.html#397c5fc1852eb0db5be420e0a1d4c7f4">00646</a>     <a class="code" href="namespacesbuild.html#4268c3202ab4b20cbebf347a6d69393f" title="A string vector.">string_list</a>   <a class="code" href="classsbuild_1_1chroot.html#397c5fc1852eb0db5be420e0a1d4c7f4" title="Groups allowed to access the chroot.">groups</a>;
 
305
<a name="l00648"></a><a class="code" href="classsbuild_1_1chroot.html#884700c27d60168e33ae51fa7026ad35">00648</a>     <a class="code" href="namespacesbuild.html#4268c3202ab4b20cbebf347a6d69393f" title="A string vector.">string_list</a>   <a class="code" href="classsbuild_1_1chroot.html#884700c27d60168e33ae51fa7026ad35" title="Users allowed to access the chroot as root.">root_users</a>;
 
306
<a name="l00650"></a><a class="code" href="classsbuild_1_1chroot.html#51ce6e9524375e2872ee837c1fc60669">00650</a>     <a class="code" href="namespacesbuild.html#4268c3202ab4b20cbebf347a6d69393f" title="A string vector.">string_list</a>   <a class="code" href="classsbuild_1_1chroot.html#51ce6e9524375e2872ee837c1fc60669" title="Groups allowed to access the chroot as root.">root_groups</a>;
 
307
<a name="l00652"></a><a class="code" href="classsbuild_1_1chroot.html#3a61cf930983a30189ebcbd8b884d1df">00652</a>     <a class="code" href="namespacesbuild.html#4268c3202ab4b20cbebf347a6d69393f" title="A string vector.">string_list</a>   <a class="code" href="classsbuild_1_1chroot.html#3a61cf930983a30189ebcbd8b884d1df" title="Alternative names for the chroot.">aliases</a>;
 
308
<a name="l00654"></a><a class="code" href="classsbuild_1_1chroot.html#04f76f9a561929a5d54f5d4d617b4241">00654</a>     <a class="code" href="classsbuild_1_1regex.html" title="POSIX extended regular expression.">regex</a>         <a class="code" href="classsbuild_1_1chroot.html#04f76f9a561929a5d54f5d4d617b4241" title="Environment filter regex.">environment_filter</a>;
 
309
<a name="l00656"></a><a class="code" href="classsbuild_1_1chroot.html#b8ff67da5be7150a891909a17ec48785">00656</a>     std::string   <a class="code" href="classsbuild_1_1chroot.html#b8ff67da5be7150a891909a17ec48785" title="Location to mount chroot in the filesystem (if any).">mount_location</a>;
 
310
<a name="l00658"></a><a class="code" href="classsbuild_1_1chroot.html#efbc5a3c1c7d5cb7a349f70bebaccac1">00658</a>     std::string   <a class="code" href="classsbuild_1_1chroot.html#efbc5a3c1c7d5cb7a349f70bebaccac1" title="Location inside the mount location root.">location</a>;
 
311
<a name="l00660"></a><a class="code" href="classsbuild_1_1chroot.html#0cbaf2ce0f64e8821cbe54b73f9aab67">00660</a>     std::string   <a class="code" href="classsbuild_1_1chroot.html#0cbaf2ce0f64e8821cbe54b73f9aab67" title="Block device to mount (if any).">mount_device</a>;
 
312
<a name="l00662"></a><a class="code" href="classsbuild_1_1chroot.html#72007d7d80cf375329924471b15d7f14">00662</a>     <span class="keywordtype">bool</span>          <a class="code" href="classsbuild_1_1chroot.html#72007d7d80cf375329924471b15d7f14" title="Chroot activity status.">active</a>;
 
313
<a name="l00664"></a><a class="code" href="classsbuild_1_1chroot.html#1ec703cc596b7b78add42c49e0d6a937">00664</a>     <span class="keywordtype">bool</span>          <a class="code" href="classsbuild_1_1chroot.html#1ec703cc596b7b78add42c49e0d6a937" title="Was the chroot automatically generated?">original</a>;
 
314
<a name="l00666"></a><a class="code" href="classsbuild_1_1chroot.html#94952ca28167cf294320a42f815f8691">00666</a>     <span class="keywordtype">bool</span>          <a class="code" href="classsbuild_1_1chroot.html#94952ca28167cf294320a42f815f8691" title="Run chroot setup scripts?">run_setup_scripts</a>;
 
315
<a name="l00668"></a><a class="code" href="classsbuild_1_1chroot.html#a14a2d20332f3af5cc2fc04aabc1d638">00668</a>     <span class="keywordtype">bool</span>          <a class="code" href="classsbuild_1_1chroot.html#a14a2d20332f3af5cc2fc04aabc1d638" title="Run chroot exec scripts?">run_exec_scripts</a>;
 
316
<a name="l00670"></a><a class="code" href="classsbuild_1_1chroot.html#b5efa4ffa0d627827ee65041633c7331">00670</a>     std::string   <a class="code" href="classsbuild_1_1chroot.html#b5efa4ffa0d627827ee65041633c7331" title="Configuration of the setup and exec scripts.">script_config</a>;
 
317
<a name="l00672"></a><a class="code" href="classsbuild_1_1chroot.html#e7966e5e79acbece662b3b7c21c4a5b5">00672</a>     <a class="code" href="namespacesbuild.html#4268c3202ab4b20cbebf347a6d69393f" title="A string vector.">string_list</a>   <a class="code" href="classsbuild_1_1chroot.html#e7966e5e79acbece662b3b7c21c4a5b5" title="Command prefix.">command_prefix</a>;
 
318
<a name="l00674"></a><a class="code" href="classsbuild_1_1chroot.html#519eda4b474b1d58abf9fa7b39f9f72c">00674</a>     <a class="code" href="classsbuild_1_1personality.html" title="Chroot personality.">personality</a>   <a class="code" href="classsbuild_1_1chroot.html#519eda4b474b1d58abf9fa7b39f9f72c" title="Process execution domain (Linux only).">persona</a>;
 
319
<a name="l00675"></a>00675   };
327
320
<a name="l00676"></a>00676 
328
 
<a name="l00677"></a>00677 <span class="comment">/*</span>
329
 
<a name="l00678"></a>00678 <span class="comment"> * Local Variables:</span>
330
 
<a name="l00679"></a>00679 <span class="comment"> * mode:C++</span>
331
 
<a name="l00680"></a>00680 <span class="comment"> * End:</span>
332
 
<a name="l00681"></a>00681 <span class="comment"> */</span>
333
 
</pre></div><hr size="1"><address style="text-align: right;"><small>Generated on Sun Jul 8 21:23:22 2007 for sbuild by&nbsp;
 
321
<a name="l00683"></a>00683   <a class="code" href="classsbuild_1_1chroot.html#ef89631e62590a5864a644e1d6c19e8e" title="Chroot session properties.">chroot::session_flags</a>
 
322
<a name="l00684"></a><a class="code" href="namespacesbuild.html#735fea11d5c7ed4bc188247ba455ed44">00684</a>   <span class="keyword">inline</span> <a class="code" href="namespacesbuild.html#735fea11d5c7ed4bc188247ba455ed44" title="Bitwise-OR of specifed session properties.">operator | </a>(<a class="code" href="classsbuild_1_1chroot.html#ef89631e62590a5864a644e1d6c19e8e" title="Chroot session properties.">chroot::session_flags</a> <span class="keyword">const</span>&amp; lhs,
 
323
<a name="l00685"></a>00685                      <a class="code" href="classsbuild_1_1chroot.html#ef89631e62590a5864a644e1d6c19e8e" title="Chroot session properties.">chroot::session_flags</a> <span class="keyword">const</span>&amp; rhs)
 
324
<a name="l00686"></a>00686   {
 
325
<a name="l00687"></a>00687     <span class="keywordflow">return</span> <span class="keyword">static_cast&lt;</span><a class="code" href="classsbuild_1_1chroot.html#ef89631e62590a5864a644e1d6c19e8e" title="Chroot session properties.">chroot::session_flags</a><span class="keyword">&gt;</span>
 
326
<a name="l00688"></a>00688       (<span class="keyword">static_cast&lt;</span><span class="keywordtype">int</span><span class="keyword">&gt;</span>(lhs) | static_cast&lt;int&gt;(rhs));
 
327
<a name="l00689"></a>00689   }
 
328
<a name="l00690"></a>00690 
 
329
<a name="l00697"></a>00697   <a class="code" href="classsbuild_1_1chroot.html#ef89631e62590a5864a644e1d6c19e8e" title="Chroot session properties.">chroot::session_flags</a>
 
330
<a name="l00698"></a><a class="code" href="namespacesbuild.html#aaaaee75e2972c0714c6f4f6d5dc7a13">00698</a>   <span class="keyword">inline</span> <a class="code" href="namespacesbuild.html#aaaaee75e2972c0714c6f4f6d5dc7a13" title="Bitwise-AND of specifed session properties.">operator &amp; </a>(<a class="code" href="classsbuild_1_1chroot.html#ef89631e62590a5864a644e1d6c19e8e" title="Chroot session properties.">chroot::session_flags</a> <span class="keyword">const</span>&amp; lhs,
 
331
<a name="l00699"></a>00699                      <a class="code" href="classsbuild_1_1chroot.html#ef89631e62590a5864a644e1d6c19e8e" title="Chroot session properties.">chroot::session_flags</a> <span class="keyword">const</span>&amp; rhs)
 
332
<a name="l00700"></a>00700   {
 
333
<a name="l00701"></a>00701     <span class="keywordflow">return</span> <span class="keyword">static_cast&lt;</span><a class="code" href="classsbuild_1_1chroot.html#ef89631e62590a5864a644e1d6c19e8e" title="Chroot session properties.">chroot::session_flags</a><span class="keyword">&gt;</span>
 
334
<a name="l00702"></a>00702       (<span class="keyword">static_cast&lt;</span><span class="keywordtype">int</span><span class="keyword">&gt;</span>(lhs) &amp; static_cast&lt;int&gt;(rhs));
 
335
<a name="l00703"></a>00703   }
 
336
<a name="l00704"></a>00704 
 
337
<a name="l00705"></a>00705 }
 
338
<a name="l00706"></a>00706 
 
339
<a name="l00707"></a>00707 <span class="preprocessor">#endif </span><span class="comment">/* SBUILD_CHROOT_H */</span>
 
340
<a name="l00708"></a>00708 
 
341
<a name="l00709"></a>00709 <span class="comment">/*</span>
 
342
<a name="l00710"></a>00710 <span class="comment"> * Local Variables:</span>
 
343
<a name="l00711"></a>00711 <span class="comment"> * mode:C++</span>
 
344
<a name="l00712"></a>00712 <span class="comment"> * End:</span>
 
345
<a name="l00713"></a>00713 <span class="comment"> */</span>
 
346
</pre></div><hr size="1"><address style="text-align: right;"><small>Generated on Mon Jan 21 00:37:45 2008 for sbuild by&nbsp;
334
347
<a href="http://www.doxygen.org/index.html">
335
 
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.2 </small></address>
 
348
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.4 </small></address>
336
349
</body>
337
350
</html>