Re: [PATCH 1/4 -v2] Namespacing of security/selinux

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

 



On Mon, 2009-07-06 at 14:58 -0400, Thomas Liu wrote:
> This patch namespaces the functions in security/selinux, prefixing
> non static functions with selinux_
> 
> Patch 1 includes namespacing of the security/selinux folder,
> not including security/selinux/ss.
> 
> Added selinux_ as a prefix to non static functions, not including
> functions beginning with avc_.  Swapped security_ with selinux_.
> 
> Signed-off-by: Thomas Liu <tliu@xxxxxxxxxx>
> ---
> This new set of patches no longer uses selinux_ss_ and no longer
> puts the selinux_ prefix in front of avc_.
> 
> Also fixed a minor mishap with a double underscore not compiling.

Two things:
1) The goal is for the kernel to build and work after each patch in a
patch series, particularly to avoid breaking git bisect.  Yes, that's
hard to achieve, and it may just mean folding all of the patches into
one if you can't find a logical way to split them up that meets that
requirement.  Or you could follow the original outline I gave, i.e. one
patch to rename just the security_ functions to selinux_, then one to
rename certain key global variables, and then progress to the rest of
the code.
2) scripts/checkpatch.pl in the kernel tree warns about lines over 80
characters, which are introduced as a result of the renaming and may
require breaking and reformatting existing lines.

Also, it would be good at this point to get others' opinions on the
scope of the renaming.  Renaming the SELinux security_ functions is
useful to avoid confusion/conflicts with the security framework.
Renaming ss_initialized, policydb and sidtab is likewise useful to avoid
conflicts.  Not as sure about the generic data structures and their
functions, which do at least have some prefix already.

-- 
Stephen Smalley
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@xxxxxxxxxxxxx with
the words "unsubscribe selinux" without quotes as the message.

[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux