From unknown Mon Jun 23 13:13:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#26155: Test brief-vs-stat-zero-kernel-lies fails if /proc/cmdline exists but is not readable Resent-From: julama@fake-box.com Original-Sender: "Debbugs-submit" Resent-CC: help-debbugs@gnu.org Resent-Date: Sat, 18 Mar 2017 15:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 26155 X-GNU-PR-Package: diffutilsversion: 3.5hithe test tests/brief-vs-stat-zero-kernel-lies fails with    cat: /proc/cmdline: permission deniedif /proc/cmdline exists but is not readable. this is for example the case on a linux kernel with grsecurity patchset and option grkernsec_proc_user enabled.the fix is easy. the script tests/brief-vs-stat-zero-kernel-lies checks in line 13 only for exists (test -f) of $boot (= /proc/cmdline):    test -f $boot || skip_ no $boot filemaking it check for readability (test -r) solves the problem (as the test is now correctly skipped):    test -r $boot || skip_ file $boot not readablekind regardsjulama X-GNU-PR-Keywords: To: 26155@debbugs.gnu.org X-Debbugs-Original-To: submit@debbugs.gnu.org Reply-To: julama@fake-box.com Received: via spool by submit@debbugs.gnu.org id=B.14898522726436 (code B ref -1); Sat, 18 Mar 2017 15:52:02 +0000 Received: (at submit) by debbugs.gnu.org; 18 Mar 2017 15:51:12 +0000 Received: from localhost ([127.0.0.1]:34099 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cpGdL-0001fi-Oc for submit@debbugs.gnu.org; Sat, 18 Mar 2017 11:51:12 -0400 Received: from astra4649.startdedicated.de ([62.138.6.202]:37199) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cpFmU-0006x8-OC for submit@debbugs.gnu.org; Sat, 18 Mar 2017 10:56:35 -0400 Received: by astra4649.startdedicated.de (Postfix, from userid 33) id 7C80232405A; Sat, 18 Mar 2017 15:56:29 +0100 (CET) X-PHP-Originating-Script: 0:Sendmail.php X-Originating-IP: 109.163.234.7 From: julama@fake-box.com Date: Sat, 18 Mar 2017 15:56:29 +0100 Content-Type: multipart/alternative; boundary="=_b72675f9377cc7cf985bf9a95a935e6d" MIME-Version: 1.0 Message-Id: <20170318145629.7C80232405A@astra4649.startdedicated.de> X-Spam-Score: 0.0 (/) X-Mailman-Approved-At: Sat, 18 Mar 2017 11:51:10 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) --=_b72675f9377cc7cf985bf9a95a935e6d Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Package: diffutilsVersion: 3.5HiThe test tests/brief-vs-stat-zero-kernel= -lies fails with    cat: /proc/cmdline: Permission denied= if /proc/cmdline exists but is not readable. This is for example the cas= e on a Linux kernel with grsecurity patchset and option GRKERNSEC_PROC_U= SER enabled.The fix is easy. The script tests/brief-vs-stat-zero-kernel-= lies checks in line 13 only for exists (test -f) of $boot (=3D /proc/cmd= line):    test -f $boot || skip_ no $boot filemaking it c= heck for readability (test -r) solves the problem (as the test is now co= rrectly skipped):    test -r $boot || skip_ file $boot no= t readableKind regardsjulama --=_b72675f9377cc7cf985bf9a95a935e6d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Package: diffutils
Version: 3.5

Hi

The test tests/b= rief-vs-stat-zero-kernel-lies fails with

    cat:= /proc/cmdline: Permission denied

if /proc/cmdline exists but is= not readable. This is for example the case on a Linux kernel with grsec= urity patchset and option GRKERNSEC_PROC_USER enabled.

The fix is= easy. The script tests/brief-vs-stat-zero-kernel-lies checks in line 13= only for exists (test -f) of $boot (=3D /proc/cmdline):

 &n= bsp;  test -f $boot || skip_ no $boot file

making it check f= or readability (test -r) solves the problem (as the test is now correctl= y skipped):

    test -r $boot || skip_ file $boot= not readable

Kind regards
julama
--=_b72675f9377cc7cf985bf9a95a935e6d-- From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 19 18:57:53 2017 Received: (at control) by debbugs.gnu.org; 19 Mar 2017 22:57:53 +0000 Received: from localhost ([127.0.0.1]:35589 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cpjlp-0008Hl-AA for submit@debbugs.gnu.org; Sun, 19 Mar 2017 18:57:53 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55069) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cpjlo-0008HW-6L for control@debbugs.gnu.org; Sun, 19 Mar 2017 18:57:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cpjli-00022L-Bh for control@debbugs.gnu.org; Sun, 19 Mar 2017 18:57:46 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:51712) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cpjli-00022D-8y for control@debbugs.gnu.org; Sun, 19 Mar 2017 18:57:46 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1cpjli-000720-1B for control@debbugs.gnu.org; Sun, 19 Mar 2017 18:57:46 -0400 Subject: control message for bug 26155 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Sun, 19 Mar 2017 18:57:46 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) reassign 26155 diffutils From unknown Mon Jun 23 13:13:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#26155: Test brief-vs-stat-zero-kernel-lies fails if /proc/cmdline exists but is not readable Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-diffutils@gnu.org Resent-Date: Sun, 19 Mar 2017 23:02:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26155 X-GNU-PR-Package: diffutils X-GNU-PR-Keywords: To: 26155@debbugs.gnu.org Cc: julama@fake-box.com Reply-To: 26155@debbugs.gnu.org, julama@fake-box.com Received: via spool by 26155-submit@debbugs.gnu.org id=B26155.14899645085194 (code B ref 26155); Sun, 19 Mar 2017 23:02:03 +0000 Received: (at 26155) by debbugs.gnu.org; 19 Mar 2017 23:01:48 +0000 Received: from localhost ([127.0.0.1]:35596 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cpjpc-0001LY-0i for submit@debbugs.gnu.org; Sun, 19 Mar 2017 19:01:48 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55972) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cpjpa-0001Gg-0M for 26155@debbugs.gnu.org; Sun, 19 Mar 2017 19:01:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cpjpU-0002t0-7U for 26155@debbugs.gnu.org; Sun, 19 Mar 2017 19:01:41 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:51767) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cpjpS-0002s8-8I; Sun, 19 Mar 2017 19:01:38 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1cpjpQ-00052S-K5; Sun, 19 Mar 2017 19:01:36 -0400 From: Glenn Morris References: <20170318145629.7C80232405A@astra4649.startdedicated.de> Mail-Followup-To: 26155@debbugs.gnu.org, julama@fake-box.com X-Spook: Mossad dictionary 9705 Samford Road Execution airframe X-Ran: WVL9^aNbH;]M,T.2`UD[6It (julama@fake-box.com's message of "Sat, 18 Mar 2017 15:56:29 +0100") Message-ID: <8ylgs0q3an.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) This bug ended up in the wrong package due to missing line breaks. I've reassigned it to diffutils. julama@fake-box.com wrote: > Package: diffutilsVersion: 3.5HiThe test > tests/brief-vs-stat-zero-kernel-lies fails with    cat: > /proc/cmdline: Permission deniedif /proc/cmdline exists but is not > readable. This is for example the case on a Linux kernel with > grsecurity patchset and option GRKERNSEC_PROC_USER enabled.The fix is > easy. The script tests/brief-vs-stat-zero-kernel-lies checks in line > 13 only for exists (test -f) of $boot (= > /proc/cmdline):    test -f $boot || skip_ no $boot > filemaking it check for readability (test -r) solves the problem (as > the test is now correctly skipped):    test -r $boot || > skip_ file $boot not readableKind regardsjulama From unknown Mon Jun 23 13:13:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#26155: Test brief-vs-stat-zero-kernel-lies fails if /proc/cmdline exists but is not readable Resent-From: Jim Meyering Original-Sender: "Debbugs-submit" Resent-CC: bug-diffutils@gnu.org Resent-Date: Thu, 23 Mar 2017 04:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26155 X-GNU-PR-Package: diffutils X-GNU-PR-Keywords: To: julama@fake-box.com Cc: 26155@debbugs.gnu.org Received: via spool by 26155-submit@debbugs.gnu.org id=B26155.149024422524484 (code B ref 26155); Thu, 23 Mar 2017 04:44:01 +0000 Received: (at 26155) by debbugs.gnu.org; 23 Mar 2017 04:43:45 +0000 Received: from localhost ([127.0.0.1]:40015 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cqubB-0006Mp-8v for submit@debbugs.gnu.org; Thu, 23 Mar 2017 00:43:45 -0400 Received: from mail-vk0-f49.google.com ([209.85.213.49]:36803) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cqub9-0006Mc-7V for 26155@debbugs.gnu.org; Thu, 23 Mar 2017 00:43:43 -0400 Received: by mail-vk0-f49.google.com with SMTP id j64so126417277vkg.3 for <26155@debbugs.gnu.org>; Wed, 22 Mar 2017 21:43:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=PrtWihbaRO7bYojgVD1U+ObATqLCF8a0WwCqJKswzFI=; b=OyY/n2Iggeun1qZHV1PZ1nAc7oGdwAccRuQO7UQLbmKztUCLoFb7baRF3FCV839v40 PRlMVUdtQ4fFLdsxLLPejcGapS0B/ZMygdtsdvx6nxfHIwoO+XcNORm50JGrjf5iSeVK D7aVpZH+KsyAV2DXOFMOrEYVTP7Xwz6ybaqudQthX0HQVon2bTeBLe6gr2N55rZtR8pY wBHHsOdrDsRSqqqbbFzYc+VBfAffqIvUGNj8lYPX/ScJLSATA4e6jaOW5uija+6CtKo8 +gQjlcZSnB1BCh4zCxwJiB2ew2G4ez2cFX02V84GpcydKkC0sfbbZ0AGz1glrqhg1kpI wfKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=PrtWihbaRO7bYojgVD1U+ObATqLCF8a0WwCqJKswzFI=; b=nrHtXIE3b4oVpROKwKc3mDBUEAnmB5HBdxhSerINQvqDHpgp9Q0JZHEaqCrHW7dcae +qgdz8IL51RV9wlJzIGQ9aSieLEPCvXulz2wBleGtMrNs0qo9+6XOG0+G/cJ2ce/45kh V5GVAp015Ai2rZCQCW2u3afEMr09x6NmULc9r2Zh/vfok/veeCIG/dJ0SrQ/IBgVYAzN 8OAVlRgNU/vKBvB3bBitDDqaYpmuitDx9fvxYtwTmvzSbhIvj8EOi3IKRbFtj+TddwNd duaX7B7U9o498gufhT2/zTXwUc9hdea2F9LCQa+DViRiS/iOpWcP7MvkQP4tgEqnqQBG HESw== X-Gm-Message-State: AFeK/H2NzFWBxd5a0KUaVf3Osp9Tqj7z/nPMEo66m7AJ/hfBJwaLTIiyKC+dERn+1hrJIQdiX41pIyqR0Z9+Ng== X-Received: by 10.31.154.22 with SMTP id c22mr256080vke.52.1490244217396; Wed, 22 Mar 2017 21:43:37 -0700 (PDT) MIME-Version: 1.0 Received: by 10.159.59.41 with HTTP; Wed, 22 Mar 2017 21:43:16 -0700 (PDT) In-Reply-To: <20170318145629.7C80232405A@astra4649.startdedicated.de> References: <20170318145629.7C80232405A@astra4649.startdedicated.de> From: Jim Meyering Date: Wed, 22 Mar 2017 21:43:16 -0700 X-Google-Sender-Auth: ic3PT1iK0_-eij4YOgdaLrbA9aA Message-ID: Content-Type: multipart/mixed; boundary=001a1140f5b43744f6054b5e85f6 X-Spam-Score: 0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.7 (/) --001a1140f5b43744f6054b5e85f6 Content-Type: text/plain; charset=UTF-8 On Sat, Mar 18, 2017 at 7:56 AM, wrote: > Package: diffutils > Version: 3.5 > > The test tests/brief-vs-stat-zero-kernel-lies fails with > > cat: /proc/cmdline: Permission denied > > if /proc/cmdline exists but is not readable. This is for example the case on > a Linux kernel with grsecurity patchset and option GRKERNSEC_PROC_USER > enabled. > > The fix is easy. The script tests/brief-vs-stat-zero-kernel-lies checks in > line 13 only for exists (test -f) of $boot (= /proc/cmdline): > > test -f $boot || skip_ no $boot file > > making it check for readability (test -r) solves the problem (as the test is > now correctly skipped): > > test -r $boot || skip_ file $boot not readable Thank you for the report and fix. I propose to push this commit in your name. Since all I have for your "real name" is "julama", that's what I've used in the commit "author:" header. If you'd prefer something else, or a different email address, let me know. --001a1140f5b43744f6054b5e85f6 Content-Type: text/plain; charset=US-ASCII; name="diff-vs-unreadable-proc-cmdline.diff" Content-Disposition: attachment; filename="diff-vs-unreadable-proc-cmdline.diff" Content-Transfer-Encoding: base64 X-Attachment-Id: f_j0lwvwku0 RnJvbSA0YzBmNGVjMjdiMmQ1NzI2NzJiYzhjMGI3ODNmZjI3M2M5Y2JkNTAxIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBqdWxhbWEgPGp1bGFtYUBmYWtlLWJveC5jb20+CkRhdGU6IFdl ZCwgMjIgTWFyIDIwMTcgMjE6Mzg6MzIgLTA3MDAKU3ViamVjdDogW1BBVENIXSB0ZXN0czogYXZv aWQgZmFsc2UgZmFpbHVyZSBmb3IgdW5yZWFkYWJsZSAvcHJvYy9jbWRsaW5lCgoqIHRlc3RzL2Jy aWVmLXZzLXN0YXQtemVyby1rZXJuZWwtbGllczogVXNlICJ0ZXN0IC1yIiByYXRoZXIgdGhhbgpq dXN0ICJ0ZXN0IC1mIi4gIFRoaXMgYXZvaWRzIGEgZmFsc2UgdGVzdCBmYWlsdXJlIG9uIGEgbGlu dXggc3lzdGVtCndpdGggZ3JzZWN1cml0eSBhbmQgaXRzIEdSS0VSTlNFQ19QUk9DX1VTRVIgb3B0 aW9uIGVuYWJsZWQsIGZvciB3aGljaAovcHJvYy9jbWRsaW5lIGlzIHVucmVhZGFibGUuICBSZXBv cnRlZCBpbiBodHRwczovL2J1Z3MuZ251Lm9yZy8yNjE1NQotLS0KIHRlc3RzL2JyaWVmLXZzLXN0 YXQtemVyby1rZXJuZWwtbGllcyB8IDIgKy0KIDEgZmlsZSBjaGFuZ2VkLCAxIGluc2VydGlvbigr KSwgMSBkZWxldGlvbigtKQoKZGlmZiAtLWdpdCBhL3Rlc3RzL2JyaWVmLXZzLXN0YXQtemVyby1r ZXJuZWwtbGllcyBiL3Rlc3RzL2JyaWVmLXZzLXN0YXQtemVyby1rZXJuZWwtbGllcwppbmRleCA3 YjA0M2RiLi44MmIzM2U2IDEwMDc1NQotLS0gYS90ZXN0cy9icmllZi12cy1zdGF0LXplcm8ta2Vy bmVsLWxpZXMKKysrIGIvdGVzdHMvYnJpZWYtdnMtc3RhdC16ZXJvLWtlcm5lbC1saWVzCkBAIC0x MCw3ICsxMCw3IEBAIGZhaWw9MAoKICMgU2tpcCB0aGUgdGVzdCB1bmxlc3Mgd2UgaGF2ZSBhbiBh cHByb3ByaWF0ZSBmaWxlLgogYm9vdD0vcHJvYy9jbWRsaW5lCi10ZXN0IC1mICRib290IHx8IHNr aXBfIG5vICRib290IGZpbGUKK3Rlc3QgLXIgJGJvb3QgfHwgc2tpcF8gbm8gJGJvb3QgZmlsZQog c3o9JChzdGF0IC0tZm9ybWF0ICVzICRib290KSB8fCBza2lwXyBzdGF0IC0tZm9ybWF0ICVzIGRv ZXMgbm90IHdvcmsKIHRlc3QgJHN6ID0gMCB8fCBza2lwXyAkYm9vdCBoYXMgbm9uemVybyBzaXpl CgotLSAKMi45LjMKCg== --001a1140f5b43744f6054b5e85f6-- From unknown Mon Jun 23 13:13:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#26155: Test brief-vs-stat-zero-kernel-lies fails if /proc/cmdline exists but is not readable References: <20170318145629.7C80232405A@astra4649.startdedicated.de> In-Reply-To: <20170318145629.7C80232405A@astra4649.startdedicated.de> Resent-From: julama@fake-box.com Original-Sender: "Debbugs-submit" Resent-CC: bug-diffutils@gnu.org Resent-Date: Fri, 24 Mar 2017 19:23:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26155 X-GNU-PR-Package: diffutils X-GNU-PR-Keywords: To: 26155@debbugs.gnu.org Reply-To: julama@fake-box.com Received: via spool by 26155-submit@debbugs.gnu.org id=B26155.149038334412069 (code B ref 26155); Fri, 24 Mar 2017 19:23:03 +0000 Received: (at 26155) by debbugs.gnu.org; 24 Mar 2017 19:22:24 +0000 Received: from localhost ([127.0.0.1]:42776 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1crUn2-00038b-Fi for submit@debbugs.gnu.org; Fri, 24 Mar 2017 15:22:24 -0400 Received: from astra4649.startdedicated.de ([62.138.6.202]:59499) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1crUQ9-0002ZY-I6 for 26155@debbugs.gnu.org; Fri, 24 Mar 2017 14:58:45 -0400 Received: by astra4649.startdedicated.de (Postfix, from userid 33) id C94CB327DCA; Fri, 24 Mar 2017 19:58:37 +0100 (CET) X-PHP-Originating-Script: 0:Sendmail.php X-Originating-IP: 95.85.10.71 From: julama@fake-box.com Date: Fri, 24 Mar 2017 19:58:37 +0100 Content-Type: multipart/alternative; boundary="=_69e226da9b6f7035d07ad04ec17902f1" MIME-Version: 1.0 Message-Id: <20170324185837.C94CB327DCA@astra4649.startdedicated.de> X-Spam-Score: 0.0 (/) X-Mailman-Approved-At: Fri, 24 Mar 2017 15:22:23 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) --=_69e226da9b6f7035d07ad04ec17902f1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable That's fine with me. Also thanks to you for your quick response and effo= rt. Keep up the good work! Best, julama. --=_69e226da9b6f7035d07ad04ec17902f1 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable That's fine with me. Also thanks to you for your qu= ick response and effort. Keep up the good work! Best, julama.
--=_69e226da9b6f7035d07ad04ec17902f1-- From unknown Mon Jun 23 13:13:30 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: julama@fake-box.com Subject: bug#26155: closed (Re: [bug-diffutils] bug#26155: Test brief-vs-stat-zero-kernel-lies fails if /proc/cmdline exists but is not readable) Message-ID: References: <20170318145629.7C80232405A@astra4649.startdedicated.de> X-Gnu-PR-Message: they-closed 26155 X-Gnu-PR-Package: diffutils Reply-To: 26155@debbugs.gnu.org Date: Fri, 24 Mar 2017 19:46:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1490384762-25302-1" This is a multi-part message in MIME format... ------------=_1490384762-25302-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #26155: Test brief-vs-stat-zero-kernel-lies fails if /proc/cmdline exists b= ut is not readable which was filed against the diffutils package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 26155@debbugs.gnu.org. --=20 26155: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D26155 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1490384762-25302-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 26155-done) by debbugs.gnu.org; 24 Mar 2017 19:45:31 +0000 Received: from localhost ([127.0.0.1]:42815 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1crV9P-000697-71 for submit@debbugs.gnu.org; Fri, 24 Mar 2017 15:45:31 -0400 Received: from mail-vk0-f42.google.com ([209.85.213.42]:34835) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1crV9N-00062p-94 for 26155-done@debbugs.gnu.org; Fri, 24 Mar 2017 15:45:29 -0400 Received: by mail-vk0-f42.google.com with SMTP id r69so141750vke.2 for <26155-done@debbugs.gnu.org>; Fri, 24 Mar 2017 12:45:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=jTSTBNXswMgVIYue5zGXsYpxG88OMmJWr/jwqUUeXRM=; b=jIMEwZgc6qudOK6AaHd6bYHQrjxtnVcrsFgSwc1HnD6RlmrAkdPhGYi9I9hsfcgbgL uqom0XM8to0SRiQeE7Mz71mrPwn1sBkFt72Xstm+sJIY7OBkvudRGw45iFYonnklvNZ0 KM4v0wEpl69uFlnhDI7ejayWfMmSTpC+8C5PtelQ7k55Mam2FrELRMAsuuAcUjb2/J/O 885i3dotRYi3bpkuNiom8x1+LEb/QQlyi3qw+PpEW+emrVR3sZnvTvvMBIp3/5bwbNdm RqqAGfpEQa93FNrXFjClQwwk+9Y+CffmUa1lOiwxsPpMeMeJjB18FrvtrWzuSk2p3XJs x+sA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=jTSTBNXswMgVIYue5zGXsYpxG88OMmJWr/jwqUUeXRM=; b=mlbEj58p4hJcpJpALIDlyoTFoTVNttf5lnQOfQgm130ibRIAfFykWzuThx7M/9d5xe OzE+vYkYdmuMKAR3T7zC+8GLts50kAEG+ypUbcaRu3FH4YcFYQr1SEENgKz547Sr1X2/ 00ZVeKpKfWooSS4aqr/U8cuKFdX/JfWhfODKYR8J3XNapCFcAP7Pli7uQ8zSMU77QvEH V14/Jq6JOReIiYZD4b0/qRJmmxQ78mVsP7iSclvrgz1RCillzNnLUeHzlpX6Nvc16GIu hdJC1HVLu7lC53hGXWy24DqC6XuiZEHYKYjKZoEXySgPg8xX/fpSje9lq4pY+MJ1AuL4 9Dpw== X-Gm-Message-State: AFeK/H0J9lPfr4rHQ8cRolOYygaiUYU+KQkju2soTMfenowaca3XARUnduhSxAiktzbdhadaX8O+WvdMqxC3Gg== X-Received: by 10.176.4.83 with SMTP id 77mr5201746uav.58.1490384723523; Fri, 24 Mar 2017 12:45:23 -0700 (PDT) MIME-Version: 1.0 Received: by 10.159.59.41 with HTTP; Fri, 24 Mar 2017 12:45:03 -0700 (PDT) In-Reply-To: <20170324185837.C94CB327DCA@astra4649.startdedicated.de> References: <20170318145629.7C80232405A@astra4649.startdedicated.de> <20170324185837.C94CB327DCA@astra4649.startdedicated.de> From: Jim Meyering Date: Fri, 24 Mar 2017 12:45:03 -0700 X-Google-Sender-Auth: YZTV5XYBBpwTYjIDe0F4XnWxVrU Message-ID: Subject: Re: [bug-diffutils] bug#26155: Test brief-vs-stat-zero-kernel-lies fails if /proc/cmdline exists but is not readable To: julama@fake-box.com Content-Type: text/plain; charset=UTF-8 X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: 26155-done Cc: 26155-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.2 (/) On Fri, Mar 24, 2017 at 11:58 AM, wrote: > That's fine with me. Also thanks to you for your quick response and effort. > Keep up the good work! Best, julama. Pushed as http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=7c636563c2498 ------------=_1490384762-25302-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 18 Mar 2017 15:51:12 +0000 Received: from localhost ([127.0.0.1]:34099 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cpGdL-0001fi-Oc for submit@debbugs.gnu.org; Sat, 18 Mar 2017 11:51:12 -0400 Received: from astra4649.startdedicated.de ([62.138.6.202]:37199) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cpFmU-0006x8-OC for submit@debbugs.gnu.org; Sat, 18 Mar 2017 10:56:35 -0400 Received: by astra4649.startdedicated.de (Postfix, from userid 33) id 7C80232405A; Sat, 18 Mar 2017 15:56:29 +0100 (CET) To: submit@debbugs.gnu.org Subject: Test brief-vs-stat-zero-kernel-lies fails if /proc/cmdline exists but is not readable X-PHP-Originating-Script: 0:Sendmail.php X-Originating-IP: 109.163.234.7 From: julama@fake-box.com Date: Sat, 18 Mar 2017 15:56:29 +0100 Content-Type: multipart/alternative; boundary="=_b72675f9377cc7cf985bf9a95a935e6d" MIME-Version: 1.0 Message-Id: <20170318145629.7C80232405A@astra4649.startdedicated.de> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sat, 18 Mar 2017 11:51:10 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: julama@fake-box.com Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) --=_b72675f9377cc7cf985bf9a95a935e6d Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Package: diffutilsVersion: 3.5HiThe test tests/brief-vs-stat-zero-kernel= -lies fails with    cat: /proc/cmdline: Permission denied= if /proc/cmdline exists but is not readable. This is for example the cas= e on a Linux kernel with grsecurity patchset and option GRKERNSEC_PROC_U= SER enabled.The fix is easy. The script tests/brief-vs-stat-zero-kernel-= lies checks in line 13 only for exists (test -f) of $boot (=3D /proc/cmd= line):    test -f $boot || skip_ no $boot filemaking it c= heck for readability (test -r) solves the problem (as the test is now co= rrectly skipped):    test -r $boot || skip_ file $boot no= t readableKind regardsjulama --=_b72675f9377cc7cf985bf9a95a935e6d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Package: diffutils
Version: 3.5

Hi

The test tests/b= rief-vs-stat-zero-kernel-lies fails with

    cat:= /proc/cmdline: Permission denied

if /proc/cmdline exists but is= not readable. This is for example the case on a Linux kernel with grsec= urity patchset and option GRKERNSEC_PROC_USER enabled.

The fix is= easy. The script tests/brief-vs-stat-zero-kernel-lies checks in line 13= only for exists (test -f) of $boot (=3D /proc/cmdline):

 &n= bsp;  test -f $boot || skip_ no $boot file

making it check f= or readability (test -r) solves the problem (as the test is now correctl= y skipped):

    test -r $boot || skip_ file $boot= not readable

Kind regards
julama
--=_b72675f9377cc7cf985bf9a95a935e6d-- ------------=_1490384762-25302-1--