All of lore.kernel.org
 help / color / mirror / Atom feed
diff for duplicates of <20171011134748.GC15968@rei>

diff --git a/a/1.txt b/N1/1.txt
index 4303cd3..0db09f9 100644
--- a/a/1.txt
+++ b/N1/1.txt
@@ -45,7 +45,7 @@ Hi!
 > +		key_serial_t fake_user_session_keyring;
 > +
 > +		uid = rand();
-> +		if (uid = 0)
+> +		if (uid == 0)
 > +			continue;
 
 We have testcases that look for unused uid with this loop:
@@ -72,12 +72,12 @@ I guess that we should add SAFE_SETREUID() to the tst_safe_macros.h
 library. We do have SAFE_SETRESUID() though, so we may as well use
 SAFE_SETRESUID(uid, -1, -1) here.
 
-> +		if (fake_user_keyring = get_keyring_id(KEY_SPEC_USER_KEYRING)) {
+> +		if (fake_user_keyring == get_keyring_id(KEY_SPEC_USER_KEYRING)) {
 > +			tst_brk(TFAIL,
 > +				"created user keyring for another user");
 > +		}
 > +
-> +		if (fake_user_session_keyring =
+> +		if (fake_user_session_keyring ==
 > +		    get_keyring_id(KEY_SPEC_USER_SESSION_KEYRING)) {
 > +			tst_brk(TFAIL,
 > +				"created user session keyring for another user");
diff --git a/a/content_digest b/N1/content_digest
index 5b3a3ab..c6132b5 100644
--- a/a/content_digest
+++ b/N1/content_digest
@@ -1,7 +1,9 @@
+ "ref\020171010175120.90586-1-ebiggers3@gmail.com\0"
+ "ref\020171010175120.90586-5-ebiggers3@gmail.com\0"
  "From\0Cyril Hrubis <chrubis@suse.cz>\0"
- "Subject\0Re: [LTP] [PATCH 4/4] syscalls/add_key03: new test for forging user keyrings\0"
- "Date\0Wed, 11 Oct 2017 13:47:48 +0000\0"
- "To\0keyrings@vger.kernel.org\0"
+ "Subject\0[LTP] [PATCH 4/4] syscalls/add_key03: new test for forging user keyrings\0"
+ "Date\0Wed, 11 Oct 2017 15:47:48 +0200\0"
+ "To\0ltp@lists.linux.it\0"
  "\00:1\0"
  "b\0"
  "Hi!\n"
@@ -51,7 +53,7 @@
  "> +\t\tkey_serial_t fake_user_session_keyring;\n"
  "> +\n"
  "> +\t\tuid = rand();\n"
- "> +\t\tif (uid = 0)\n"
+ "> +\t\tif (uid == 0)\n"
  "> +\t\t\tcontinue;\n"
  "\n"
  "We have testcases that look for unused uid with this loop:\n"
@@ -78,12 +80,12 @@
  "library. We do have SAFE_SETRESUID() though, so we may as well use\n"
  "SAFE_SETRESUID(uid, -1, -1) here.\n"
  "\n"
- "> +\t\tif (fake_user_keyring = get_keyring_id(KEY_SPEC_USER_KEYRING)) {\n"
+ "> +\t\tif (fake_user_keyring == get_keyring_id(KEY_SPEC_USER_KEYRING)) {\n"
  "> +\t\t\ttst_brk(TFAIL,\n"
  "> +\t\t\t\t\"created user keyring for another user\");\n"
  "> +\t\t}\n"
  "> +\n"
- "> +\t\tif (fake_user_session_keyring =\n"
+ "> +\t\tif (fake_user_session_keyring ==\n"
  "> +\t\t    get_keyring_id(KEY_SPEC_USER_SESSION_KEYRING)) {\n"
  "> +\t\t\ttst_brk(TFAIL,\n"
  "> +\t\t\t\t\"created user session keyring for another user\");\n"
@@ -115,4 +117,4 @@
  "Cyril Hrubis\n"
  chrubis@suse.cz
 
-4eb559aa61725d82e350f5b7d1be4bc9b71a433be226d97bf55b9883083263a3
+d88dd8dfafdd4fe8d2bd167e158259ef28f92a6a6681797dd568766818fa2d52

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.