
# jtwi_r1.xpf

# Copyright (c) 2003-2004 By Symbian Software Ltd. All rights reserved.

# This file defines the JTWI r1 security policy. DO NOT EDIT

FormatVersion: 1.0

Domains

	Domain: "**TRUSTED**"

		FileAccess

			DriveList: A B C D E F G H I J K L M N O P Q R S T U V W X Y

				PathAccess: Read Write

					"\"

				EndPathAccess

				PathAccess:

					"System\data\midp2\systemams\"

					"System\MIDlets\"

				EndPathAccess

				PathMapping:

					""    ""

				EndPathMapping

			EndDriveList

			DriveList: Z

				PathAccess: Read

					"\"

				EndPathAccess

				PathMapping:

					""    ""

				EndPathMapping

			EndDriveList

		EndFileAccess

	EndDomain

	Domain: [UNTRUSTED]

		ConnectionFilters

			NegativePortFilter: "datagram"

				Port:	"9200"

				Port:	"9201"

				Port:	"9202"

				Port:	"9203"

			EndNegativePortFilter

			NegativePortFilter: "socket"

				Port:     "80"

				Port:	 "443"

				Port:	"8080"

			EndNegativePortFilter

			NegativePortFilter: "ssl"

				Port:	 "443"

			EndNegativePortFilter

		EndConnectionFilters

		FileAccess

			DriveList: C

				PathAccess: Read Write

					"\"

				EndPathAccess

				PathMapping:

					"Audio"    "documents\audio"

					"Images"   "documents\images"

					"Video"    "documents\video"

					"Private"  MIDLET_HOME "private"

					"midp2"    "midp2\test"

				EndPathMapping

			EndDriveList

			DriveList: D E F X

				PathAccess: Read Write

					"\"

				EndPathAccess

				PathMapping:

					"Audio"    "Audio"

					"Images"   "Images"

					"Video"    "Video"

				EndPathMapping

			EndDriveList

		EndFileAccess

	EndDomain

EndDomains

FunctionGroups

	FunctionGroup: "Application Auto Invocation"

		Permissions

			javax.microedition.io.PushRegistry

		EndPermissions

	EndFunctionGroup

	FunctionGroup: "Local Connectivity"

		Permissions
			javax.microedition.io.Connector.comm
			javax.microedition.io.Connector.bluetooth.client
			javax.microedition.io.Connector.bluetooth.server
			javax.microedition.io.Connector.tcpobex.client
			javax.microedition.io.Connector.tcpobex.server
			javax.microedition.io.Connector.btgoep.client
			javax.microedition.io.Connector.btgoep.server
			javax.microedition.io.Connector.irdaobex.client
			javax.microedition.io.Connector.irdaobex.server
			javax.obex.ClientSession
			javax.obex.Operation
		EndPermissions

	EndFunctionGroup

	FunctionGroup: "Messaging"

		Permissions

			javax.microedition.io.Connector.cbs
			javax.microedition.io.Connector.sms
			javax.wireless.messaging.cbs.receive
			javax.wireless.messaging.sms.receive
			javax.wireless.messaging.sms.send

		EndPermissions

	EndFunctionGroup

	FunctionGroup: "Multimedia Recording"

		Permissions

			javax.microedition.media.control.RecordControl
			javax.microedition.media.control.VideoControl.getSnapshot

		EndPermissions

	EndFunctionGroup

	FunctionGroup: "Net Access"

		Permissions

			javax.microedition.io.Connector.datagram
			javax.microedition.io.Connector.datagramreceiver
			javax.microedition.io.Connector.http
			javax.microedition.io.Connector.https
			javax.microedition.io.Connector.serversocket
			javax.microedition.io.Connector.socket
			javax.microedition.io.Connector.ssl

		EndPermissions

	EndFunctionGroup

	FunctionGroup: "Read User Data Access"

		Permissions

			javax.microedition.io.Connector.file.read
			javax.microedition.pim.ContactList.read
			javax.microedition.pim.EventList.read
			javax.microedition.pim.ToDoList.read

		EndPermissions

	EndFunctionGroup

	FunctionGroup: "Write User Data Access"

		Permissions

			javax.microedition.io.Connector.file.write
			javax.microedition.pim.ContactList.write
			javax.microedition.pim.EventList.write
			javax.microedition.pim.ToDoList.write

		EndPermissions

	EndFunctionGroup


EndFunctionGroups

Bindings

#	MIDlets in trusted MIDlet suites can do anything

	DomainBindings: "**TRUSTED**"

		FunctionGroupBinding: [*]

			Permission:	Allowed

		EndFunctionGroupBinding

	EndDomainBindings

# MIDlets in untrusted MIDlet suites need user permission before doing anything

	DomainBindings: [UNTRUSTED]

		FunctionGroupBinding: "Application Auto Invocation"

			Permission:		User

			DefaultMode:	Session

			MaximumMode:	Session

		EndFunctionGroupBinding

		FunctionGroupBinding: "Local Connectivity"

			Permission:		User

			DefaultMode:	Session

			MaximumMode:	Blanket

		EndFunctionGroupBinding

		FunctionGroupBinding: "Messaging"

			Permission:		User

			DefaultMode:	Oneshot

			MaximumMode:	Oneshot

			Rules

				SimpleMapping: javax.microedition.io.Connector.cbs

					FunctionGroupMode:	Oneshot

					PermissionMode:		Blanket

				EndSimpleMapping

				SimpleMapping: javax.microedition.io.Connector.sms

					FunctionGroupMode:	Oneshot

					PermissionMode:		Blanket

				EndSimpleMapping

				SimpleMapping: javax.wireless.messaging.cbs.receive

					FunctionGroupMode:	Oneshot

					PermissionMode:		Blanket

				EndSimpleMapping

				SimpleMapping: javax.wireless.messaging.sms.receive

					FunctionGroupMode:	Oneshot

					PermissionMode:		Blanket

				EndSimpleMapping

			EndRules

		EndFunctionGroupBinding

		FunctionGroupBinding: "Multimedia Recording"

			Permission:		User

			DefaultMode:	Oneshot

			MaximumMode:	Session

		EndFunctionGroupBinding

		FunctionGroupBinding: "Net Access"

			Permission:		User

			DefaultMode:	Session

			MaximumMode:	Session

		EndFunctionGroupBinding

		FunctionGroupBinding: "Read User Data Access"

			Permission:		User

			DefaultMode:	Oneshot

			MaximumMode:	Oneshot

		EndFunctionGroupBinding

		FunctionGroupBinding: "Write User Data Access"

			Permission:		User

			DefaultMode:	Oneshot

			MaximumMode:	Oneshot

		EndFunctionGroupBinding

	EndDomainBindings

EndBindings
