{"push_id":960923599,"size":2,"distinct_size":2,"ref":"refs/heads/2016-02-02/fix_execute_null_ptr_deref","head":"b892ac9ba910e402d62d89daadbb06d4d97f18d1","before":"1ec0e8e3fd766ff77c6128f384772f407f9b75da","commits":[{"sha":"5e75dea27b483b82da615bd5d0bb5b802da95176","author":{"email":"089afc6d81f66f1168a9849e15660feae286e024@stgraber.org","name":"Stéphane Graber"},"message":"Merge pull request #796 from brauner/2016-02-02/fix_execute_null_ptr_deref\n\nFix NULL-ptr derefs for container without rootfs","distinct":true,"url":"https://api.github.com/repos/brauner/lxc/commits/5e75dea27b483b82da615bd5d0bb5b802da95176"},{"sha":"b892ac9ba910e402d62d89daadbb06d4d97f18d1","author":{"email":"48455ab3070520a2d174545c7239d6d0fabd9a83@mailbox.org","name":"Christian Brauner"},"message":"Fix mount_entry_on_generic()\n\nIn mount_entry_on_generic() we dereferenced a NULL pointer whenever a container\nwithout a rootfs was created. (Since mount_entry_on_systemfs() passes them with\nNULL.) We have mount_entry_on_generic() check whether rootfs != NULL.\n\nWe also check whether rootfs != NULL in the functions ovl_mkdir() and\nmount_entry_create_aufs_dirs() and bail immediately. Rationale: For overlay and\naufs lxc.mount.entry entries users give us absolute paths to e.g. workdir and\nupperdir which we create for them. We currently use rootfs->path and the\nlxcpath for the container to check that users give us a sane path to create\nthose directories under and refuse if they do not. If we want to allow overlay\nmounts for containers without a rootfs they can easily be reworked.\n\nSigned-off-by: Christian Brauner <christian.brauner@mailbox.org>","distinct":true,"url":"https://api.github.com/repos/brauner/lxc/commits/b892ac9ba910e402d62d89daadbb06d4d97f18d1"}]}