GNU bug report logs - #26155
Test brief-vs-stat-zero-kernel-lies fails if /proc/cmdline exists but is not readable

Previous Next

Package: diffutils;

Reported by: julama <at> fake-box.com

Date: Sat, 18 Mar 2017 15:52:02 UTC

Severity: normal

Done: Jim Meyering <jim <at> meyering.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Jim Meyering <jim <at> meyering.net>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#26155: closed (Test brief-vs-stat-zero-kernel-lies fails if
 /proc/cmdline exists but is not readable)
Date: Fri, 24 Mar 2017 19:46:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Fri, 24 Mar 2017 12:45:03 -0700
with message-id <CA+8g5KFKJpBAaodZ5gsEaKSkW3LM2_Xhkn=U+xkXNz0L6Tt84A <at> mail.gmail.com>
and subject line Re: [bug-diffutils] bug#26155: Test brief-vs-stat-zero-kernel-lies fails if /proc/cmdline exists but is not readable
has caused the debbugs.gnu.org bug report #26155,
regarding Test brief-vs-stat-zero-kernel-lies fails if /proc/cmdline exists but is not readable
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
26155: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=26155
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: julama <at> fake-box.com
To: submit <at> debbugs.gnu.org
Subject: Test brief-vs-stat-zero-kernel-lies fails if /proc/cmdline exists but
 is not readable
Date: Sat, 18 Mar 2017 15:56:29 +0100
[Message part 3 (text/plain, inline)]
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
[Message part 4 (text/html, inline)]
[Message part 5 (message/rfc822, inline)]
From: Jim Meyering <jim <at> meyering.net>
To: julama <at> fake-box.com
Cc: 26155-done <at> debbugs.gnu.org
Subject: Re: [bug-diffutils] bug#26155: Test brief-vs-stat-zero-kernel-lies
 fails if /proc/cmdline exists but is not readable
Date: Fri, 24 Mar 2017 12:45:03 -0700
On Fri, Mar 24, 2017 at 11:58 AM,  <julama <at> fake-box.com> 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


This bug report was last modified 8 years and 64 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.