help-debbugs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#26155: Test brief-vs-stat-zero-kernel-lies fails if /proc/cmdline ex


From: julama
Subject: bug#26155: 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


Package: diffutils
Version: 3.5

Hi

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

Kind regards
julama

reply via email to

[Prev in Thread] Current Thread [Next in Thread]