...
 
Commits (34)
...@@ -82,7 +82,7 @@ AC_DEFINE([GLIB_VERSION_MIN_REQUIRED], [GLIB_VERSION_2_30], ...@@ -82,7 +82,7 @@ AC_DEFINE([GLIB_VERSION_MIN_REQUIRED], [GLIB_VERSION_2_30],
AC_DEFINE([GLIB_VERSION_MAX_ALLOWED], [G_ENCODE_VERSION(2,34)], AC_DEFINE([GLIB_VERSION_MAX_ALLOWED], [G_ENCODE_VERSION(2,34)],
[Notify us when we'll need to transition away from g_type_init()]) [Notify us when we'll need to transition away from g_type_init()])
PKG_CHECK_MODULES(LIBJS, [mozjs-24]) PKG_CHECK_MODULES(LIBJS, [mozjs-52])
AC_SUBST(LIBJS_CFLAGS) AC_SUBST(LIBJS_CFLAGS)
AC_SUBST(LIBJS_CXXFLAGS) AC_SUBST(LIBJS_CXXFLAGS)
......
...@@ -182,6 +182,14 @@ static const RulesTestCase rules_test_cases[] = { ...@@ -182,6 +182,14 @@ static const RulesTestCase rules_test_cases[] = {
NULL, NULL,
POLKIT_IMPLICIT_AUTHORIZATION_AUTHENTICATION_REQUIRED, POLKIT_IMPLICIT_AUTHORIZATION_AUTHENTICATION_REQUIRED,
}, },
/* actions without explict rules aren't automatically NOT_AUTHORIZED */
{
"basic2",
"net.company.productA.action2",
"unix-user:john",
NULL,
POLKIT_IMPLICIT_AUTHORIZATION_UNKNOWN,
},
/* Ordering tests ... we have four rules files, check they are /* Ordering tests ... we have four rules files, check they are
* evaluated in order by checking the detail set by each rules * evaluated in order by checking the detail set by each rules
......