public inbox for mauve-patches@sourceware.org
 help / color / mirror / Atom feed
From: Gary Benson <gbenson@redhat.com>
To: mauve-patches@sources.redhat.com
Subject: FYI: java.lang.Runtime exec() throwpoint tests fix
Date: Fri, 27 Jan 2006 15:25:00 -0000	[thread overview]
Message-ID: <20060127152533.GH5116@redhat.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 95 bytes --]

Hi again,

My latest commit fixes the various exec() tests in java.lang.Runtime.

Cheers,
Gary

[-- Attachment #2: patch --]
[-- Type: text/plain, Size: 3114 bytes --]

Index: ChangeLog
===================================================================
RCS file: /cvs/mauve/mauve/ChangeLog,v
retrieving revision 1.1379
diff -u -r1.1379 ChangeLog
--- ChangeLog	27 Jan 2006 13:12:23 -0000	1.1379
+++ ChangeLog	27 Jan 2006 15:19:19 -0000
@@ -1,3 +1,7 @@
+2006-01-27  Gary Benson <gbenson@redhat.com>
+
+	* gnu/testlet/java/lang/Runtime/security.java: Ignore the
+	modifyThread check that Classpath's reference VMProcess calls.
+
 2006-01-27  Gary Benson <gbenson@redhat.com>
 
 2006-01-27  Gary Benson <gbenson@redhat.com>
Index: gnu/testlet/java/lang/Runtime/security.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/java/lang/Runtime/security.java,v
retrieving revision 1.1
diff -u -r1.1 security.java
--- gnu/testlet/java/lang/Runtime/security.java	27 Jan 2006 13:12:23 -0000	1.1
+++ gnu/testlet/java/lang/Runtime/security.java	27 Jan 2006 15:19:19 -0000
@@ -48,6 +48,8 @@
 
       Permission[] executeCommand = new Permission[] {
 	new FilePermission(sCommand, "execute")};
+      Permission[] modifyThread = new Permission[] {
+	new RuntimePermission("modifyThread")};
 
       Permission[] exitVM = new Permission[] {
 	new RuntimePermission("exitVM")};
@@ -69,7 +71,7 @@
 	// security: java.lang.Runtime-exec(String)
 	harness.checkPoint("exec(String)");
 	try {
-	  sm.prepareChecks(executeCommand, noPerms);
+	  sm.prepareChecks(executeCommand, modifyThread);
 	  runtime.exec(sCommand).waitFor();
 	  sm.checkAllChecked(harness);
 	}
@@ -81,7 +83,7 @@
 	// security: java.lang.Runtime-exec(String, String[])
 	harness.checkPoint("exec(String, String[])");
 	try {
-	  sm.prepareChecks(executeCommand, noPerms);
+	  sm.prepareChecks(executeCommand, modifyThread);
 	  runtime.exec(sCommand, null).waitFor();
 	  sm.checkAllChecked(harness);
 	}
@@ -93,7 +95,7 @@
 	// security: java.lang.Runtime-exec(String, String[], File)
 	harness.checkPoint("exec(String, String[], File)");
 	try {
-	  sm.prepareChecks(executeCommand, noPerms);
+	  sm.prepareChecks(executeCommand, modifyThread);
 	  runtime.exec(sCommand, null, null).waitFor();
 	  sm.checkAllChecked(harness);
 	}
@@ -105,7 +107,7 @@
 	// security: java.lang.Runtime-exec(String[])
 	harness.checkPoint("exec(String[])");
 	try {
-	  sm.prepareChecks(executeCommand, noPerms);
+	  sm.prepareChecks(executeCommand, modifyThread);
 	  runtime.exec(aCommand).waitFor();
 	  sm.checkAllChecked(harness);
 	}
@@ -117,7 +119,7 @@
 	// security: java.lang.Runtime-exec(String[], String[])
 	harness.checkPoint("exec(String[], String[])");
 	try {
-	  sm.prepareChecks(executeCommand, noPerms);
+	  sm.prepareChecks(executeCommand, modifyThread);
 	  runtime.exec(aCommand, null).waitFor();
 	  sm.checkAllChecked(harness);
 	}
@@ -129,7 +131,7 @@
 	// security: java.lang.Runtime-exec(String[], String[], File)
 	harness.checkPoint("exec(String[], String[], File)");
 	try {
-	  sm.prepareChecks(executeCommand, noPerms);
+	  sm.prepareChecks(executeCommand, modifyThread);
 	  runtime.exec(aCommand, null, null).waitFor();
 	  sm.checkAllChecked(harness);
 	}

                 reply	other threads:[~2006-01-27 15:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060127152533.GH5116@redhat.com \
    --to=gbenson@redhat.com \
    --cc=mauve-patches@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).