~stgraber/ubuntu/quantal/lxc/apparmor-profiles-rework

« back to all changes in this revision

Viewing changes to src/lxc/state.c

  • Committer: Bazaar Package Importer
  • Author(s): Guido Trotter
  • Date: 2010-08-04 13:23:42 UTC
  • mfrom: (1.2.5 upstream)
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: james.westby@ubuntu.com-20100804132342-ulzknee292oqfe2s
* New upstream version
* Convert libcap dependency to versioned (closes: #571527)
* Bump up standards version to 3.9.0
* Fix too-deep /usr/lib/lxc/lxc path (closes: #587847)
* Add init script (closes: #573830)
  Thanks to Przemysław Knycz <pknycz@kolnet.eu> for the base example
* Bump up standards version (3.9.1)

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
        return -1;
64
64
}
65
65
 
66
 
int lxc_rmstate(const char *name)
67
 
{
68
 
        char file[MAXPATHLEN];
69
 
        snprintf(file, MAXPATHLEN, LXCPATH "/%s/state", name);
70
 
        unlink(file);
71
 
        return 0;
72
 
}
73
 
 
74
66
static int freezer_state(const char *name)
75
67
{
76
68
        char *nsgroup;