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)

From: [email-masked] (GNU bug Tracking System)
Date: Fri, 24 Mar 2017 19:46:02 +0000

Your bug report

#26155: Test brief-vs-stat-zero-kernel-lies fails if /proc/cmdline exists but 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 [email-masked].

-- 
26155: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=26155
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [bug-diffutils] bug#26155: Test brief-vs-stat-zero-kernel-lies fails if /proc/cmdline exists but is not readable
From: Jim Meyering <[email-masked]>
To: [email-masked]
Cc: [email-masked]
Date: Fri, 24 Mar 2017 12:45:03 -0700
List-Id: <debbugs-submit.debbugs.gnu.org>

On Fri, Mar 24, 2017 at 11:58 AM,  <[email-masked]> 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

Subject: Test brief-vs-stat-zero-kernel-lies fails if /proc/cmdline exists but is not readable
From: [email-masked]
To: [email-masked]
Date: Sat, 18 Mar 2017 15:56:29 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Package: diffutilsVersion: 3.5HiThe test tests/brief-vs-stat-zero-kernel-lies fails with&nbsp;&nbsp;&nbsp; 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):&nbsp;&nbsp;&nbsp; test -f $boot || skip_ no $boot filemaking it check for readability (test -r) solves the problem (as the test is now correctly skipped):&nbsp;&nbsp;&nbsp; test -r $boot || skip_ file $boot not readableKind regardsjulama