diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-06-21 22:01:50 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-06-21 22:01:50 +0000 |
commit | cb434991ee327850cfeae8fdfb64e7aafc32ab66 (patch) | |
tree | 92a42f927f00ed4e0c37e76d9af4cd779f4d6985 /pym/portage/cache/sqlite.py | |
parent | 4eb69b2545cf9f061a9d7222e4cdc7c654694e7c (diff) | |
download | portage-cb434991ee327850cfeae8fdfb64e7aafc32ab66.tar.gz portage-cb434991ee327850cfeae8fdfb64e7aafc32ab66.tar.bz2 portage-cb434991ee327850cfeae8fdfb64e7aafc32ab66.zip |
Tweak depcache permission handling so egencache can be run by a user who's
not in the portage group, allowing for better privilege isolation.
svn path=/main/trunk/; revision=13660
Diffstat (limited to 'pym/portage/cache/sqlite.py')
-rw-r--r-- | pym/portage/cache/sqlite.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/cache/sqlite.py b/pym/portage/cache/sqlite.py index ea77391c7..5657617b3 100644 --- a/pym/portage/cache/sqlite.py +++ b/pym/portage/cache/sqlite.py @@ -62,7 +62,7 @@ class database(fs_template.FsBased): database=self._dbpath, **connection_kwargs) self._db_cursor = self._db_connection.cursor() self._db_cursor.execute("PRAGMA encoding = %s" % self._db_escape_string("UTF-8")) - if not apply_secpass_permissions(self._dbpath, gid=portage_gid, mode=070, mask=02): + if not self._ensure_access(self._dbpath): raise cache_errors.InitializationError(self.__class__, "can't ensure perms on %s" % self._dbpath) self._db_init_cache_size(config["cache_bytes"]) self._db_init_synchronous(config["synchronous"]) |