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>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CALCETrU1xjXvwtuYyqGhDgch7cZgP_LWLNDC8b8oeEtwJ0UNmg@mail.gmail.com>
Date:	Mon, 26 May 2014 12:17:48 -0700
From:	Andy Lutomirski <luto@...capital.net>
To:	Djalal Harouni <tixxdz@...ndz.org>
Cc:	Kees Cook <keescook@...omium.org>,
	Andrew Morton <akpm@...ux-foundation.org>,
	Alexey Dobriyan <adobriyan@...il.com>,
	"Eric W. Biederman" <ebiederm@...ssion.com>,
	Al Viro <viro@...iv.linux.org.uk>,
	Linus Torvalds <torvalds@...ux-foundation.org>,
	Ingo Molnar <mingo@...nel.org>,
	Oleg Nesterov <oleg@...hat.com>,
	Peter Zijlstra <peterz@...radead.org>,
	LKML <linux-kernel@...r.kernel.org>,
	Linux FS Devel <linux-fsdevel@...r.kernel.org>
Subject: Re: [PATCH 1/9] procfs: use flags to deny or allow access to /proc/<pid>/$entry

On Mon, May 26, 2014 at 12:13 PM, Djalal Harouni <tixxdz@...ndz.org> wrote:
> On Mon, May 26, 2014 at 11:06:40AM -0700, Andy Lutomirski wrote:
>> On Mon, May 26, 2014 at 10:21 AM, Djalal Harouni <tixxdz@...ndz.org> wrote:
>> > I would like to keep it enum, enum is type-safe and I want to follow the
>> > semantics of /proc/pid/stat and others:
>>
>> It's not type-safe the way you're doing it, though.
> Can you please shed some light Andy, thank you in advance!

You're casting these things back and forth.  If you were storing enum
values in an enum-typed variable, great, but you're not.

--Andy
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ