Security Enhanced Linux
What's New
Frequently Asked Questions
Background
Documents
License
Download
Participating
Mail List
Archives
Remaining Work
Contributors
Related Work
Press Releases
Information Assurance Research
NIARL In-house Research Areas
Mathematical Sciences Program
Sabbaticals
Computer & Information Sciences Research
Technology Transfer
Advanced Computing
Advanced Mathematics
Communications & Networking
Information Processing
Microelectronics
Other Technologies
Technology Fact Sheets
Publications
Related Links
|
SELinux Mailing ListRe: [PATCH 4/4] selinux: add selinuxfs structure for object class discovery
From: James Morris <jmorris_at_namei.org>
Date: Mon, 21 May 2007 13:18:16 -0400 (EDT)
> From: Christopher J. PeBenito <cpebenito@tresys.com> Keep in mind that any of these may need to be 64-bit at some point, so be careful about hard-coding any 32-bit assumptions into the kernel/user API.
> +#define NVECTORS 32 Macro name is too generic.
> +#define DIV(a, b) ((a) / (b) - ((a) % (b) < 0)) Also too generic, and should be a static inline. I think you should also make static inline wrappers:
sel_ino_to_class()
to make it all clearer to others.
> + inode->i_ino = (classindex * (NVECTORS+1) + i + 1) | SEL_CLASS_INO_OFFSET;
> + inode->i_ino = (index * (NVECTORS+1)) | SEL_CLASS_INO_OFFSET; Add wrappers for these, too.
> +static void sel_remove_classes(void) Coding style: max. 80 columns for body of function (similar issue elsewhere in the patches). -- James Morris <jmorris@namei.org> -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with the words "unsubscribe selinux" without quotes as the message.Received on Mon 21 May 2007 - 13:18:26 EDT |
|
Date Posted: Jan 15, 2009 | Last Modified: Jan 15, 2009 | Last Reviewed: Jan 15, 2009 |