svn: /pecl/selinux/trunk/ config.m4 package.xml php_selinux.h selinux.c

From: Date: Sun, 05 Apr 2015 17:30:51 +0000
Subject: svn: /pecl/selinux/trunk/ config.m4 package.xml php_selinux.h selinux.c
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-22030@lists.php.net to get a copy of this message
remi Sun, 05 Apr 2015 17:30:51 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=336389 Log: Switch back to 0.4.1dev (0.4.1 was never released) Fix build with libselinux (in RHEL-6) Changed paths: U pecl/selinux/trunk/config.m4 U pecl/selinux/trunk/package.xml U pecl/selinux/trunk/php_selinux.h U pecl/selinux/trunk/selinux.c Modified: pecl/selinux/trunk/config.m4 =================================================================== --- pecl/selinux/trunk/config.m4 2015-04-05 16:50:58 UTC (rev 336388) +++ pecl/selinux/trunk/config.m4 2015-04-05 17:30:51 UTC (rev 336389) @@ -7,4 +7,6 @@ AC_DEFINE(HAVE_SELINUX,1, [Enable PHP/SELinux binding]) PHP_ADD_LIBRARY_WITH_PATH(selinux), AC_MSG_ERROR("libselinux is not available hoge")) + + PHP_CHECK_FUNC_LIB(security_compute_create_name, selinux) fi Modified: pecl/selinux/trunk/package.xml =================================================================== --- pecl/selinux/trunk/package.xml 2015-04-05 16:50:58 UTC (rev 336388) +++ pecl/selinux/trunk/package.xml 2015-04-05 17:30:51 UTC (rev 336389) @@ -18,7 +18,7 @@ <date>2015-04-05</date> <version> <!-- Remember to update PHP_SELINUX_VERSION in php-selinux.h --> - <release>0.4.2dev</release> + <release>0.4.1dev</release> <api>0.4.1</api> </version> <stability> @@ -26,7 +26,10 @@ </stability> <license uri="http://www.php.net/license/">PHP License</license> <notes> +- The "permissive" tag was added to selinux_compute_av +- The selinux_deny_unknown() was added - PHP 7 compatibility (Remi) +- fix build woth libselinux 2.0 (RHEL-6) </notes> <contents> <dir name="/"> @@ -70,11 +73,13 @@ <release> <version><release>0.4.1</release><api>0.4.1</api></version> <stability><release>devel</release><api>devel</api></stability> - <date>2012-05-03</date> + <date>2015-04-05</date> <notes> - selinux_compute_create() allows to take 4th argument to give an object name. - selinux_x_label_lookup() and selinux_db_label_lookup() were added. + - PHP 7 compatibility (Remi) + - fix build woth libselinux 2.0 (RHEL-6) </notes> </release> <release> @@ -102,20 +107,5 @@ - The initial release of SELinux binding for PHP script language. </notes> </release> - <release> - <date>2012-05-03</date> - <version> - <release>0.4.1</release> - <api>0.4.1</api> - </version> - <stability> - <release>devel</release> - <api>devel</api> - </stability> - <notes> -- The "permissive" tag was added to selinux_compute_av -- The selinux_deny_unknown() was added - </notes> - </release> </changelog> </package> Modified: pecl/selinux/trunk/php_selinux.h =================================================================== --- pecl/selinux/trunk/php_selinux.h 2015-04-05 16:50:58 UTC (rev 336388) +++ pecl/selinux/trunk/php_selinux.h 2015-04-05 17:30:51 UTC (rev 336389) @@ -4,7 +4,7 @@ extern zend_module_entry selinux_module_entry; #define phpext_selinux_ptr &selinux_module_entry -#define PHP_SELINUX_VERSION "0.4.2dev" +#define PHP_SELINUX_VERSION "0.4.1dev" #define PHP_SELINUX_STATE "devel" PHP_RSHUTDOWN_FUNCTION(selinux); @@ -59,7 +59,9 @@ * security_compute_XXXX() wrappers */ PHP_FUNCTION(selinux_compute_av); +#ifdef HAVE_SECURITY_COMPUTE_CREATE_NAME PHP_FUNCTION(selinux_compute_create); +#endif PHP_FUNCTION(selinux_compute_relabel); PHP_FUNCTION(selinux_compute_member); PHP_FUNCTION(selinux_compute_user); Modified: pecl/selinux/trunk/selinux.c =================================================================== --- pecl/selinux/trunk/selinux.c 2015-04-05 16:50:58 UTC (rev 336388) +++ pecl/selinux/trunk/selinux.c 2015-04-05 17:30:51 UTC (rev 336389) @@ -130,12 +130,14 @@ ZEND_ARG_INFO(0, tclass) ZEND_END_ARG_INFO() +#ifdef HAVE_SECURITY_COMPUTE_CREATE_NAME ZEND_BEGIN_ARG_INFO_EX(arginfo_selinux_compute_create, 0, 0, 3) ZEND_ARG_INFO(0, scontext) ZEND_ARG_INFO(0, tcontext) ZEND_ARG_INFO(0, tclass) ZEND_ARG_INFO(0, name) ZEND_END_ARG_INFO() +#endif ZEND_BEGIN_ARG_INFO(arginfo_selinux_compute_relabel, 0) ZEND_ARG_INFO(0, scontext) @@ -267,7 +269,9 @@ /* security_compute_XXXX() wrappers */ PHP_FE(selinux_compute_av, arginfo_selinux_compute_av) +#ifdef HAVE_SECURITY_COMPUTE_CREATE_NAME PHP_FE(selinux_compute_create, arginfo_selinux_compute_create) +#endif PHP_FE(selinux_compute_relabel, arginfo_selinux_compute_relabel) PHP_FE(selinux_compute_member, arginfo_selinux_compute_member) PHP_FE(selinux_compute_user, arginfo_selinux_compute_user) @@ -865,6 +869,7 @@ } /* }}} */ +#ifdef HAVE_SECURITY_COMPUTE_CREATE_NAME /* {{{ proto string selinux_compute_create(string scon, string tcon, string tclass [, string objname]) Returns the context for a new object in a particular class and contexts. */ @@ -891,6 +896,7 @@ freecon(context); } /* }}} */ +#endif /* {{{ proto string selinux_compute_relabel(string scon, string tcon, string tclass) Returns the context used when an object is relabeled. */ @@ -1310,7 +1316,9 @@ { "procedure", SELABEL_DB_PROCEDURE }, { "blob", SELABEL_DB_BLOB }, { "tuple", SELABEL_DB_TUPLE }, +#ifdef SELABEL_DB_LANGUAGE { "language", SELABEL_DB_LANGUAGE }, +#endif { NULL, -1 } };

« previous php.pecl.cvs (#22030) next »