Re: [HACKERS] [GENERAL] Error compiling sepgsql in PG9.1

2011-05-24 Thread Robert Haas
2011/5/24 Kohei Kaigai : > The attached patch enables to abort configure script when we run it with > '--with-selinux' > option, but libselinux is older than minimum requirement to SE-PostgreSQL. > > As the documentation said, it needs libselinux-2.0.93 at least, because this > or later > version

Re: [GENERAL] Error compiling sepgsql in PG9.1

2011-05-24 Thread Kohei Kaigai
ks, -- NEC Europe Ltd, SAP Global Competence Center KaiGai Kohei > -Original Message- > From: Devrim GÜNDÜZ [mailto:dev...@gunduz.org] > Sent: 21. Mai 2011 07:46 > To: Kohei Kaigai > Cc: Emanuel Calvo; postgresql Forums; KaiGai Kohei > Subject: Re: [GENERAL] Error compiling

Re: [GENERAL] Error compiling sepgsql in PG9.1

2011-05-24 Thread Emanuel Calvo
2011/5/24 Kohei Kaigai : > I noticed that selinux_sepgsql_context_path(3) was also got merged at > libselinux-2.0.83. > So, we could check correctness of library versions using existence of this > function. > > Does this patch expectedly abort the configure script on older libselinux > installat

Re: [GENERAL] Error compiling sepgsql in PG9.1

2011-05-24 Thread Kohei Kaigai
Kohei > Subject: RE: [GENERAL] Error compiling sepgsql in PG9.1 > > > 2011/5/21 Devrim GÜNDÜZ : > > > On Sat, 2011-05-21 at 02:50 +0100, Kohei Kaigai wrote: > > >> As documentation said, it needs libselinux 2.0.93 or higher. > > >> This version supports

Re: [GENERAL] Error compiling sepgsql in PG9.1

2011-05-24 Thread Kohei Kaigai
@gmail.com] > Sent: 24. Mai 2011 12:30 > To: Devrim GÜNDÜZ > Cc: Kohei Kaigai; postgresql Forums; KaiGai Kohei > Subject: Re: [GENERAL] Error compiling sepgsql in PG9.1 > > 2011/5/21 Devrim GÜNDÜZ : > > On Sat, 2011-05-21 at 02:50 +0100, Kohei Kaigai wrote: > >> As docum

Re: [GENERAL] Error compiling sepgsql in PG9.1

2011-05-24 Thread Emanuel Calvo
2011/5/21 Devrim GÜNDÜZ : > On Sat, 2011-05-21 at 02:50 +0100, Kohei Kaigai wrote: >> As documentation said, it needs libselinux 2.0.93 or higher. >> This version supports selabel_lookup(3) for database object classes. > > AFAICS, we are not checking it during configure. It might be worth to > add

Re: [GENERAL] Error compiling sepgsql in PG9.1

2011-05-20 Thread Devrim GÜNDÜZ
On Sat, 2011-05-21 at 02:50 +0100, Kohei Kaigai wrote: > As documentation said, it needs libselinux 2.0.93 or higher. > This version supports selabel_lookup(3) for database object classes. AFAICS, we are not checking it during configure. It might be worth to add libselinux version check in the co

Re: [GENERAL] Error compiling sepgsql in PG9.1

2011-05-20 Thread Kohei Kaigai
: 20. Mai 2011 19:05 > To: Emanuel Calvo > Cc: postgresql Forums; KaiGai Kohei > Subject: Re: [GENERAL] Error compiling sepgsql in PG9.1 > > On Fri, 2011-05-20 at 11:02 +0200, Emanuel Calvo wrote: > > I had the following error during compile of sepgsqk contrib: > > Appar

Re: [GENERAL] Error compiling sepgsql in PG9.1

2011-05-20 Thread Devrim GÜNDÜZ
On Fri, 2011-05-20 at 11:02 +0200, Emanuel Calvo wrote: > I had the following error during compile of sepgsqk contrib: Apparently we need to specify the minimum SELinux version that we can compile sepgsql against. It builds fine on my Fedora 14 box, where I have libselinux 2.0.96. Regards, -- De

[GENERAL] Error compiling sepgsql in PG9.1

2011-05-20 Thread Emanuel Calvo
I had the following error during compile of sepgsqk contrib: root@postgresql:~/postgresql-9.1beta1/contrib/sepgsql# make sed 's,MODULE_PATHNAME,$libdir/sepgsql,g' sepgsql.sql.in >sepgsql.sql gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wformat-se