Re: [PATCH] Fix include semanage/handle.h for semanage_set_root() as used by semodule

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

 



On Fri, 2011-09-09 at 19:17 +0200, Guido Trentalancia wrote:
> It only happens when building from git (because it uses the top-level
> Makefile which is not being distributed with the released components).

And a similar error happens with checkpolicy if a recent enough libsepol
is not already installed:

cc -g -Wall -Wshadow -O2 -pipe -fno-strict-aliasing -I. -I/usr/include
-o y.tab.o -c y.tab.c
In file included from policy_parse.y:53:0:
module_compiler.h:85:28: error: unknown type name filename_trans_rule_t
make: *** [y.tab.o] Error 1

> On Fri, 2011-09-09 at 19:01 +0200, Guido Trentalancia wrote:
> > Hello,
> > 
> > I am not able to build semodule from the current git unless the
> > following patch is applied.
> > 
> > Also, it would still be problematic if an outdated version of handle.h
> > is getting picked up directly from the root include directory (as it
> > happens now) and not from the local build directory... In other words,
> > the Makefile and build system should be modified so that the local
> > header files are picked up during each new build rather than the
> > system-wide ones from previous installations.
> > 
> > But at least this is a start:
> > 
> > Include <semanage/handle.h> for semodule_set_root() currently used by semodule
> > 
> > --- selinux-05092011/policycoreutils/semodule/semodule.c	2011-09-02 04:19:47.357716917 +0200
> > +++ selinux-05092011-fix-semanage_set_root/policycoreutils/semodule/semodule.c	2011-09-09 18:41:24.078319022 +0200
> > @@ -21,6 +21,7 @@
> >  #include <sys/types.h>
> >  
> >  #include <semanage/modules.h>
> > +#include <semanage/handle.h>
> >  
> >  enum client_modes { NO_MODE, INSTALL_M, UPGRADE_M, BASE_M, ENABLE_M, DISABLE_M, REMOVE_M,
> >  	LIST_M, RELOAD
> > 
> > 
> > --
> > 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.
> > 
> 
> 
> 
> --
> 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.
> 



--
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