~ubuntu-branches/ubuntu/precise/virtualbox/precise-updates

« back to all changes in this revision

Viewing changes to src/VBox/HostDrivers/Support/SUPR3HardenedVerify.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2011-07-04 13:02:31 UTC
  • mfrom: (3.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20110704130231-l843es6wqhx614n7
Tags: 4.0.10-dfsg-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Add Apport hook.
    - debian/virtualbox-ose.files/source_virtualbox-ose.py
    - debian/virtualbox-ose.install
  - Drop *-source packages.
* Add the Modaliases control field manually for maximum backportability.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1187
1187
           permit grand parents and beyond to be group writable by admin. */
1188
1188
        if (pFsObjState->Stat.st_gid != 80 /*admin*/) /** @todo dynamically resolve the admin group? */
1189
1189
#endif
 
1190
#ifdef RT_OS_FREEBSD
 
1191
        /* PC-BSD 9 has group-writable application directory, similar to OSX and
 
1192
           their Applications directory */
 
1193
        if (pFsObjState->Stat.st_gid != 5 /*operators*/) /* Allow operators group-writes */
 
1194
#endif
1190
1195
            return supR3HardenedSetError3(VERR_SUPLIB_WRITE_NON_SYS_GROUP, pErrInfo,
1191
1196
                                          "The group is not a system group and it has write access to '", pszPath, "'");
1192
1197
    }