Remove list of Rainbow exemptions

This commit is contained in:
Tomeu Vizoso 2009-08-01 19:36:23 +02:00
parent 43167172b9
commit 10e84fe8fa

View File

@ -204,16 +204,8 @@ class ActivityCreationHandler(gobject.GObject):
self._bundle = bundle self._bundle = bundle
self._service_name = bundle.get_bundle_id() self._service_name = bundle.get_bundle_id()
self._handle = handle self._handle = handle
self._use_rainbow = os.path.exists('/etc/olpc-security')
if self._service_name in ['org.laptop.JournalActivity',
'org.laptop.Terminal',
'org.laptop.Log',
'org.laptop.Analyze']:
self._use_rainbow = False
bus = dbus.SessionBus() bus = dbus.SessionBus()
bus_object = bus.get_object(_SHELL_SERVICE, _SHELL_PATH) bus_object = bus.get_object(_SHELL_SERVICE, _SHELL_PATH)
self._shell = dbus.Interface(bus_object, _SHELL_IFACE) self._shell = dbus.Interface(bus_object, _SHELL_IFACE)
@ -252,7 +244,7 @@ class ActivityCreationHandler(gobject.GObject):
self._handle.uri) self._handle.uri)
environment_dir = None environment_dir = None
if self._use_rainbow: if os.path.exists('/etc/olpc-security'):
environment_dir = tempfile.mkdtemp() environment_dir = tempfile.mkdtemp()
command = ['/usr/bin/sudo', '-E', '--', command = ['/usr/bin/sudo', '-E', '--',
'/usr/bin/rainbow-run', '/usr/bin/rainbow-run',