lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <CABJPP5Acum9xDpF9OpwKRoB9SaQy+VVz4WGrksH9kTctwifAWw@mail.gmail.com>
Date:   Sun, 11 Jul 2021 13:34:49 +0530
From:   Dwaipayan Ray <dwaipayanray1@...il.com>
To:     Joe Perches <joe@...ches.com>
Cc:     Lukas Bulwahn <lukas.bulwahn@...il.com>,
        linux-kernel <linux-kernel@...r.kernel.org>
Subject: False positives for non octal permissions in the kernel

Hi,
A recent checkpatch run on the kernel detected a total of 26
ERROR:NON_OCTAL_PERMISSIONS violations.

20 of them seem to be false positives which are all from
drivers/staging/iio.

Example:
ERROR: Use 4 digit octal (0777) not decimal permissions
#331: FILE: drivers/staging/iio/frequency/ad9834.c:331:
+static IIO_DEV_ATTR_PHASESYMBOL(0, 0200, NULL, ad9834_write, AD9834_PSEL);

ERROR: Use 4 digit octal (0777) not decimal permissions
#334: FILE: drivers/staging/iio/frequency/ad9834.c:334:
+static IIO_DEV_ATTR_PINCONTROL_EN(0, 0200, NULL,
+       ad9834_write, AD9834_PIN_SW);

ERROR: Use 4 digit octal (0777) not decimal permissions
#336: FILE: drivers/staging/iio/frequency/ad9834.c:336:
+static IIO_DEV_ATTR_OUT_ENABLE(0, 0200, NULL, ad9834_write, AD9834_RESET);

and more such..

Thanks,
Dwaipayan.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ