Re: [PATCH 0/5] checkpolicy: Cleanup declare and require functions

2017-02-03 Thread James Carter

On 01/31/2017 02:41 PM, James Carter wrote:

Cleanup declare and require functions in module_compiler.c to improve
maintainability and clarity. Functionality is not changed.

James Carter (5):
  checkpolicy: Create common function for type declares and requires
  checkpolicy: Create common function for role declares and requires
  checkpolicy: Create common function for user declares and requires
  checkpolicy: Cleanup error messages
  checkpolicy: Move common require and declare code into new function

 checkpolicy/module_compiler.c | 892 +++---
 1 file changed, 395 insertions(+), 497 deletions(-)



Merged this series with the one change of making all the create_*() functions 
static.


--
James Carter 
National Security Agency
___
Selinux mailing list
Selinux@tycho.nsa.gov
To unsubscribe, send email to selinux-le...@tycho.nsa.gov.
To get help, send an email containing "help" to selinux-requ...@tycho.nsa.gov.


Re: [PATCH 0/5] checkpolicy: Cleanup declare and require functions

2017-02-03 Thread James Carter

On 02/02/2017 06:19 PM, Nicolas Iooss wrote:

On Tue, Jan 31, 2017 at 8:41 PM, James Carter > wrote:

Cleanup declare and require functions in module_compiler.c to improve
maintainability and clarity. Functionality is not changed.

James Carter (5):
  checkpolicy: Create common function for type declares and requires
  checkpolicy: Create common function for role declares and requires
  checkpolicy: Create common function for user declares and requires
  checkpolicy: Cleanup error messages
  checkpolicy: Move common require and declare code into new function

 checkpolicy/module_compiler.c | 892 
+++---
 1 file changed, 395 insertions(+), 497 deletions(-)


Thanks for your patches. I have tested the 8 patches you sent and everything
seems fine: the issue I reported is fixed, there is no new memory leak, and the
code looks right when I read it. I am only wondering why the new functions
create_type(), create_role(), create_user() and print_error_msg() are not 
static.



They should be static; I will make them static when I commit the patches. Thanks 
for testing them.



By the way I have been working on integrating this project with Travis-CI for a
few months and now I have a stable working configuration file. I used it to
build-test this patchset with several compilers/linkers. The (successful)
results are available
on https://travis-ci.org/fishilico/selinux/builds/197478803 and the commit which
introduced .travis.yml file is the last one
on https://github.com/fishilico/selinux/commits/2017-01-31_James_Carter_patches
. Would there be an interest to have the Travis-CI configuration file in the
project?


I don't have much experience with Travis-CI and will have to look it over. 
Thanks for the suggestion.


Jim



Cheers,
Nicolas



--
James Carter 
National Security Agency
___
Selinux mailing list
Selinux@tycho.nsa.gov
To unsubscribe, send email to selinux-le...@tycho.nsa.gov.
To get help, send an email containing "help" to selinux-requ...@tycho.nsa.gov.


Re: [PATCH 0/5] checkpolicy: Cleanup declare and require functions

2017-02-02 Thread Nicolas Iooss
On Tue, Jan 31, 2017 at 8:41 PM, James Carter  wrote:

> Cleanup declare and require functions in module_compiler.c to improve
> maintainability and clarity. Functionality is not changed.
>
> James Carter (5):
>   checkpolicy: Create common function for type declares and requires
>   checkpolicy: Create common function for role declares and requires
>   checkpolicy: Create common function for user declares and requires
>   checkpolicy: Cleanup error messages
>   checkpolicy: Move common require and declare code into new function
>
>  checkpolicy/module_compiler.c | 892 +++---
> 
>  1 file changed, 395 insertions(+), 497 deletions(-)
>

Thanks for your patches. I have tested the 8 patches you sent and
everything seems fine: the issue I reported is fixed, there is no new
memory leak, and the code looks right when I read it. I am only wondering
why the new functions create_type(), create_role(), create_user()
and print_error_msg() are not static.

By the way I have been working on integrating this project with Travis-CI
for a few months and now I have a stable working configuration file. I used
it to build-test this patchset with several compilers/linkers. The
(successful) results are available on
https://travis-ci.org/fishilico/selinux/builds/197478803 and the commit
which introduced .travis.yml file is the last one on
https://github.com/fishilico/selinux/commits/2017-01-31_James_Carter_patches
. Would there be an interest to have the Travis-CI configuration file in
the project?

Cheers,
Nicolas
___
Selinux mailing list
Selinux@tycho.nsa.gov
To unsubscribe, send email to selinux-le...@tycho.nsa.gov.
To get help, send an email containing "help" to selinux-requ...@tycho.nsa.gov.

[PATCH 0/5] checkpolicy: Cleanup declare and require functions

2017-01-31 Thread James Carter
Cleanup declare and require functions in module_compiler.c to improve
maintainability and clarity. Functionality is not changed.

James Carter (5):
  checkpolicy: Create common function for type declares and requires
  checkpolicy: Create common function for role declares and requires
  checkpolicy: Create common function for user declares and requires
  checkpolicy: Cleanup error messages
  checkpolicy: Move common require and declare code into new function

 checkpolicy/module_compiler.c | 892 +++---
 1 file changed, 395 insertions(+), 497 deletions(-)

-- 
2.7.4

___
Selinux mailing list
Selinux@tycho.nsa.gov
To unsubscribe, send email to selinux-le...@tycho.nsa.gov.
To get help, send an email containing "help" to selinux-requ...@tycho.nsa.gov.