framework.checkAdminPermission(framework.systemBundle, AdminPermission.PERMISSION);
SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkPermission(new AllPermission());
	public void setDefaultPermissions(PermissionInfo[] permissions) {		framework.checkAdminPermission(framework.systemBundle, AdminPermission.PERMISSION);		PermissionStorage storage = new org.eclipse.osgi.framework.internal.core.SecurePermissionStorage(this.storage);		try {			String[] data = makePermissionData(permissions);			if (Debug.DEBUG && Debug.DEBUG_SECURITY) {				Debug.println("Setting default permissions"); //$NON-NLS-1$				if (data == null) {					Debug.println("  <none>"); //$NON-NLS-1$				} else {					for (int i = 0; i < data.length; i++) {						Debug.println("  " + data[i]); //$NON-NLS-1$					}				}			}			storage.setPermissionData(null, data);		} catch (IOException e) {			framework.publishFrameworkEvent(FrameworkEvent.ERROR, framework.systemBundle, e);			return;		}		defaultAssignedPermissions.setAssignedPermissions(createDefaultAssignedPermissions(permissions), true);	}