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

« back to all changes in this revision

Viewing changes to sbuild/sbuild-chroot-source.h

  • 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:
1
 
/* Copyright © 2005-2007  Roger Leigh <rleigh@debian.org>
 
1
/* Copyright © 2005-2008  Roger Leigh <rleigh@debian.org>
2
2
 *
3
 
 * schroot is free software; you can redistribute it and/or modify it
 
3
 * schroot is free software: you can redistribute it and/or modify it
4
4
 * under the terms of the GNU General Public License as published by
5
 
 * the Free Software Foundation; either version 2 of the License, or
 
5
 * the Free Software Foundation, either version 3 of the License, or
6
6
 * (at your option) any later version.
7
7
 *
8
8
 * schroot is distributed in the hope that it will be useful, but
11
11
 * General Public License for more details.
12
12
 *
13
13
 * You should have received a copy of the GNU General Public License
14
 
 * along with this program; if not, write to the Free Software
15
 
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
16
 
 * MA  02111-1307  USA
 
14
 * along with this program.  If not, see
 
15
 * <http://www.gnu.org/licenses/>.
17
16
 *
18
17
 *********************************************************************/
19
18
 
104
103
 
105
104
    /**
106
105
     * Get the users allowed to access the source chroot as root.
107
 
     * Mmebers of these users can switch to root without
 
106
     * Members of these users can switch to root without
108
107
     * authenticating themselves.
109
108
     *
110
109
     * @returns a list of users.
114
113
 
115
114
    /**
116
115
     * Set the users allowed to access the source chroot as root.
117
 
     * Mmebers of these users can switch to root without
 
116
     * Members of these users can switch to root without
118
117
     * authenticating themselves.
119
118
     *
120
119
     * @param users a list of users.
124
123
 
125
124
    /**
126
125
     * Get the groups allowed to access the source chroot as root.
127
 
     * Mmebers of these groups can switch to root without
 
126
     * Members of these groups can switch to root without
128
127
     * authenticating themselves.
129
128
     *
130
129
     * @returns a list of groups.
134
133
 
135
134
    /**
136
135
     * Set the groups allowed to access the source chroot as root.
137
 
     * Mmebers of these groups can switch to root without
 
136
     * Members of these groups can switch to root without
138
137
     * authenticating themselves.
139
138
     *
140
139
     * @param groups a list of groups.
146
145
    setup_env (environment& env);
147
146
 
148
147
  protected:
 
148
    virtual session_flags
 
149
    get_session_flags () const;
 
150
 
149
151
    virtual void
150
152
    get_details (format_detail& detail) const;
151
153
 
153
155
    get_keyfile (keyfile& keyfile) const;
154
156
 
155
157
    void
156
 
    set_keyfile (keyfile const& keyfile);
 
158
    set_keyfile (keyfile const& keyfile,
 
159
                 string_list&   used_keys);
157
160
 
158
161
  private:
 
162
    /// Is the chroot source or clone?
 
163
    bool          is_source;
159
164
    /// Users allowed to access the source chroot.
160
165
    string_list   source_users;
161
166
    /// Groups allowed to access the source chroot.